Skip to content

ilay1678/NewPost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

NewPost,可通过get或post请求发送文章的typecho插件

使用说明:

上传插件并启用,添加一位用户。用户组为编辑(为了安全)

设置验证密钥key

通过post发表文章:

请求URL:

  • 你的网址/action/import

请求方式:

  • POST|GET

参数:

参数名 必选 类型 说明
title string 标题
text string 正文
key string 验证密钥
mid 反序列化数组 分类mid
fieldnames 反序列化数组 自定义字段名
fieldtypes 反序列化数组 自定义字段类型,一般为str
fieldvalues 反序列化数组 自定义字段内容

php请求参数举例

array('title' => $title, 'text' => $text,'fieldnames'=>serialize(array('author','url')),'fieldtypes'=>serialize(array('str','str')),'fieldvalues'=>serialize(array($author,'0')),'mid'=>serialize(array(17,2)),'key' => "yanzhengmiyao");

以上请求作用为向分类mid为17 2两个分类发表文章,并添加自定义字段author和url

下载地址:NewPost.zip

About

可通过get或post请求发送文章的typecho插件

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages