素材上傳事件
關(guān)鍵參數(shù) | 參數(shù)類型 | 參數(shù)描述 |
---|---|---|
event | string | 事件類型,此處為Media |
id | string | 素材ID |
file | string | 文件URL,此參數(shù)的值為5G消息中素材使用的鏈接 |
filesize | int | 素材文件大小,此參數(shù)為5G消息中素材使用的文件大小 |
status | string | 文件審核狀態(tài),0為審核通過(guò),1為審核不通過(guò) |
expired | string | 素材過(guò)期時(shí)間,素材有消息目前為固定7天 |
timestamp | string | 事件觸發(fā)事件 |
數(shù)據(jù)示例
{
"event":"Media",
"id":"ZjU3eu",
"file":"https://ftnj01.xnq.r.10086.cn:10099/s/003032024040311atT7rLLdSyn050FD.png",
"filesize":1259515,
"status":"0",
"expired":"2024-04-10T11:45:33Z",
"timestamp":"2024-04-03 09:42:50"
}
模板審核事件
關(guān)鍵參數(shù) | 參數(shù)類型 | 參數(shù)描述 |
---|---|---|
event | string | 事件類型,此處為Template |
templateID | string | 模板ID |
status | string | 模板審核狀態(tài),0為審核通過(guò),1為審核不通過(guò) |
timestamp | string | 事件觸發(fā)事件 |
數(shù)據(jù)示例
{
"event":"Template",
"templateID":"S49Ecf",
"status":"0",
"timestamp":"2024-04-03 09:42:50"
}
消息發(fā)送事件
關(guān)鍵參數(shù) | 參數(shù)類型 | 參數(shù)描述 |
---|---|---|
event | string | 事件類型,此處為Message |
sendID | string | 消息發(fā)送標(biāo)識(shí) |
to | string | 收件人號(hào)碼 |
status | string | 消息發(fā)送狀態(tài),狀態(tài)的值包括:DeliveryImpossible :發(fā)送失敗<br/>DeliveredToTerminal :成功下發(fā)5G消息<br/>SMS :成功下發(fā)并回落為短信<br/>MMS :成功下發(fā)并回落為彩信 |
timestamp | string | 事件觸發(fā)事件 |
數(shù)據(jù)示例
{
"event":"Message",
"sendID":"4ee9be3058004b7f6a945558d580f4ce",
"to":"15288888888",
"status":"SMS",
"timestamp":"2024-04-03 09:42:50"
}
消息撤回事件
關(guān)鍵參數(shù) | 參數(shù)類型 | 參數(shù)描述 |
---|---|---|
event | string | 事件類型,此處為Invoke |
sendID | string | 消息發(fā)送標(biāo)識(shí) |
to | string | 收件人號(hào)碼 |
status | string | 消息發(fā)送狀態(tài),狀態(tài)的值包括:Revoked :撤回成功<br/>RevokeFailed :撤回失敗 |
timestamp | string | 事件觸發(fā)事件 |
數(shù)據(jù)示例
{
"event":"Invoke",
"sendID":"4ee9be3058004b7f6a945558d580f4ce",
"to":"15288888888",
"status":"Revoked",
"timestamp":"2024-04-03 09:42:50"
}
消息上行事件
關(guān)鍵參數(shù) | 參數(shù)類型 | 參數(shù)描述 |
---|---|---|
event | string | 事件類型,此處為Mo |
sendID | string | 消息發(fā)送標(biāo)識(shí) |
conversationID | string | 會(huì)話標(biāo)識(shí),終端點(diǎn)擊下行消息中的建議操作或建議回復(fù)按鈕,觸發(fā)上行消息攜帶的conversationID將填寫該下行消息的conversationID值;終端主動(dòng)上行的消息攜帶的conversationID填寫新生成的值。 |
contributionID | string | 消息標(biāo)識(shí),終端點(diǎn)擊下行消息中的建議操作或建議回復(fù)按鈕觸發(fā)的上行消息、主動(dòng)上行的消息攜帶的contributionID均填寫新生成的值。 |
to | string | 收件人號(hào)碼 |
contentType | string | 消息類型 |
bodyText | string | 消息內(nèi)容 |
數(shù)據(jù)示例
{
"event":"Mo",
"sendID":"4ee9be3058004b7f6a945558d580f4ce",
"conversationID":"4ee9be3058004b7f6a945558d580f4ce",
"contributionID":"4ee9be3058004b7f6a945558d580f4ce",
"to":"15288888888",
"contentType":"application/vnd.gsma.botsuggestion.response.v1.0+json",
"bodyText":"{\"response\":{\"reply\":{\"displayText\":\"回復(fù)按鈕\",\"postback\":\"data\":\"reply_btn\"}}}}",
"timestamp":"2024-04-03 09:42:50"
}