Package zinnia :: Package xmlrpc :: Module metaweblog
[hide private]

Module metaweblog

source code

XML-RPC methods of Zinnia metaWeblog API

Functions [hide private]
 
authenticate(username, password, permission=None)
Authenticate staff_user with permission
source code
 
blog_structure(site)
A blog structure
source code
 
user_structure(user, site)
An user structure
source code
 
author_structure(user)
An author structure
source code
 
category_structure(category, site)
A category structure
source code
 
post_structure(entry, site)
A post structure with extensions
source code
 
get_users_blogs(blogger, api_key, username, password)
=> blog structure[]
source code
 
get_user_info(blogger, api_key, username, password)
=> user structure
source code
 
get_authors(wp, api_key, username, password)
=> author structure[]
source code
 
delete_post(apikey, post_id, username, password, publish)
blogger.deletePost(api_key, post_id, username, password, 'publish') => boolean
source code
 
get_post(metaWeblog, post_id, username, password)
=> post structure
source code
 
get_recent_posts(metaWeblog, blog_id, username, password, number)
=> post structure[]
source code
 
get_categories(metaWeblog, blog_id, username, password)
=> category structure[]
source code
 
new_category(wp, blog_id, username, password, category)
=> category_id
source code
 
new_post(metaWeblog, blog_id, username, password, post, publish)
=> post_id
source code
 
edit_post(metaWeblog, post_id, username, password, post, publish)
=> boolean
source code
 
new_media_object(metaWeblog, blog_id, username, password, media)
=> media structure
source code
Variables [hide private]
  LOGIN_ERROR = 801
  PERMISSION_DENIED = 803
  __package__ = 'zinnia.xmlrpc'
Function Details [hide private]

get_users_blogs(blogger, api_key, username, password)

source code 

=> blog structure[]

Decorators:
  • @xmlrpc_func(returns= 'struct[]', args= ['string', 'string', 'string'])

get_user_info(blogger, api_key, username, password)

source code 

=> user structure

Decorators:
  • @xmlrpc_func(returns= 'struct', args= ['string', 'string', 'string'])

get_authors(wp, api_key, username, password)

source code 

=> author structure[]

Decorators:
  • @xmlrpc_func(returns= 'struct[]', args= ['string', 'string', 'string'])

delete_post(apikey, post_id, username, password, publish)

source code 

blogger.deletePost(api_key, post_id, username, password, 'publish') => boolean

Decorators:
  • @xmlrpc_func(returns= 'boolean', args= ['string', 'string', 'string', 'string', 'string'])

get_post(metaWeblog, post_id, username, password)

source code 

=> post structure

Decorators:
  • @xmlrpc_func(returns= 'struct', args= ['string', 'string', 'string'])

get_recent_posts(metaWeblog, blog_id, username, password, number)

source code 

=> post structure[]

Decorators:
  • @xmlrpc_func(returns= 'struct[]', args= ['string', 'string', 'string', 'integer'])

get_categories(metaWeblog, blog_id, username, password)

source code 

=> category structure[]

Decorators:
  • @xmlrpc_func(returns= 'struct[]', args= ['string', 'string', 'string'])

new_category(wp, blog_id, username, password, category)

source code 

=> category_id

Decorators:
  • @xmlrpc_func(returns= 'string', args= ['string', 'string', 'string', 'struct'])

new_post(metaWeblog, blog_id, username, password, post, publish)

source code 

=> post_id

Decorators:
  • @xmlrpc_func(returns= 'string', args= ['string', 'string', 'string', 'struct', 'boolean'])

edit_post(metaWeblog, post_id, username, password, post, publish)

source code 

=> boolean

Decorators:
  • @xmlrpc_func(returns= 'boolean', args= ['string', 'string', 'string', 'struct', 'boolean'])

new_media_object(metaWeblog, blog_id, username, password, media)

source code 

=> media structure

Decorators:
  • @xmlrpc_func(returns= 'struct', args= ['string', 'string', 'string', 'struct'])