发送消息/发送链接
简要描述
请求URL
http://127.0.0.1:8888/api/
请求方式
参数
参数名 | 必选 | 类型 | 说明 |
---|
type | 是 | int | 接口编号 |
userName | 是 | string | 接收人wxid |
content | 是 | string | 消息内容 |
bAsync | 否 | bool | 如果将该参数设置为true,则任务不再阻塞,接口响应内容会通过消息处理器返回,消息推送类型为0<br/>如果提供了asyncUserData参数,会随调用结果一起推送 |
asyncUserData | 否 | str | xxxx |
请求示例
{
"type": 10092,
"userName": "filehelper",
"content": "<appmsg appid=\"\" sdkver=\"0\"><title>百度一下</title><des>https://www.baidu.com/</des><action>view</action><type>5</type><showtype>0</showtype><content></content><url>https://www.baidu.com/</url><dataurl></dataurl><lowurl></lowurl><lowdataurl></lowdataurl><recorditem></recorditem><thumburl></thumburl><messageaction></messageaction><laninfo></laninfo><extinfo></extinfo><sourceusername></sourceusername><sourcedisplayname></sourcedisplayname><commenturl></commenturl><appattach><totallen>0</totallen><attachid></attachid><emoticonmd5></emoticonmd5><fileext></fileext><aeskey></aeskey></appattach><webviewshared><publisherId>msg_8252690270823229747</publisherId><publisherReqId>106112608</publisherReqId></webviewshared><weappinfo><pagepath></pagepath><username></username><appid></appid><appservicetype>0</appservicetype></weappinfo><websearch /></appmsg>"
}
返回示例
{
"data": {
"status": 0,
"desc": "",
}
}
返回参数说明
参数名 | 类型 | 说明 |
---|
error_code | int | 错误代码 |
description | string | 错误描述 |
data | json | 业务数据 |
备注