請求URL:
http://域名地址/sendText
請求方式:
POST
請求頭Headers:
Content-Type:application/json
Authorization:login接口返回
參數(shù):
參數(shù)名必選類型說明
wId是string登錄實例標(biāo)識
wcId是string接收人微信id/群id
content是string文本內(nèi)容消息
返回數(shù)據(jù):
參數(shù)名類型說明
codestring1000成功裹匙,1001失敗
msgstring反饋信息
data
data.typeint類型
data.msgIdlong消息msgId
data.newMsgIdlong消息newMsgId
data.createTimelong消息發(fā)送時間戳
data.wcIdstring消息接收方id
請求參數(shù)示例
------------------------ 好友消息 ------------------------------{"wId":"0000016e-63eb-f319-0001-ed01076abf1f","wcId":"azhichao","content":"天行健爽撒,君子以自強(qiáng)不息"}
成功返回示例
{"code":"1000","message":"處理成功","data":{"type":1,"msgId":2562652205,"newMsgId":4482117376572170921,"createTime":1641457769,"wcId":"azhichao"}}
錯誤返回示例
{"message":"失敗","code":"1001","data":null}
測試地址:https://wkteam.cn/