а√在线中文网新版地址在线,播五月开心婷婷综合,午夜国产精品视频在线,√8天堂资源地址中文在线,80岁色老头oldmanvideos

注冊(cè)送短信

素材上傳事件

關(guān)鍵參數(shù)參數(shù)類型參數(shù)描述
eventstring事件類型,此處為Media
idstring素材ID
filestring文件URL,此參數(shù)的值為5G消息中素材使用的鏈接
filesizeint素材文件大小,此參數(shù)為5G消息中素材使用的文件大小
statusstring文件審核狀態(tài),0為審核通過(guò),1為審核不通過(guò)
expiredstring素材過(guò)期時(shí)間,素材有消息目前為固定7天
timestampstring事件觸發(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ù)描述
eventstring事件類型,此處為Template
templateIDstring模板ID
statusstring模板審核狀態(tài),0為審核通過(guò),1為審核不通過(guò)
timestampstring事件觸發(fā)事件

數(shù)據(jù)示例

{
  "event":"Template",
  "templateID":"S49Ecf",
  "status":"0",
  "timestamp":"2024-04-03 09:42:50"
}

消息發(fā)送事件

關(guān)鍵參數(shù)參數(shù)類型參數(shù)描述
eventstring事件類型,此處為Message
sendIDstring消息發(fā)送標(biāo)識(shí)
tostring收件人號(hào)碼
statusstring消息發(fā)送狀態(tài),狀態(tài)的值包括:
DeliveryImpossible:發(fā)送失敗<br/>DeliveredToTerminal:成功下發(fā)5G消息<br/>SMS:成功下發(fā)并回落為短信<br/>MMS:成功下發(fā)并回落為彩信
timestampstring事件觸發(fā)事件

數(shù)據(jù)示例

{
  "event":"Message",
  "sendID":"4ee9be3058004b7f6a945558d580f4ce",
  "to":"15288888888",
  "status":"SMS",
  "timestamp":"2024-04-03 09:42:50"
}

消息撤回事件

關(guān)鍵參數(shù)參數(shù)類型參數(shù)描述
eventstring事件類型,此處為Invoke
sendIDstring消息發(fā)送標(biāo)識(shí)
tostring收件人號(hào)碼
statusstring消息發(fā)送狀態(tài),狀態(tài)的值包括:
Revoked:撤回成功<br/>RevokeFailed:撤回失敗
timestampstring事件觸發(fā)事件

數(shù)據(jù)示例

{
  "event":"Invoke",
  "sendID":"4ee9be3058004b7f6a945558d580f4ce",
  "to":"15288888888",
  "status":"Revoked",
  "timestamp":"2024-04-03 09:42:50"
}

消息上行事件

關(guān)鍵參數(shù)參數(shù)類型參數(shù)描述
eventstring事件類型,此處為Mo
sendIDstring消息發(fā)送標(biāo)識(shí)
conversationIDstring會(huì)話標(biāo)識(shí),終端點(diǎn)擊下行消息中的建議操作或建議回復(fù)按鈕,觸發(fā)上行消息攜帶的conversationID將填寫該下行消息的conversationID值;終端主動(dòng)上行的消息攜帶的conversationID填寫新生成的值。
contributionIDstring消息標(biāo)識(shí),終端點(diǎn)擊下行消息中的建議操作或建議回復(fù)按鈕觸發(fā)的上行消息、主動(dòng)上行的消息攜帶的contributionID均填寫新生成的值。
tostring收件人號(hào)碼
contentTypestring消息類型
bodyTextstring消息內(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"
}