Page History

Sendmsg

Last edited by 翁力

返回

发送消息


URL: http://10.136.39.230:8080/CnliveIM/qcloud/sendMsg.action?appId=xxxx


请求方式: HTTP POST


请求参数说明:

参数名 参数类型 必选 参数说明
appId String true 应用ID
sdkAppId String true APP在云通信控制台上获取的SDKAPPID
fromSid String true 消息发送方账号
toSid String true 消息接收方账号
msgBody String true 消息内容(JSON数组)

msgBody示例


   [
        {
            "MsgType": "TIMTextElem", 
            "MsgContent": {
                "Text": "hi, beauty"
            }
        }
    ]

返回格式: JSON


返回格式样例:

{
    "errorCode": "0"
}