短信 SUBHOOK 事件


请求 request


eventsrequest
address此联系人的手机号码
app应用 ID
send_id该条短信的唯一发送标识,可在 API 请求时获取
tag自定义标签
timestamp事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名)
token32 位随机字符串
signature数字签名


推送示例
{
"events":"request",
"address":"138xxxxxxx",
"send_id":"093c0a7df143c087d6cba9cdf0cf3738",
"app":xxxxx,
"timestamp":1415014855,
"token":"067ef7e2f286a9a56eabb07dc9657852",
"signature":"a70d09a9345adfdd353d34a505dac4ca"
}


短信发送成功delievered


eventsdelivered
address此联系人的手机号码
app应用 ID
send_id该条短信的唯一发送标识,可在 API 请求时获取
tag自定义标签
timestamp事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名)
token32 位随机字符串
signature数字签名


推送示例
{
"events":"delivered",
"address":"138xxxxxxxx",
"send_id":"093c0a7df143c087d6cba9cdf0cf3738",
"tag":"xxxxx",
"app":xxxxxx,
"timestamp":1415014855,
"token":"067ef7e2f286a9a56eabb07dc9657852",
"signature":"a70d09a9345adfdd353d34a505dac4ca"
}


短信发送失败 dropped


eventsdropped
address此联系人的手机号码
app应用 ID
send_id该条短信的唯一发送标识,可在 API 请求时获取
report网关失败回执
tag自定义标签
timestamp事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名)
token32 位随机字符串
signature数字签名


推送示例
{
"events":"dropped",
"address":"138xxxxxxxx",
"send_id":"093c0a7df143c087d6cba9cdf0cf3738",
"report":" UNDELIV",
"app":xxxxxx,
"tag":"xxx"
"timestamp":1415014855,
"token":"067ef7e2f286a9a56eabb07dc9657852",
"signature":"a70d09a9345adfdd353d34a505dac4ca"
}


短信正在发送中sending


eventssending
address此联系人的手机号码
app应用 ID
send_id该条短信的唯一发送标识,可在 API 请求时获取
tag自定义标签
timestamp事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名)
token32 位随机字符串
signature数字签名


推送示例
{
"events":"sending",
"address":"138xxxxxxxx",
"send_id":"093c0a7df143c087d6cba9cdf0cf3738",
"app":xxxxxx,
"tag":"xxx"
"timestamp":1415014855,
"token":"067ef7e2f286a9a56eabb07dc9657852",
"signature":"a70d09a9345adfdd353d34a505dac4ca"
}


短信上行接口推送 mo


eventsmo
address此联系人的手机号码
app应用 ID
content短信内容
timestamp事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名)
token32 位随机字符串
signature数字签名


推送示例
{
"events":"mo",
"address":"138xxxxxxxx",
"app":xxxxxx,
"content":"xxxxxx",
"timestamp":1415014855,
"token":"067ef7e2f286a9a56eabb07dc9657852",
"signature":"a70d09a9345adfdd353d34a505dac4ca"
}


未知网关状态 unknown


eventsunkown
address此联系人的手机号码
app应用 ID
send_id该条短信的唯一发送标识,可在 API 请求时获取
timestamp事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名)
token32 位随机字符串
signature数字签名


推送示例
{
"events":"unkown",
"address":"138xxxxxxx",
"send_id":"093c0a7df143c087d6cba9cdf0cf3738",
"app":xxxxx,
"timestamp":1415014855,
"token":"067ef7e2f286a9a56eabb07dc9657852",
"signature":"a70d09a9345adfdd353d34a505dac4ca"
}


短信模板审核通过 template_accept


eventstemplate_accept
template_id模板ID
timestamp事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名)
token32 位随机字符串
signature数字签名


推送示例
{
"events":"template_accept",
"template_id":"H5OSN4",
"timestamp":1415014855,
"token":"067ef7e2f286a9a56eabb07dc9657852",
"signature":"a70d09a9345adfdd353d34a505dac4ca"
}


短信模板审核未通过 template_reject


eventstemplate_reject
reason审核未通过原因
template_id模板ID
timestamp事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名)
token32 位随机字符串
signature数字签名


推送示例
{
"events":"template_reject",
"reason":"签名不正确",
"template_id":"H5OSN4",
"timestamp":1415014855,
"token":"067ef7e2f286a9a56eabb07dc9657852",
"signature":"a70d09a9345adfdd353d34a505dac4ca"
}