发送消息
/api/send_message
修改时间: 4 个月前
责任人: 未设置
暂无描述
请求参数
Body 参数multipart/form-data
appid
string
APPID
示例值:
10000
usertoken
string
用户token
示例值:
fe923ffb4b8e039d3b7352a42a2ec5b04d452ab4
receiver_id
string
接收者用户ID
示例值:
2
content
string
可选
消息内容 和 图片必传一个 两个都传 优选获取内容
示例值:
测试
file
string
图片
示例值:
-
pid
string
回复的消息id
示例值:
1
type
string
必需
0金币转账1积分转账
示例值:
0
money
string
转账金额
示例值:
100
message_type
string
必需
消息类型 0发送消息内容或图片 1转账 默认0(为了兼容以前的接口)
示例值:
1
timestamp
string
可选
时间戳 10位13位都行
示例值:
-
示例代码
返回响应
成功(200)
错误(200)
HTTP 状态码: 200
内容格式: JSON
数据结构
code
integer
-
示例:1
msg
string
-
示例:success
data
array
-
示例:-
timestamp
integer
-
示例:1686816418
sign
string
-
示例:ccb8f9be10172a55bdd1ad789a31eb417a338bfc05c8ccba6924b27f63ba8ab5
示例
{
"code": 1,
"msg": "success",
"data": [],
"timestamp": 1686816418,
"sign": "ccb8f9be10172a55bdd1ad789a31eb417a338bfc05c8ccba6924b27f63ba8ab5"
}
修改时间 4 个月前