云客服-消息推送接口规格:报文样例

时间:2023-11-01 16:19:48

报文样例

  • 请求头:
    Authorization:Bearer e******************************eContent-Type:application/json
  • 请求参数:
    {    "timestamp": 1625898453913,    "messages": [//1connected{        "from": "202105284494222653",        "channel": "WEB",        "to": "44444444",        "controlType": "CHAT",        "mediaType": "TEXT",        "content": "The call is connected to an agent.",        "simQuestions": null,        "senderNickname": "SYSTEM",        "timestamp": 1625898453913,        "sourceType": "SYSTEM",        "callId": null,        "messageCode": null,    },    //queuing{        "from": "202105284494222653",        "channel": "WEB",        "to": "44444444",        "controlType": "CHAT",        "mediaType": "TEXT",        "content": "Queuing...",        "simQuestions": null,        "senderNickname": "SYSTEM",        "timestamp": 1625898453913,        "sourceType": "SYSTEM",         "messageCode": null,    },    //disconnect because of agent{        "from": "202105284494222653",        "channel": "WEB",        "to": "44444444",        "controlType": "DISCONNECT",        "mediaType": null,        "content": null,        "simQuestions": null,        "senderNickname": null,        "timestamp": 1625898871961,        "sourceType": "AGENT",        "messageCode": null,        },    //disconnect because of timeout, and async switch is off{        "from": "202105284494222653",        "channel": "WEB",        "to": "44444444",        "controlType": "DISCONNECT",        "mediaType": null,        "content": null,        "simQuestions": null,        "senderNickname": null,        "timestamp": 1625898871961,        "sourceType": "SYSTEM",        "messageCode": null,        },//disconnect because of timeout, and async switch[D1]  is on{        "from": "202105284494222653",        "channel": "WEB",        "to": "44444444",        "controlType": "DISCONNECT",          "isOfflineStatus":true,        "mediaType": "TEXT",        "content": "{TIPS}",        "simQuestions": null,        "senderNickname": null,        "timestamp": 1625898871961,        "sourceType": "SYSTEM",        "messageCode": null,        },//read{        "from": "202105284494222653",        "channel": "WEB",        "to": "44444444",        "controlType": "READ",        "mediaType": null,        "content": "messageId1,messageId2[D2] ",        "simQuestions": null,        "senderNickname": null,        "timestamp": 1625898871961,        "sourceType": "AGENT",        "messageCode": null,        }]}
  • 响应参数:
    {    "resultCode": "0",    "resultDesc": "success."}
support.huaweicloud.com/usermanual-cec/cec_04_0322.html