phpDocumentor xml
[ class tree: xml ] [ index: xml ] [ all elements ]

Procedural File: _metaweblog.api.php

Source Location: /qp_inc/xmlrpc/apis/_metaweblog.api.php

Page Details

XML-RPC : MetaWeblog API

Quam Plures - http://quamplures.net/ Released under GNU GPL License - http://quamplures.net/license.html

Author:  tor
Copyright:  (c) 2009 - 2011 by the Quam Plures developers - http://quamplures.net/
Copyright:  (c)2003-2009 by Francois PLANQUE - http://fplanque.net/
See:  http://www.xmlrpc.com/metaWeblogApi
See:  http://manual.b2evolution.net/MetaWeblog_API
Filesource:  Source Code for this file
Functions
mw_editpost  [line 411]

void mw_editpost( xmlrpcmsg $m  )

metaWeblog.editPost (metaWeblog.editPost)

Parameters:
xmlrpcmsg   $m:  XML-RPC Message
  1. postid (string): Unique identifier of the post to edit
  2. username (string): Login for a Blogger user who has permission to edit the given post (either the user who originally created it or an admin of the blog).
  3. password (string): Password for said username.
  4. struct (struct)

API Tags:
See:  basicEntrypoints

Information Tags:
Todo:  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.

[ Top ]
mw_getcategories  [line 535]

void mw_getcategories( xmlrpcmsg $m  )

metaWeblog.getCategories

Parameters:
xmlrpcmsg   $m:  XML-RPC Message
  1. blogid (string): Unique identifier of the blog the post will be added to. Currently ignored in QP, in favor of the category.
  2. username (string): Login for a Blogger user who has permission to edit the given post (either the user who originally created it or an admin of the blog).
  3. password (string): Password for said username.

API Tags:
See:  metawebloggetcategories


[ Top ]
mw_getpost  [line 720]

xmlrpcresp mw_getpost( xmlrpcmsg $m  )

metaweblog.getPost retieves a given post.

Parameters:
xmlrpcmsg   $m:  XML-RPC Message
  1. postid (string): Unique identifier of the post
  2. username (string): Login for a Blogger user who has permission to edit the given post (either the user who originally created it or an admin of the blog).
  3. password (string): Password for said username.

API Tags:
Return:  XML-RPC Response
See:  basicEntrypoints


[ Top ]
mw_getrecentposts  [line 616]

void mw_getrecentposts( xmlrpcmsg $m  )

metaWeblog.getRecentPosts

Parameters:
xmlrpcmsg   $m:  XML-RPC Message
  1. blogid (string): Unique identifier of the blog the post will be added to. Currently ignored in QP, in favor of the category.
  2. username (string): Login for a Blogger user who has permission to edit the given post (either the user who originally created it or an admin of the blog).
  3. password (string): Password for said username.

API Tags:
See:  metawebloggetrecentposts


[ Top ]
mw_newmediaobject  [line 167]

xmlrpcresp mw_newmediaobject( xmlrpcmsg $m  )

metaWeblog.newMediaObject image upload

image is supplied coded in the info struct as bits

Parameters:
xmlrpcmsg   $m:  XML-RPC Message
  1. blogid (string): Unique identifier of the blog the post will be added to. Currently ignored in QP, in favor of the category.
  2. username (string): Login for a Blogger user who has permission to edit the given post (either the user who originally created it or an admin of the blog).
  3. password (string): Password for said username.
  4. struct (struct) - name : filename - type : mimetype - bits : base64 encoded file

API Tags:
Return:  XML-RPC Response
See:  metaweblognewmediaobject

Information Tags:
Todo:  extensive permissions

[ Top ]
mw_newpost  [line 331]

void mw_newpost( xmlrpcmsg $m  )

metaWeblog.newPost

NB! (Tor Feb 2005) status in metaweblog API speak dictates whether static html files are generated or not, so fairly misleading

Parameters:
xmlrpcmsg   $m:  XML-RPC Message
  1. blogid (string): Unique identifier of the blog the post will be added to. Currently ignored in QP, in favor of the category.
  2. username (string): Login for a Blogger user who has permission to edit the given post (either the user who originally created it or an admin of the blog).
  3. password (string): Password for said username.
  4. struct (struct)


[ Top ]
_mw_decode_postdate  [line 26]

string _mw_decode_postdate( struct $contentstruct, [ $now_if_empty = true]  )

Decode the dateCreated

Parameters:
struct   $contentstruct: 
   $now_if_empty: 

API Tags:
Return:  MYSQL date


[ Top ]
_mw_get_cat_IDs  [line 55]

array|xmlrpcresp _mw_get_cat_IDs( array $contentstruct, integer $blog_ID, [boolean $empty_struct_ok = false]  )

Get IDs for requested categories

Parameters:
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.


[ Top ]