文档
测试

创建一条动态

POST
api/post/create

接口描述

创建一条新的动态

请求头

参数名
类型
描述
必填
token
String
token
必填

请求参数

参数名
类型
描述
必填
content
string
动态内容,不得超过1000字
必填
sockpuppet_id
int
马甲id
必填
platform
string
客户端,如果不填写,则返回马甲的客户端
可选
image_url
string
图片地址,并以英文半角逗号「,」分割,如图片地址1,图片地址2
必填
publishtime
string
发布时间
必填
tag
string
tag,并以英文半角逗号「,」分割
必填

正确返回

``` { "code": 200, "message": "OK", "data": [] } ```

错误返回

``` { "code": 1005, "message": "表单填写错误", "data": "The sockpuppet id field is required." // 表单填写错误信息 } ``` ``` { "code": 1006, "message": "马甲无法找到", "data": [] } ```