• Hey!

    I’ve found that all blogger api in xmlrcp
    start $args with [1] instead of [0]

    That’s why many people can’t import/export with blogger client

    I don’t known this made for compat with blogger spec or not.

    example

    /**
    * Create new post.
    *
    * @since 1.5.0
    *
    * @param array $args Method parameters.
    * @return int
    */
    function blogger_newPost($args) {

    $this->escape($args);

    $blog_ID = (int) $args[1]; /* though we don’t use it yet */
    $username = $args[2];
    $password = $args[3];
    $content = $args[4];
    $publish = $args[5];

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Please follow this guide to report your bug:

    http://codex.wordpress.org/Reporting_Bugs

    Thread Starter jojosati

    (@jojosati)

    Sorry, but I’m not sure, is this a bug in your code?

    I only start writing my own client for WP, but lack of clearify documents ( http://codex.wordpress.org/XML-RPC_Support ). Then I try to get from source code.

    I can call blogger api with sending empty string in first arguments and notice that all blogger_xxx function do the same thing, also some metaWeb function that borrow from blogger.

    // Blogger API
    ‘blogger.getUsersBlogs’ => ‘this:blogger_getUsersBlogs’,
    ‘blogger.getUserInfo’ => ‘this:blogger_getUserInfo’,
    ‘blogger.getPost’ => ‘this:blogger_getPost’,
    ‘blogger.getRecentPosts’ => ‘this:blogger_getRecentPosts’,
    ‘blogger.getTemplate’ => ‘this:blogger_getTemplate’,
    ‘blogger.setTemplate’ => ‘this:blogger_setTemplate’,
    ‘blogger.newPost’ => ‘this:blogger_newPost’,
    ‘blogger.editPost’ => ‘this:blogger_editPost’,
    ‘blogger.deletePost’ => ‘this:blogger_deletePost’,

    // MetaWeblog API aliases for Blogger API
    // see http://www.xmlrpc.com/stories/storyReader$2460
    ‘metaWeblog.deletePost’ => ‘this:blogger_deletePost’,
    ‘metaWeblog.getTemplate’ => ‘this:blogger_getTemplate’,
    ‘metaWeblog.setTemplate’ => ‘this:blogger_setTemplate’,
    ‘metaWeblog.getUsersBlogs’ => ‘this:blogger_getUsersBlogs’,

    Thread Starter jojosati

    (@jojosati)

    Sorry again for misunderstanding.
    I’ve just found referrence of metaWeblog api
    http://www.xmlrpc.com/stories/storyReader$2460

    The first paraemeter is ‘appkey’.

    metaWeblog.deletePost (appkey, postid, username, password, publish) returns boolean

    metaWeblog.getTemplate (appkey, blogid, username, password, templateType) returns string

    metaWeblog.setTemplate (appkey, blogid, username, password, template, templateType) returns boolean

    metaWeblog.getUsersBlogs (appkey, username, password) returns array

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    If it’s a bug in WordPress, or an enhancement that needs to be made, then the only way to get it in front of the developers would be to submit it as a bug following the guide linked to above.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘bug in xmlrpc.php blogger api section’ is closed to new replies.