User Login    
 + Register
  • Main navigation
Login
Username:

Password:


Lost Password?

Register now!
Who's Online
82 user(s) are online (5 user(s) are browsing XoopsWiki)

Members: 5
Guests: 77

summary, sakyant, ofvirkur, katmandewfba, Mamba, more...
Documentation
Nominate XOOPS!!!!
[Main Page]

Dev:XML-RPC

From XOOPS Project

Main Page | Recent changes | Edit this page | Page history | Switch to MediaWiki mode

Printable version | Disclaimers | Privacy policy
Category: Development

Contents

Overview

XOOPS provides http://www.xmlrpc.com/ XML-RPC interface, which allows various services and tools to communicate with XOOPS.

XOOPS supports all http://plant.blogger.com/api/index.html Blogger API methods except for setTemplate/getTemplate methods, all http://www.xmlrpc.com/metaWeblogApi metaWeblog API methods, and 1 method from http://www.movabletype.org/docs/mtmanual_programmatic.html#programmatic%20interfaces moveabletype API where applicable. XOOPS also has its own API that can be used to manipulate posts and categories.

Use the following basic host information in your XML-RPC calls

       * Host: www.yourhost.com
       * Path: /xmlrpc.php
       * Port: 80


Supported Methods

Following are the XML-RPC methods currently supported by XOOPS:

Note:** The return values below are the values that are returnded on success. All methods will return fault on failure.

blogger.newPost**

       * Description: Posts a new item. Administrators can optionally publish the post directly.
       * Parameters: String appkey, String blogid, String username, String password, String content, Boolean publish
       * Returns: String postid of new post


blogger.editPost**

       * Description: Edits an existing item. Administrators can optionally publish the post directly.
       * Parameters: String appkey, String postid, String username, String password, String content, Boolean publish
       * Returns: Boolean true


blogger.deletePost**

       * Description: Deletes an existing item, administrators only.
       * Parameters: String appkey, String postid, String username, String password, Boolean publish
       * Returns: Boolean true


blogger.getPost**

       * Description: Retrieves information about a specific item.
       * Parameters: String appkey, String postid, String username, String password
       * Returns: Struct containing String userId, String content, ISO.8601 dateCreated, String postid


blogger.getRecentPosts**

       * Description: Retrieves specified number of recently posted items.
       * Parameters: String appkey, String blogid, String username, String password, Int numberOfPosts
       * Returns: Array of Struct(s) containing ISO.8601 dateCreated, String userid, String postid, String content

blogger.getUsersBlogs**

       * Description: Returns information about blogs to which a user can post.
       * Parameters: String appkey, String username, String password
       * Returns: Array of struct(s) containing String url, String blogid, String blogName

blogger.getUserInfo**

       * Description: Returns information about a user
       * Parameters: String appkey, String username, String password
       * Returns: Struct containing String userid, String firstname, String lastname, String nickname, String email, String url

metaWeblog.newPost**

       * Description: Posts a new item. Administrators can optionally publish the post directly.
       * Parameters: String blogid, String username, String password, Struct content, Boolean publish
       * Returns: String postid of new post

metaWeblog.editPost**

       * Description: Edits an existing item. Administrators can optionally publish the post directly.
       * Parameters: String postid, String username, String password, Struct content, Boolean publish
       * Returns: Boolean true

metaWeblog.getPost**

       * Description: Retrieves information about a specific item.
       * Parameters: String postid, String username, String password
       * Returns: Struct containing String userid, ISO.8601 dateCreated, String postid, String description, String title, String link, String permaLink

metaWeblog.getRecentPosts**

       * Description: Retrieves specified number of recently posted items.
       * Parameters: String blogid, String username, String password, int numberOfPosts
       * Returns: Array of struct(s) containing ISO.8601 dateCreated, String userid, String postid, String description, String title, String link, String permaLink

metaWeblog.getCategories**

       * Description: Returns information about categories in the blog to which a user can post
       * Parameters: String blogid, String username, String password
       * Returns: Array of Struct(s) containing String description, String htmlUrl, String rssUrl

mt.getCategoryList**

       * Description: Returns information about categories in the blog to which a user can post
       * Parameters: String blogid, String username, String password
       * Returns: Array of Struct(s) containing String categoryId, String categoryName

xoops.newPost**

       * Description: Posts a new item. Administrators can optionally publish the post directly.
       * Parameters: String blogid, String username, String password, Struct content, Boolean publish
       * Returns: String postid of new post

xoops.editPost**

       * Description: Edits an existing item. Administrators can optionally publish the post directly.
       * Parameters: String postid, String username, String password, Struct content, Boolean publish
       * Returns: Boolean true

xoops.deletePost**

       * Description: Deletes an existing item, administrators only.
       * Parameters: String appkey, String postid, String username, String password, Boolean publish
       * Returns: Boolean true

xoops.getPost**

       * Description: Retrieves information about a specific item.
       * Parameters: String postid, String username, String password
       * Returns: Struct containing String userid, ISO.8601 dateCreated, String postid, String description, String title, String link, String permaLink

xoops.getRecentPosts**

       * Description: Retrieves specified number of recently posted items.
       * Parameters: String blogid, String username, String password, Int numberOfPosts
       * Returns: Array of struct(s) containing ISO.8601 dateCreated, String userid, String postid, String description, String title, String link, String permaLink

xoops.getCategories**

       * Description: Returns information about categories in the blog to which a user can post
       * Parameters: String blogid, String username, String password
       * Returns: Array of Struct(s) containing String categoryId, String categoryName, String categoryPid


Error Codes

Below is a list of error codes and messages that will be returned with fault response in case of failure.

       * 101 - Invalid server URI
       * 102 - Parser parse error
       * 103 - Module not found
       * 104 - User authentication failed
       * 105 - Module API not found
       * 106 - Method response error
       * 107 - Method not supported
       * 108 - Invalid parameter
       * 109 - Missing parameters
       * 110 - Selected blog application does not exist
       * 111 - Method permission denied


Client Softwares

Below is a list of some recommended XML-RPC client softwares that can be used to communicate with XOOPS

       * http://wbloggar.com/ w.bloggar - for Windows only, version 3.0 or higher recommended


Back to the Main Page

Retrieved from "http://www.xoops.org/modules/mediawiki/index.php/Dev:XML-RPC"

This page has been accessed 360 times. This page was last modified 01:43, 16 December 2007. Content is available under XOOPS Project.


Powered by
XOOPS Code hosted on SourceForge

Powered by PHP



Powered by MySQL

Powered by Smarty

OSI certified

All content on this site is subject to the Creative Commons License
Local Support Sites