| java.lang.Object org.blojsom.extension.xmlrpc.handler.APIHandler org.blojsom.extension.xmlrpc.handler.BloggerAPIHandler
BloggerAPIHandler | public class BloggerAPIHandler extends APIHandler (Code) | | Blogger API handler
author: David Czarnecki since: blojsom 3.0 version: $Id: BloggerAPIHandler.java,v 1.6 2007/01/17 02:35:07 czarneckid Exp $ |
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 String | getName() | public Object | getPost(String appkey, String postid, String userid, String password) | 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 (NOT IMPLEMENTED)
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) Authenticates a user and returns basic user info (name, email, userid, etc.). | 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 template, String templateType) Edits the main or archive index template of a given blog (NOT IMPLEMENTED)
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). |
BloggerAPIHandler | public BloggerAPIHandler()(Code) | | Create a new instance of the Blogger API handler
|
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 true if the entry was delete, false otherwise throws: XmlRpcException - If there is an error deleting the post |
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 true if the entry was edited, false otherwise throws: XmlRpcException - If the user was not authenticated correctly, if there was an I/O exception,or if the entry permalink ID is invalid |
getName | public String getName()(Code) | | Retrieve the API handler name
API handler name "blogger" |
getPost | public Object getPost(String appkey, String postid, String userid, String password) throws Exception(Code) | | Get a particular post for a blojsom category
Parameters: appkey - Unique identifier/passcode of the application sending the post Parameters: postid - Unique identifier of the blog post Parameters: userid - Login for a Blogger user who has permission to post to the blog Parameters: password - Password for said username Post to the blog throws: XmlRpcException - If the user was not authenticated correctly |
getRecentPosts | public Object getRecentPosts(String appkey, String blogid, String userid, String password, int numposts) throws Exception(Code) | | Get a list of recent posts for a blojsom category
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 Recent posts to the blog throws: XmlRpcException - If the user was not authenticated correctly |
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 (NOT IMPLEMENTED)
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" Not supported throws: XmlRpcException - Not supported |
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 Basic user information (name, email, userid) throws: org.apache.xmlrpc.XmlRpcException - If there is an error |
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 Blog category list throws: XmlRpcException - If there are no categories or the user was not authenticated correctly |
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 Post ID of the added entry throws: XmlRpcException - If the user was not authenticated correctly or if there was an I/O exception |
setTemplate | public boolean setTemplate(String appkey, String blogid, String userid, String password, String template, String templateType) throws Exception(Code) | | Edits the main or archive index template of a given blog (NOT IMPLEMENTED)
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). Must contain opening and closing tags, since they're needed to publish Parameters: templateType - Determines which of the blog's templates will be returned. Currently, either "main" or "archiveIndex" Not supported throws: XmlRpcException - Not supported |
|
|