請(qǐng)求URL:
http://域名地址/sendText
請(qǐng)求方式:
POST
請(qǐng)求頭Headers:
Content-Type:application/json
Authorization:login接口返回
參數(shù):
參數(shù)名必選類型說明
wId是string登錄實(shí)例標(biāo)識(shí)
wcId是string接收人微信id/群id
content是string文本內(nèi)容消息
返回?cái)?shù)據(jù):
參數(shù)名類型說明
codestring1000成功,1001失敗
msgstring反饋信息
data
data.typeint類型
data.msgIdlong消息msgId
data.newMsgIdlong消息newMsgId
data.createTimelong消息發(fā)送時(shí)間戳
data.wcIdstring消息接收方id
請(qǐng)求參數(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"}}
錯(cuò)誤返回示例
{"message":"失敗","code":"1001","data":null}
測(cè)試地址:https://wkteam.cn/
