C# Class Subtext.Framework.XmlRpc.MetaWeblog

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

public deletePage ( string blog_id, string username, string password, string page_id ) : bool
blog_id string
username string
password string
page_id string
Résultat bool

deletePost() public méthode

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 [
Résultat bool

editPage() public méthode

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
Résultat int

editPost() public méthode

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
Résultat bool

getCategories() public méthode

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

getPage() public méthode

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
Résultat Subtext.Framework.XmlRpc.Post

getPages() public méthode

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

getPost() public méthode

public getPost ( string postid, string username, string password ) : Subtext.Framework.XmlRpc.Post
postid string
username string
password string
Résultat Subtext.Framework.XmlRpc.Post

getRecentPosts() public méthode

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

getUsersBlogs() public méthode

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

newCategory() public méthode

public newCategory ( string blogid, string username, string password, WordpressCategory category ) : int
blogid string
username string
password string
category WordpressCategory
Résultat int

newMediaObject() public méthode

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
Résultat Subtext.Framework.XmlRpc.mediaObjectInfo

newPage() public méthode

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
Résultat int

newPost() public méthode

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].
Résultat string