C# Class Subtext.Framework.XmlRpc.MetaWeblog

Implements the MetaBlog API.
Inheritance: CookComputing.XmlRpc.XmlRpcService, IMetaWeblog, IWordPressApi
Show file Open project: ayende/Subtext Class Usage Examples

Public Methods

Method Description
deletePage ( string blog_id, string username, string password, string page_id ) : bool
deletePost ( string appKey, string postid, string username, string password, [ Description = "Where applicable, this specifies whether the blog should be republished after the post has been deleted.")]boolpublish ) : bool
editPage ( string blog_id, string page_id, string username, string password, Subtext.Framework.XmlRpc.Post content, bool publish ) : int
editPost ( string postid, string username, string password, Subtext.Framework.XmlRpc.Post post, bool publish ) : bool
getCategories ( string blogid, string username, string password ) : Subtext.Framework.XmlRpc.CategoryInfo[]
getPage ( string blog_id, string page_id, string username, string password ) : Subtext.Framework.XmlRpc.Post
getPages ( string blog_id, string username, string password, int numberOfPosts ) : Subtext.Framework.XmlRpc.Post[]
getPost ( string postid, string username, string password ) : Subtext.Framework.XmlRpc.Post
getRecentPosts ( string blogid, string username, string password, int numberOfPosts ) : Subtext.Framework.XmlRpc.Post[]
getUsersBlogs ( string appKey, string username, string password ) : Subtext.Framework.XmlRpc.BlogInfo[]
newCategory ( string blogid, string username, string password, WordpressCategory category ) : int
newMediaObject ( object blogid, string username, string password, Subtext.Framework.XmlRpc.mediaObject mediaobject ) : Subtext.Framework.XmlRpc.mediaObjectInfo
newPage ( string blog_id, string username, string password, Subtext.Framework.XmlRpc.Post content, bool publish ) : int
newPost ( string blogid, string username, string password, Subtext.Framework.XmlRpc.Post post, bool publish ) : string

Creates a new post. The publish boolean is used to determine whether the item should be published or not.

Private Methods

Method Description
AddCommunityCredits ( Entry entry ) : void
GetCategoryList ( string blogid, string username, string password ) : MtCategory[]
GetPostCategories ( string postid, string username, string password ) : MtCategory[]
GetRecentPosts ( string appKey, string blogid, string username, string password, int numberOfPosts ) : BloggerPost[]
GetSupportedTextFilters ( ) : MtTextFilter[]
PostContent ( string username, string password, Subtext.Framework.XmlRpc.Post &post, bool publish, PostType postType ) : string
SetPostCategories ( string postid, string username, string password, MtCategory categories ) : bool
ValidateUser ( string username, string password, bool allowServiceAccess ) : void

Method Details

deletePage() public method

public deletePage ( string blog_id, string username, string password, string page_id ) : bool
blog_id string
username string
password string
page_id string
return bool

deletePost() public method

public deletePost ( string appKey, string postid, string username, string password, [ Description = "Where applicable, this specifies whether the blog should be republished after the post has been deleted.")]boolpublish ) : bool
appKey string
postid string
username string
password string
Description [
return bool

editPage() public method

public editPage ( string blog_id, string page_id, string username, string password, Subtext.Framework.XmlRpc.Post content, bool publish ) : int
blog_id string
page_id string
username string
password string
content Subtext.Framework.XmlRpc.Post
publish bool
return int

editPost() public method

public editPost ( string postid, string username, string password, Subtext.Framework.XmlRpc.Post post, bool publish ) : bool
postid string
username string
password string
post Subtext.Framework.XmlRpc.Post
publish bool
return bool

getCategories() public method

public getCategories ( string blogid, string username, string password ) : Subtext.Framework.XmlRpc.CategoryInfo[]
blogid string
username string
password string
return Subtext.Framework.XmlRpc.CategoryInfo[]

getPage() public method

public getPage ( string blog_id, string page_id, string username, string password ) : Subtext.Framework.XmlRpc.Post
blog_id string
page_id string
username string
password string
return Subtext.Framework.XmlRpc.Post

getPages() public method

public getPages ( string blog_id, string username, string password, int numberOfPosts ) : Subtext.Framework.XmlRpc.Post[]
blog_id string
username string
password string
numberOfPosts int
return Subtext.Framework.XmlRpc.Post[]

getPost() public method

public getPost ( string postid, string username, string password ) : Subtext.Framework.XmlRpc.Post
postid string
username string
password string
return Subtext.Framework.XmlRpc.Post

getRecentPosts() public method

public getRecentPosts ( string blogid, string username, string password, int numberOfPosts ) : Subtext.Framework.XmlRpc.Post[]
blogid string
username string
password string
numberOfPosts int
return Subtext.Framework.XmlRpc.Post[]

getUsersBlogs() public method

public getUsersBlogs ( string appKey, string username, string password ) : Subtext.Framework.XmlRpc.BlogInfo[]
appKey string
username string
password string
return Subtext.Framework.XmlRpc.BlogInfo[]

newCategory() public method

public newCategory ( string blogid, string username, string password, WordpressCategory category ) : int
blogid string
username string
password string
category WordpressCategory
return int

newMediaObject() public method

public newMediaObject ( object blogid, string username, string password, Subtext.Framework.XmlRpc.mediaObject mediaobject ) : Subtext.Framework.XmlRpc.mediaObjectInfo
blogid object
username string
password string
mediaobject Subtext.Framework.XmlRpc.mediaObject
return Subtext.Framework.XmlRpc.mediaObjectInfo

newPage() public method

public newPage ( string blog_id, string username, string password, Subtext.Framework.XmlRpc.Post content, bool publish ) : int
blog_id string
username string
password string
content Subtext.Framework.XmlRpc.Post
publish bool
return int

newPost() public method

Creates a new post. The publish boolean is used to determine whether the item should be published or not.
public newPost ( string blogid, string username, string password, Subtext.Framework.XmlRpc.Post post, bool publish ) : string
blogid string The blogid.
username string The username.
password string The password.
post Subtext.Framework.XmlRpc.Post The post.
publish bool if set to true [publish].
return string