发送文本消息
简要描述:
- 发送文本消息
请求URL:
http://域名地址/sendText
请求方式:
- POST
请求头Headers:
- Content-Type:application/json
- Authorization:login接口返回
参数:
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
wId | 是 | string | 微信实例ID |
wcId | 是 | string | 接收人微信号/群号 |
content | 是 | string | 文本内容消息 |
at | 否 | string | 艾特 |
返回数据:
参数名 | 类型 | 说明 |
---|---|---|
code | int | 1000成功,10001失败 |
msg | string | 反馈信息 |
请求参数示例
------------------------ 好友消息 ------------------------------
{
"wId": "0000016e-63eb-f319-0001-ed01076abf1f",
"wcId": "azhichao",
"content": "天行健,君子以自强不息"
}
------------------------ 群艾特某人 -------------------------------
{
"wId": "0000016f-8911-484a-0001-db2943fc2786",
"wcId": "22270365143@chatroom",
"at": "wxid_lr6j4nononb921,wxid_i6qsbbjenjuj22",
"content": "@微控Team_Mr Li@你微笑时真美 测试"
}
成功返回示例
{
"message": "发送成功",
"code": "1000",
"data": null
}
错误返回示例
{
"message": "失败",
"code": "1001",
"data": null
}