Procedural File: xmlrpc.php
Source Location: /blogs/xmlsrv/xmlrpc.php
XML-RPC APIs
This file implements the following XML-RPC remote procedures, to be called by remote clients:
- the B2 API for b2evo (this is used by w.bloggar for example...)
- the BLOGGER API for b2evo, see http://www.blogger.com/developers/api/1_docs/
- Metaweblog API
- Movable Type API (partial)
- the PINGBACK functions
| Version: | $Id: xmlrpc.php,v 1.105.2.5 2007/03/08 00:08:47 blueyed Exp $ |
| Copyright: | (c)2003-2006 by Francois PLANQUE - http://fplanque.net/ |
| Filesource: | Source Code for this file |
Set to TRUE to do HTML sanity checking as in the browser interface, set to
FALSE if you trust the editing tool to do this (more features than the browser interface)
Information Tags:| Todo: | fp> have a global setting with 3 options: check|nocheck|userdef => each then has his own setting to define if his tool does the checking or not. fp> Also, there should be a permission to say if members of a given group can or cannot post insecure content. If they cannot, then they cannot disable the sanity check fp> note: if allowed unsecure posting, disabling the sanity cjecker should also be allowed in the html backoffice |
|
b2.getCategories
B2 API
Gets also used for mt.getCategoryList. Is this correct?
Parameters:| xmlrpcmsg | $m: |
XML-RPC Message
|
API Tags:
| Return: | XML-RPC Response |
|
b2.newPost. Adds a post, blogger-api like, +title +category +postdate.
b2 API
Parameters:| xmlrpcmsg | $m: |
XML-RPC Message
|
API Tags:
| Return: | XML-RPC Response |
|
b2.getPostURL
B2 API
Parameters:| xmlrpcmsg | $m: |
XML-RPC Message
|
API Tags:
| Return: | XML-RPC Response |
|
blogger.editPost deletes a given post.
This API call is not documented on http://www.blogger.com/developers/api/1_docs/
Parameters:| xmlrpcmsg | $m: |
XML-RPC Message
|
API Tags:
| Return: | XML-RPC Response |
|
blogger.editPost changes the contents of a given post.
Optionally, will publish the blog the post belongs to after changing the post. (In b2evo, this means the changed post will be moved to published state). On success, it returns a boolean true value. On error, it will return a fault with an error message.
see http://www.blogger.com/developers/api/1_docs/xmlrpc_editPost.html
Parameters:| xmlrpcmsg | $m: |
XML-RPC Message
|
API Tags:
| Return: | XML-RPC Response |
Information Tags:
| Todo: | check current status and permission on it |
|
blogger.getPost retieves a given post.
This API call is not documented on http://www.blogger.com/developers/api/1_docs/
Parameters:| xmlrpcmsg | $m: |
XML-RPC Message
|
API Tags:
| Return: | XML-RPC Response |
|
blogger.getRecentPosts retieves X most recent posts.
This API call is not documented on http://www.blogger.com/developers/api/1_docs/
Parameters:| xmlrpcmsg | $m: |
XML-RPC Message
|
API Tags:
| Return: | XML-RPC Response |
|
blogger.getTemplate returns text of the main or archive index template for a given blog.
Currently, in b2evo, this will return the templates of the 'custom' skin.
see http://www.blogger.com/developers/api/1_docs/xmlrpc_getTemplate.html
Parameters:| xmlrpcmsg | $m: |
XML-RPC Message
|
API Tags:
| Return: | XML-RPC Response |
|
blogger.getUserInfo returns returns a struct containing user info.
Data returned: userid, firstname, lastname, nickname, email, and url.
see http://www.blogger.com/developers/api/1_docs/xmlrpc_getUserInfo.html
Parameters:| xmlrpcmsg | $m: |
XML-RPC Message
|
API Tags:
| Return: | XML-RPC Response, a <struct> containing:
|
|
blogger.getUsersBlogs returns information about all the blogs a given user is a member of.
Data is returned as an array of <struct>'s containing the ID (blogid), name (blogName), and URL (url) of each blog.
Non official: Also return a boolean stating wether or not the user can edit th eblog templates (isAdmin).
see http://www.blogger.com/developers/api/1_docs/xmlrpc_getUsersBlogs.html
Parameters:| xmlrpcmsg | $m: |
XML-RPC Message
|
API Tags:
| Return: | XML-RPC Response, an array of <struct>'s containing for each blog:
|
|
blogger.newPost makes a new post to a designated blog.
BLOGGER API
Optionally, will publish the blog after making the post. (In b2evo, this means the new post will be in 'published' state). On success, it returns the unique ID of the new post (usually a seven-digit number at this time). On error, it will return some error message.
see http://www.blogger.com/developers/api/1_docs/xmlrpc_newPost.html
Parameters:| xmlrpcmsg | $m: |
XML-RPC Message
|
API Tags:
| Return: | XML-RPC Response |
|
blogger.setTemplate changes the template for a given blog.
Can change either main or archive index template.
Currently, in b2evo, this will change the templates of the 'custom' skin.
see http://www.blogger.com/developers/api/1_docs/xmlrpc_getTemplate.html
Parameters:| xmlrpcmsg | $m: |
XML-RPC Message
|
API Tags:
| Return: | XML-RPC Response |
|
Used for logging, only if $debug_xmlrpc_logging is true
Parameters:| $io: | ||
| $msg: |
API Tags:
| Return: | Have we logged? |
|
mw.EditPost (metaWeblog.editPost)
mw API
Tor - TODO
- Sort out sql select with blog ID
- screws up posts with multiple categories partly due to the fact that Movable Type calls to this API are different to Metaweblog API calls when handling categories.
| $m: |
|
metaweblog.getPost retieves a given post.
This API call is not documented on http://www.blogger.com/developers/api/1_docs/
Parameters:| xmlrpcmsg | $m: |
XML-RPC Message
|
API Tags:
| Return: | XML-RPC Response |
|
mw.newPost
mw API Tor 2004
NB! (Tor Feb 2005) status in metaweblog API speak dictates whether static html files are generated or not, so fairly misleading
Parameters:| $m: |
|
Returns a string replaced by stars, for passwords.
Parameters:| string | $string: | the source string |
API Tags:
| Return: | same length, but only stars |
|
Pingback support function
strip_all_but_one_link(-)
Parameters:| $text: | ||
| $mylink: | ||
| $log: |
|
| array | $contentstruct: | struct |
| integer | $blog_ID: | blog ID |
| boolean | $empty_struct_ok: | Return empty array (instead of error), if no cats given in struct? |
API Tags:
| Return: | A list of category IDs or xmlrpcresp in case of error. |
