Skip to content

zcstation/cnblogs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cnblogs

========= cnblogs(博客园)接口和文章管理

本项目依赖于 phpxmlrpc 类库,使用前执行 composer install 即可

使用前需要将自己的 博客名地址 修改掉

// 编辑 app/Common.php 文件第28行修改,如下所示
protected static $addressName = "lantor";

web服务器访问需要配置 url rewrite 规则,入口文件为 public/index.php,所有请求都为 HTTP POST 请求,请求方法及参数如下

Deletes a post.

Parameters

stringappKey
stringpostid
stringusername
stringpassword
booleanpublish - Where applicable, this specifies whether the blog should be republished after the post has been deleted.

Return Value

booleanAlways returns true.

Returns information on all the blogs a given user is a member.

Parameters

stringappKey
stringusername
stringpassword

Return Value

array of struct BlogInfo 

Updates and existing post to a designated blog using the metaWeblog API. Returns true if completed.

Parameters

stringpostid
stringusername
stringpassword
struct Postpost
booleanpublish

Return Value

any 

Retrieves a list of valid categories for a post using the metaWeblog API. Returns the metaWeblog categories struct collection.

Parameters

stringblogid
stringusername
stringpassword

Return Value

array of struct CategoryInfo 

Retrieves an existing post using the metaWeblog API. Returns the metaWeblog struct.

Parameters

stringpostid
stringusername
stringpassword

Return Value

struct Post 

Retrieves a list of the most recent existing post using the metaWeblog API. Returns the metaWeblog struct collection.

Parameters

stringblogid
stringusername
stringpassword
integernumberOfPosts

Return Value

array of struct Post 

Makes a new file to a designated blog using the metaWeblog API. Returns url as a string of a struct.

Parameters

stringblogid
stringusername
stringpassword
struct FileDatafile

Return Value

struct UrlData 

Makes a new post to a designated blog using the metaWeblog API. Returns postid as a string.

Parameters

stringblogid
stringusername
stringpassword
struct Postpost
booleanpublish

Return Value

string 

Create a new category

Parameters

stringblog_id
stringusername
stringpassword
struct WpCategorycategory

Return Value

integer 

Members

stringblogid
stringurl
stringblogName

Members

dateTimedateCreated - Required when posting.
stringdescription - Required when posting.
stringtitle - Required when posting.
array of stringcategories (optional)
struct Enclosureenclosure (optional)
stringlink (optional)
stringpermalink (optional)
anypostid (optional)
struct Sourcesource (optional)
stringuserid (optional)
anymt_allow_comments (optional)
anymt_allow_pings (optional)
anymt_convert_breaks (optional)
stringmt_text_more (optional)
stringmt_excerpt (optional)
stringmt_keywords (optional)
stringwp_slug (optional)

Members

stringdescription
stringhtmlUrl
stringrssUrl
stringtitle
stringcategoryid

Members

base64bits
stringname
stringtype

Members

stringurl

Members

stringname
stringslug (optional)
integerparent_id
stringdescription (optional)

Members

integerlength (optional)
stringtype (optional)
stringurl (optional)

Members

stringname (optional)
stringurl (optional)

About

cnblogs(博客园)接口和文章管理

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages