发送数据 send
开发中POST
http://127.0.0.1:8081/send发送数据
type 数据类型(comment/gift/entrance/reread/tuning/...)
key 根据数据类型自行适配
data_json = {
"type": "数据类型",
"key": "value"
}
return:
{"code": 200, "message": "成功"}
{"code": -1, "message": "失败"}
请求参数
Body 参数application/json
object {0}
示例
{
"type": "comment",
"data": {
"type": "comment",
"username": "主人",
"content": "你好"
}
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
示例
{
"code": 0,
"message": "string"
}
最后修改时间: 2 个月前