发送文本接口
POST
请求参数
Body Params application/json
content
string
required
消息内容;不大于800个字
<= 2000 characters
template
string
optional
内容类型,不填默认txt
token
string
required
用户令牌
receiver
string
optional
消息接收人;默认机器人自己,好友填写wxid,群组填写群编码
aters
string
optional
群中@人;填写群成员的wxid,可通过群成员接口查询到,多人用逗号隔开
timestamp
string
optional
毫秒时间戳。格式如:1695388117413。服务器时间戳大于此时间戳,则消息不会发送
version
string
optional
调用版本,pro和personal;为空默认使用pro
Example
{
"content": "微信消息内容",
"template": "txt",
"timestamp": "",
"token": "个人令牌",
"receiver": "好友wxid或微信群编码",
"aters": "wx_2jdd93jd22,wx_390djjsl2"
}
示例代码
Responses
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
code
integer
required
响应编码
msg
string
required
响应说明
data
null
required
具体内容
Example
{
"code": 200,
"msg": "执行成功"
}
Modified at 6 个月前