| java.lang.Object org.apache.roller.webservices.xmlrpc.BaseAPIHandler org.apache.roller.webservices.xmlrpc.BloggerAPIHandler
All known Subclasses: org.apache.roller.webservices.xmlrpc.MetaWeblogAPIHandler,
BloggerAPIHandler | public class BloggerAPIHandler extends BaseAPIHandler (Code) | | Roller XML-RPC Handler for the Blogger v1 API.
Blogger API spec can be found at http://plant.blogger.com/api/index.html
See also http://xmlrpc.free-conversant.com/docs/bloggerAPI
author: David M Johnson |
Method Summary | |
public boolean | deletePost(String appkey, String postid, String userid, String password, boolean publish) | public boolean | editPost(String appkey, String postid, String userid, String password, String content, boolean publish) Edits a given post. | public Object | getRecentPosts(String appkey, String blogid, String userid, String password, int numposts) | public String | getTemplate(String appkey, String blogid, String userid, String password, String templateType) Returns the main or archive index template of a given blog
Parameters: appkey - Unique identifier/passcode of the application sending the post Parameters: blogid - Unique identifier of the blog the post will be added to Parameters: userid - Login for a Blogger user who has permission to post to the blog Parameters: password - Password for said username Parameters: templateType - Determines which of the blog's templates will be returned. | public Object | getUserInfo(String appkey, String userid, String password) | public Object | getUsersBlogs(String appkey, String userid, String password) | public String | newPost(String appkey, String blogid, String userid, String password, String content, boolean publish) Makes a new post to a designated blog. | public boolean | setTemplate(String appkey, String blogid, String userid, String password, String templateData, String templateType) Edits the main index template of a given blog. |
serialVersionUID | final static long serialVersionUID(Code) | | |
BloggerAPIHandler | public BloggerAPIHandler()(Code) | | |
deletePost | public boolean deletePost(String appkey, String postid, String userid, String password, boolean publish) throws Exception(Code) | | Delete a Post
Parameters: appkey - Unique identifier/passcode of the application sending the post Parameters: postid - Unique identifier of the post to be changed Parameters: userid - Login for a Blogger user who has permission to post to the blog Parameters: password - Password for said username Parameters: publish - Ignored throws: XmlRpcException - |
editPost | public boolean editPost(String appkey, String postid, String userid, String password, String content, boolean publish) throws Exception(Code) | | Edits a given post. Optionally, will publish the blog after making the edit
Parameters: appkey - Unique identifier/passcode of the application sending the post Parameters: postid - Unique identifier of the post to be changed Parameters: userid - Login for a Blogger user who has permission to post to the blog Parameters: password - Password for said username Parameters: content - Contents of the post Parameters: publish - If true, the blog will be published immediately after the post is made throws: XmlRpcException - |
getRecentPosts | public Object getRecentPosts(String appkey, String blogid, String userid, String password, int numposts) throws Exception(Code) | | This method was added to the Blogger 1.0 API via an Email from Evan
Williams to the Yahoo Group bloggerDev, see the email message for details -
http://groups.yahoo.com/group/bloggerDev/message/225
Parameters: appkey - Unique identifier/passcode of the application sending the post Parameters: blogid - Unique identifier of the blog the post will be added to Parameters: userid - Login for a Blogger user who has permission to post to the blog Parameters: password - Password for said username Parameters: numposts - Number of Posts to Retrieve throws: XmlRpcException - Vector of Hashtables, each containing dateCreated, userid, postid, content |
getTemplate | public String getTemplate(String appkey, String blogid, String userid, String password, String templateType) throws Exception(Code) | | Returns the main or archive index template of a given blog
Parameters: appkey - Unique identifier/passcode of the application sending the post Parameters: blogid - Unique identifier of the blog the post will be added to Parameters: userid - Login for a Blogger user who has permission to post to the blog Parameters: password - Password for said username Parameters: templateType - Determines which of the blog's templates will be returned. Currently, either "main" or "archiveIndex" throws: XmlRpcException - |
getUserInfo | public Object getUserInfo(String appkey, String userid, String password) throws Exception(Code) | | Authenticates a user and returns basic user info (name, email, userid, etc.)
Parameters: appkey - Unique identifier/passcode of the application sending the post Parameters: userid - Login for a Blogger user who has permission to post to the blog Parameters: password - Password for said username throws: XmlRpcException - |
getUsersBlogs | public Object getUsersBlogs(String appkey, String userid, String password) throws Exception(Code) | | Returns information on all the blogs a given user is a member of
Parameters: appkey - Unique identifier/passcode of the application sending the post Parameters: userid - Login for a Blogger user who has permission to post to the blog Parameters: password - Password for said username throws: XmlRpcException - |
newPost | public String newPost(String appkey, String blogid, String userid, String password, String content, boolean publish) throws Exception(Code) | | Makes a new post to a designated blog. Optionally, will publish the blog after making the post
Parameters: appkey - Unique identifier/passcode of the application sending the post Parameters: blogid - Unique identifier of the blog the post will be added to Parameters: userid - Login for a Blogger user who has permission to post to the blog Parameters: password - Password for said username Parameters: content - Contents of the post Parameters: publish - If true, the blog will be published immediately after the post is made throws: XmlRpcException - |
setTemplate | public boolean setTemplate(String appkey, String blogid, String userid, String password, String templateData, String templateType) throws Exception(Code) | | Edits the main index template of a given blog. Roller only support
updating the main template, the default template of your weblog.
Parameters: appkey - Unique identifier/passcode of the application sending the post Parameters: blogid - Unique identifier of the blog the post will be added to Parameters: userid - Login for a Blogger user who has permission to post to the blog Parameters: password - Password for said username Parameters: template - The text for the new template (usually mostly HTML). Parameters: templateType - Determines which of the blog's templates is to be set. throws: XmlRpcException - |
|
|