OkayAPI Docs


API Path: /api/App/Market_Message/Post

API Description: 热门 接口超市-留言板-发布评论,使用前请先安装留言评论插件

1
API Traffic
HTTP/HTTPS
Protocol
GET/POST
Method
UTF-8
Charset
JSON
Response

API Debug   


API Params

ParameterTypeRequiredDefaultNoteDescription
HTTP_APPKEYStringRequiredMIN: 32Common Put Your APPKEY
message_contentStringRequired留言内容,支持HTML格式
message_nicknameStringOptaionMAX: 32留言用户名
message_keyStringOptaionMAX: 64评论的唯一标识,例如某篇文章
message_pidIntOptaion0MIN: 0嵌套评论时的父级评论ID,没有时为0,目前最多支持三层嵌套
more_dataArrayJSON FormatOptaion额外需要添加的数据,即客户端自定义添加的额外字段,需要JSON编码后传递。格式:data={"字段名1":"字段值1","字段名2":"字段值2"...},系统保留表字段(id, uuid, add_time, update_time, ext_data)将会被忽略。JSON在线解析及格式化验证

API Debug

KEYREQUIREDVALUE
app_key *Required
message_content *Required
message_nickname Option
message_key Option
message_pid Option
more_data Option

API Response

KEYTypeDescription
err_codeInt操作码,0表示成功,正数表示业务失败场景,负数表示系统失败场景
err_msgString错误提示信息,err_code非0时参考此提示信息
idInt新发布的评论ID

HTTP Response Code

HTTP Status CodeDescription
Http Status = 200Success
Http Status = 400Illegal-Params
Http Status = 401Illegal-Token
Http Status = 402IP-Banned
Http Status = 404API-NOT-Exsits
Http Status = 406Illegal-APPKEY
Http Status = 407APPKEY-Expired-Out
Http Status = 408APPKEY-Busy
Http Status = 409Illegal-Sign
Http Status = 413API-Traffic-NOT-Enough
Http Status = 415API-LOCKED
Http Status = 500Internal-Server-Error