Categories

Getting a list of all the available XML-RPC methods

WordPress supports XML-RPC API from MovableType, Blogger, and metaWeblog. To get a list of the supported API simply do the following:

<?php
include_once('wp-includes/class-IXR.php');
define('BLOG_ID', 0);
define('RPC_USERNAME', 'sanraul');
define('RPC_PASSWORD', '******');
 
$client = new IXR_Client('http://localhost:8888/xmlrpc.php');
$client->query('system.listMethods');
$methods = $client->getResponse();
echo json_encode($methods);
?>

The result will show the following list:

  • system.multicall
  • system.listMethods
  • system.getCapabilities
  • demo.addTwoNumbers
  • demo.sayHello
  • pingback.extensions.getPingbacks
  • pingback.ping
  • mt.publishPost
  • mt.getTrackbackPings
  • mt.supportedTextFilters
  • mt.supportedMethods
  • mt.setPostCategories
  • mt.getPostCategories
  • mt.getRecentPostTitles
  • mt.getCategoryList
  • metaWeblog.getUsersBlogs
  • metaWeblog.setTemplate
  • metaWeblog.getTemplate
  • metaWeblog.deletePost
  • metaWeblog.newMediaObject
  • metaWeblog.getCategories
  • metaWeblog.getRecentPosts
  • metaWeblog.getPost
  • metaWeblog.editPost
  • metaWeblog.newPost
  • blogger.deletePost
  • blogger.editPost
  • blogger.newPost
  • blogger.setTemplate
  • blogger.getTemplate
  • blogger.getRecentPosts
  • blogger.getPost
  • blogger.getUserInfo
  • blogger.getUsersBlogs
  • wp.getCommentStatusList
  • wp.newComment
  • wp.editComment
  • wp.deleteComment
  • wp.getComments
  • wp.getComment
  • wp.setOptions
  • wp.getOptions
  • wp.getPageTemplates
  • wp.getPageStatusList
  • wp.getPostStatusList
  • wp.getCommentCount
  • wp.uploadFile
  • wp.suggestCategories
  • wp.deleteCategory
  • wp.newCategory
  • wp.getTags
  • wp.getCategories
  • wp.getAuthors
  • wp.getPageList
  • wp.editPage
  • wp.deletePage
  • wp.newPage
  • wp.getPages
  • wp.getPage
  • wp.getUsersBlogs

1 comment to Getting a list of all the available XML-RPC methods

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

IMPORTANT! To be able to proceed, you need to solve the following simple math (so I know that you are a human) :-)

What is 4 + 6 ?
Please leave these two fields as-is: