xmlrpc Package¶
xmlrpc
Package¶
XML-RPC methods for Zinnia
metaweblog
Module¶
XML-RPC methods of Zinnia metaWeblog API
-
zinnia.xmlrpc.metaweblog.
authenticate
(username, password, permission=None)¶ Authenticate staff_user with permission.
An author structure.
-
zinnia.xmlrpc.metaweblog.
blog_structure
(site)¶ A blog structure.
-
zinnia.xmlrpc.metaweblog.
category_structure
(category, site)¶ A category structure.
-
zinnia.xmlrpc.metaweblog.
delete_post
(apikey, post_id, username, password, publish)¶ blogger.deletePost(api_key, post_id, username, password, ‘publish’) => boolean
-
zinnia.xmlrpc.metaweblog.
edit_post
(post_id, username, password, post, publish)¶ metaWeblog.editPost(post_id, username, password, post, publish) => boolean
wp.getAuthors(api_key, username, password) => author structure[]
-
zinnia.xmlrpc.metaweblog.
get_categories
(blog_id, username, password)¶ metaWeblog.getCategories(blog_id, username, password) => category structure[]
-
zinnia.xmlrpc.metaweblog.
get_post
(post_id, username, password)¶ metaWeblog.getPost(post_id, username, password) => post structure
-
zinnia.xmlrpc.metaweblog.
get_recent_posts
(blog_id, username, password, number)¶ metaWeblog.getRecentPosts(blog_id, username, password, number) => post structure[]
wp.getTags(blog_id, username, password) => tag structure[]
-
zinnia.xmlrpc.metaweblog.
get_user_info
(apikey, username, password)¶ blogger.getUserInfo(api_key, username, password) => user structure
-
zinnia.xmlrpc.metaweblog.
get_users_blogs
(apikey, username, password)¶ blogger.getUsersBlogs(api_key, username, password) => blog structure[]
-
zinnia.xmlrpc.metaweblog.
new_category
(blog_id, username, password, category_struct)¶ wp.newCategory(blog_id, username, password, category) => category_id
-
zinnia.xmlrpc.metaweblog.
new_media_object
(blog_id, username, password, media)¶ metaWeblog.newMediaObject(blog_id, username, password, media) => media structure
-
zinnia.xmlrpc.metaweblog.
new_post
(blog_id, username, password, post, publish)¶ metaWeblog.newPost(blog_id, username, password, post, publish) => post_id
-
zinnia.xmlrpc.metaweblog.
post_structure
(entry, site)¶ A post structure with extensions.
-
zinnia.xmlrpc.metaweblog.
tag_structure
(tag, site)¶ A tag structure.
-
zinnia.xmlrpc.metaweblog.
user_structure
(user, site)¶ An user structure.
pingback
Module¶
XML-RPC methods of Zinnia Pingback
-
zinnia.xmlrpc.pingback.
generate_pingback_content
(soup, target, max_length, trunc_char='...')¶ Generate a description text for the pingback.
-
zinnia.xmlrpc.pingback.
pingback_extensions_get_pingbacks
(target)¶ pingback.extensions.getPingbacks(url) => ‘[url, url, …]’
Returns an array of URLs that link to the specified url.
See: http://www.aquarionics.com/misc/archives/blogite/0198.html
-
zinnia.xmlrpc.pingback.
pingback_ping
(source, target)¶ pingback.ping(sourceURI, targetURI) => ‘Pingback message’
Notifies the server that a link has been added to sourceURI, pointing to targetURI.