短信 SUBHOOK 事件
请求 request
events | request |
---|
address | 此联系人的手机号码 |
app | 应用 ID |
send_id | 该条短信的唯一发送标识,可在 API 请求时获取 |
content | 短信全文 |
tag | 自定义标签 |
timestamp | 事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名) |
token | 32 位随机字符串 |
signature | 数字签名 |
推送示例
{
"events":"request",
"address":"138xxxxxxx",
"send_id":"093c0a7df143c087d6cba9cdf0cf3738",
"content":"【SUBMAIL】您的验证码是:1234"
"app":xxxxx,
"tag":"xxxxx"
"timestamp":1415014855,
"token":"067ef7e2f286a9a56eabb07dc9657852",
"signature":"a70d09a9345adfdd353d34a505dac4ca"
}
短信发送成功delivered
events | delivered |
---|
address | 此联系人的手机号码 |
app | 应用 ID |
send_id | 该条短信的唯一发送标识,可在 API 请求时获取 |
operator | 手机号归属运营商 |
location | 手机号归属省份、城市 |
tag | 自定义标签 |
timestamp | 事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名) |
token | 32 位随机字符串 |
signature | 数字签名 |
推送示例
{
"events":"delivered",
"address":"138xxxxxxxx",
"send_id":"093c0a7df143c087d6cba9cdf0cf3738",
"operator":"中国移动",
"location":"上海 上海"
"tag":"xxxxx",
"app":xxxxxx,
"timestamp":1415014855,
"token":"067ef7e2f286a9a56eabb07dc9657852",
"signature":"a70d09a9345adfdd353d34a505dac4ca"
}
短信发送失败 dropped
events | dropped |
---|
address | 此联系人的手机号码 |
app | 应用 ID |
send_id | 该条短信的唯一发送标识,可在 API 请求时获取 |
report | 网关失败回执 |
report_desc | 网关失败回执描述 |
tag | 自定义标签 |
timestamp | 事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名) |
token | 32 位随机字符串 |
signature | 数字签名 |
推送示例
{
"events":"dropped",
"address":"138xxxxxxxx",
"send_id":"093c0a7df143c087d6cba9cdf0cf3738",
"report":" UNDELIV",
"report_desc": "网关黑名单",
"app":xxxxxx,
"tag":"xxx"
"timestamp":1415014855,
"token":"067ef7e2f286a9a56eabb07dc9657852",
"signature":"a70d09a9345adfdd353d34a505dac4ca"
}
短信正在发送中sending
events | sending |
---|
address | 此联系人的手机号码 |
app | 应用 ID |
send_id | 该条短信的唯一发送标识,可在 API 请求时获取 |
tag | 自定义标签 |
timestamp | 事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名) |
token | 32 位随机字符串 |
signature | 数字签名 |
推送示例
{
"events":"sending",
"address":"138xxxxxxxx",
"send_id":"093c0a7df143c087d6cba9cdf0cf3738",
"app":xxxxxx,
"tag":"xxx",
"timestamp":1415014855,
"token":"067ef7e2f286a9a56eabb07dc9657852",
"signature":"a70d09a9345adfdd353d34a505dac4ca"
}
短信上行接口推送 mo
events | mo |
---|
address | 此联系人的手机号码 |
app | 应用 ID |
content | 短信内容 |
timestamp | 事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名) |
token | 32 位随机字符串 |
signature | 数字签名 |
推送示例
{
"events":"mo",
"address":"138xxxxxxxx",
"app":xxxxxx,
"content":"xxxxxx",
"timestamp":1415014855,
"token":"067ef7e2f286a9a56eabb07dc9657852",
"signature":"a70d09a9345adfdd353d34a505dac4ca"
}
短信模板审核通过 template_accept
events | template_accept |
---|
template_id | 模板ID |
timestamp | 事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名) |
token | 32 位随机字符串 |
signature | 数字签名 |
推送示例
{
"events":"template_accept",
"template_id":"H5OSN4",
"timestamp":1415014855,
"token":"067ef7e2f286a9a56eabb07dc9657852",
"signature":"a70d09a9345adfdd353d34a505dac4ca"
}
短信模板审核未通过 template_reject
events | template_reject |
---|
reason | 审核未通过原因 |
template_id | 模板ID |
timestamp | 事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名) |
token | 32 位随机字符串 |
signature | 数字签名 |
推送示例
{
"events":"template_reject",
"reason":"签名不正确",
"template_id":"H5OSN4",
"timestamp":1415014855,
"token":"067ef7e2f286a9a56eabb07dc9657852",
"signature":"a70d09a9345adfdd353d34a505dac4ca"
}
短信签名审核结果 sms_signature
events | sms_signature |
---|
sms_signature | 短信签名 |
app | 应用 ID |
extend | 扩展码 |
status | 审核状态,1=审核通过,2=审核驳回 |
reason | 审核未通过原因 |
timestamp | 事件触发时间(此时间戳为此事件本身的触发时间,不参与计算签名) |
token | 32 位随机字符串 |
signature | 数字签名 |
推送示例
{
"events":"template_reject",
"sms_signature":"【SUBMAIL】",
"app":"12345",
"extend":"123451",
"status":"2",
"reason":"不支持中性签名",
"timestamp":1415014855,
"token":"067ef7e2f286a9a56eabb07dc9657852",
"signature":"a70d09a9345adfdd353d34a505dac4ca"
}