{
"call_id": "netinfo session id",
"channel": "HuaWei",
"channel_id": "hwbcauat",
"user": {
"id": "123",
"name": "nick"
},
"messages": [
{
"type": "text",
"text": "hi"
},
{
"type": "image",
"media": {
"origin_url": "https://www.airudder.com/xxx.jpg"
}
},
{
"type": "video",
"media": {
"origin_url": "https://www.airudder.com/xxxx.mp4"
}
},
{
"type": "audio",
"media": {
"origin_url": "https://www.airudder.com/xxx.wav"
}
},
{
"type": "file",
"media": {
"origin_url": "https://www.airudder.com/xxx.pdf",
"name": "xxx.pdf"
}
},
{
// 用户点击 interactive list 选项消息示例
"type": "interactive",
"interactive": {
"type": "list_reply",
"list_reply": {
"id": "3eeb467c935f6f2cb45021364ef3c1e8-3-1-list-0-0-",// 用户点击的选项对应的唯一标识
"title": "物流查询"// 用户点击的选项对应的文案
}
}
},
{
// 用户点击 interactive button 选项消息示例
"type": "interactive",
"interactive": {
"type": "button_reply",
"button_reply": {
"id": "3eeb467c935f6f2cb45021364ef3c1e8-2-1-button-0-",// 用户点击的按钮对应的唯一标识
"title": "男"// 用户点击的按钮对应的文案
}
}
}
]
}
curl --location --request POST 'https://api.airudder.com/api/v1/channel/huawei/message' \
--header 'X-AIRudder-Sign-Key: 206c027f3767bab7ccdae625d416f526' \
--header 'X-AIRudder-Sign;' \
--header 'Content-Type: application/json' \
--data-raw '{
"call_id": "netinfo session id",
"channel": "HuaWei",
"channel_id": "hwbcauat",
"user": {
"id": "123",
"name": "nick"
},
"messages": [
{
"type": "text",
"text": "hi"
},
{
"type": "image",
"media": {
"origin_url": "https://www.airudder.com/xxx.jpg"
}
},
{
"type": "video",
"media": {
"origin_url": "https://www.airudder.com/xxxx.mp4"
}
},
{
"type": "audio",
"media": {
"origin_url": "https://www.airudder.com/xxx.wav"
}
},
{
"type": "file",
"media": {
"origin_url": "https://www.airudder.com/xxx.pdf",
"name": "xxx.pdf"
}
},
{
// 用户点击 interactive list 选项消息示例
"type": "interactive",
"interactive": {
"type": "list_reply",
"list_reply": {
"id": "3eeb467c935f6f2cb45021364ef3c1e8-3-1-list-0-0-",// 用户点击的选项对应的唯一标识
"title": "物流查询"// 用户点击的选项对应的文案
}
}
},
{
// 用户点击 interactive button 选项消息示例
"type": "interactive",
"interactive": {
"type": "button_reply",
"button_reply": {
"id": "3eeb467c935f6f2cb45021364ef3c1e8-2-1-button-0-",// 用户点击的按钮对应的唯一标识
"title": "男"// 用户点击的按钮对应的文案
}
}
}
]
}'
{
"request_id": "7b50b74e5ec2910fe9b250c9fda7085e",
"code": 200,
"message": "success",
"data": {
"msg_id": "c98a99f32afab85d709ba23820fccccb",
"call_id": "6cf8c876eeefdca168ae7a08cb93fe20"
}
}