发表一篇新的文章。
/article/post
HTTP POST
字段所处区段 | 参数字段 | 必选 | 说明 |
---|---|---|---|
URL | board | true | 文章发表到的版面 |
title | true | 文章标题,按UTF-8编码 | |
userid | true | 当前登录用户的 ID | |
sessid | true | 当前用户的 session ID | |
appkey | true | 当前使用的 APP 标识 | |
token | true | 当前用户当前使用的 token | |
anony | false |
是否匿名发帖
| |
norep | false |
是否不允许回复
| |
Request Headers | Content-Length | false | Request body 的长度。建议填写。 |
Request Body | content | false |
文章正文
|
若发帖成功,返回如下格式:
``` { "errcode":0, "aid":1385902846, "token":"NFHCJEKB" } ```
其中:
字段 | 类型 | 说明 |
---|---|---|
errcode | int | 0表示发帖成功;否则为错误码,并且不再返回其它字段。 |
aid | int | 发表的文章的文章 ID |
token | string | 给予当前用户的新 token。 |
否则仅包含错误码。
- 十分建议在 Request Header 中加入Content-Length