修改草稿

接口地址:[接口根]/plugin/submission-api/update
请求类型:post

  • 必须参数:title,标题
  • 必须参数:id,草稿key值
{
    "state": 1,
    "message": "修改成功!"
}


我的投稿

接口地址:[接口根]/plugin/submission-api/my
请求类型:get

  • 必须参数:user_openid,用户的身份id
[
    {
        "title": "a阿斯顿发送到",
        "content": "的发生大幅度的的发生大幅度的的发生大幅度的的发生大幅度的",
        "state": 1,
        "column": "栏目一",
        "image": null,
        "createtime": 1453458579,
        "info_key": "56a20493c137e0e014000039"
    }
]


根据key值拿到具体的投稿

接口地址:[接口根]/plugin/submission-api/edit
请求类型:get

  • 必须参数:info_key,文章唯一标识


投稿

接口地址:[接口根]/plugin/submission-api/post
请求类型:post

  • 必须参数:title,标题
  • 必须参数:state,状态
  • 必须参数:content,内容
  • 必须参数:user_openid,用户id
  • 可选参数:column,栏目
{
    "state": 1,
    "message": "投稿成功!"
}
{
    "state": 0,
    "errors": {
        "user_openid": [
            "投稿人ID不能为空。"
        ]
    },
    "message": "投稿失败,请检查填写!"
}