• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
seegatesite header

Seegatesite.com

Seegatesite.com - Programming Tutorial , Sharing , How and Learn Together

  • TOOLS
    • Bootstrap Navbar Online Generator
    • Customize Sidebar Menu Bootstrap 3
    • Bootstrap Demo
  • ADVERTISE
  • CATEGORIES
    • Android
    • Blogging Tips
    • Database
    • CSS
    • Info Gadget
    • Javascript
    • Linux
    • PHP
    • Various
    • WordPress
  • Q&A
  • PHP
  • JAVASCRIPT
  • JQUERY
  • ANGULAR
  • WORDPRESS
  • SEO
  • REACT
🏠 » Wordpress » Simple wordpress xmlrpc with IXR_Library Class

Simple wordpress xmlrpc with IXR_Library Class

By Sigit Prasetya Nugroho ∙ November 12, 2014 ∙ Wordpress ∙ Leave a Comment

Share : TwitterFacebookTelegramWhatsapp

Simple wordpress xmlrpc with IXR_Library Class

XML RPC in wordpress function is activated automatically from wordpress version 3.5. By utilizing this function, we can send, edit, or delete posts without login to our wordpress blog dashboard.

IXR_Library Class is a PHP class that allows us to access the wordpress XMLRPC API. IXR_Library Class is a php class that created by incutio (for more documentation visit http://scripts.incutio.com/xmlrpc/ )

“The Incutio XML-RPC library (IXR) is designed primarily for ease of use. It incorporates both client and server classes, and is designed to hide as much of the workings of XML-RPC from the user as possible. A key feature of the library is automatic type conversion from PHP types to XML-RPC types and vice versa. This should enable developers to write web services with very little knowledge of the underlying XML-RPC standard.”

Related Articles :

  • How to use metaWeblog.getPost, metaWeblog.getRecentPosts and metaWeblog.deletePost
  • Create New Category on WordPress with wp.newCategory and IXR_Library
  • How to Upload using WordPress MetaWeblog.newMediaObject and IXR_Library

IXR_Library Class has several advantages (from IXR_Library Class official site)

  • A complete implementation of the XML-RPC specification
  • Written for PHP 4 in strict error reporting mode – no warnings or notices
  • Basic classes are designed to be usable in as little code as possible
  • Advanced classes extend the basic classes and provide additional features
  • Can be used with both Object Orientated and functional programming styles
  • Type conversions (PHP to XML-RPC and back again) are handled transparently
  • Built in support for system.getCapabilities
  • Built in support for system.listMethods
  • methodSignature and system.methodHelp are supported in an extension class
  • multicall is implemented in both the server and extended client classes
  • Follows the Specification for Fault Code Interoperability

Table of Contents

    • 0.1  Why you should use IXR_Library Class? 
  • 1  Example using wordpress xmlrpc with IXR_Library Class : 

 Why you should use IXR_Library Class? 

I myself use this class because of the ease of managing XML-RPC API MetaWeblog. If previously I had difficulty in using metaWeblog.newPost (specifically usage parameters date_created_gmt ) and metaWeblog.newMediaObject (specifically usage parameter bits ), with IXR_Library Class can be done by programming a more simple and effective.

 Example using wordpress xmlrpc with IXR_Library Class : 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$content = array(
                 'title'=>$title,
                 'description'=>$body,
                 'mt_allow_comments'=>0, // 1 to allow comments
                 'mt_allow_pings'=>0, // 1 to allow trackbacks
                 'post_type'=>'post',
                 'mt_keywords'=>$keywords,
                 'categories'=>array($category),
                 'custom_fields' => array($customfields) ,
'date_created_gmt' => $date
              );
$params = array(1,'wordpress-username','wordpress-password',$content,true);
$XmlRpc_result = $XmlRpc_client->query(
'metaWeblog.newPost',$params
);
$data = $XmlRpc_client->getResponse();

You can download here

Okay, how to use XML-RPC API with IXR_Library Class MetaWeblog I will write in my upcoming posts 🙂

My list article about XMLRPC with MetaWeblog API

1. Remote posting wordpress with XML-RPC metaWeblog.newPost and IXR_Library Class.

2. How to Upload using WordPress MetaWeblog.newMediaObject and IXR_Library

3. Create New Category on WordPress with wp.newCategory and IXR_Library

4. How to use metaWeblog.getPost, metaWeblog.getRecentPosts and metaWeblog.deletePost

Another WordPress Related Post :

  • How To Create The Fastest Social Share Button WordPress Without Plugin
  • Create WordPress Slider Without Javascript
  • The Point Responsive WordPress Theme For Blogging
  • The Doctors Free WordPress Responsive Theme For Medical
  • Develop Your Site With Start Blogging The Responsive WordPress Theme
  • Zerius Theme The Free WordPress Responsive Theme

Avatar for Sigit Prasetya Nugroho

About Sigit Prasetya Nugroho

This site is a personal Blog of Sigit Prasetya Nugroho, a Desktop developer and freelance web developer working in PHP, MySQL, WordPress.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Welcome to my Home,

Avatar for Sigit Prasetya NugrohoThis site is a personal Blog of Sigit Prasetya Nugroho, a Desktop developer and freelance web developer working in PHP, MySQL, WordPress.



Popular Articles

Checked checkbox AdminLTE Bootstrap in Jquery

November 4, 2014 By Sigit Prasetya Nugroho 7 Comments

Simple create date format validation with jqueryUI

December 21, 2014 By Sigit Prasetya Nugroho Leave a Comment

Create Simple Progress Bar for Fake Online Generator with Jquery

January 10, 2015 By Sigit Prasetya Nugroho Leave a Comment

22+ Coolest Free Jquery Plugin For Premium Theme

October 3, 2015 By Sigit Prasetya Nugroho Leave a Comment

Easy Build Your Anti Copy Paste Plugin

October 6, 2015 By Sigit Prasetya Nugroho Leave a Comment

Popular Tags

adminlte (15) adsense (13) adsense tips (4) affiliate amazon (13) amazon (12) Android (8) angular (16) angular 4 (12) angular 5 (4) asin grabber (3) Bootstrap (27) codeigniter (5) create wordpress theme (5) crud (8) css (6) free wordpress theme (7) google adsense (4) imacros (4) increase traffic (6) jquery (34) laravel (10) laravel 5 (5) learn android (5) modal dialog (5) mysql (6) nodeJs (4) optimize seo (4) pdo (6) php (30) plugin (53) pos (7) Publisher Tips (5) react (3) Reactjs (7) SEO (37) theme (17) tutorial angular (5) tutorial angular 4 (6) tutorial javascript (10) tutorial javascript beginners (4) twitter (3) widget (3) wordpress (18) wordpress plugin (13) XMLRPC (5)




  • About
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • Terms and Conditions

©2021 Seegatesite.com