订阅该事件后,当短信网关配置为订阅短信通知事件(详情请参见配置短信网关)时,发送短信通知时将会触发该事件。
参数 | 类型 | 描述 |
---|---|---|
schema | string | 事件消息格式版本。当前固定为 1.0。 |
header | object | 消息头,包含事件的基础信息。 |
└ event_id | string | 事件 ID,每个消息的事件 ID 唯一。 |
└ token | string | 验证 token,取值与飞连事件订阅的加密策略内设置的 Verification Token 一致,通过验证该值可以确保消息来自飞连。 |
└ create_time | string | 事件发送时间,Unix 时间戳(单位毫秒)。 |
└ event_type | string | 事件类型。当前事件的类型为 notify.v1.sms。 |
└ app_id | string | 事件回调配置 ID。 |
data | object | 事件数据。 |
└ events | object[] | 事件详细数据列表,支持数组格式。 |
└└ object | object | 事件对象信息。 |
└└└ country_code | string | 国家地区代码,格式为 |
└└└ mobile_number | string | 手机号(不包含区号)。 |
└└└ mobile | string | 手机号(包含区号)。 |
└└└ sms_type | string | 短信通知场景类型。可能值有:
|
└└└ template | string | 短信通知文案模版。 |
└└└ params | string[] | 短信通知文案模版的参数值。如果模版内有多个参数,则按模版内容从左往右的顺序,依次展示参数值。 |
└└└ expired_time | int64 | 短信通知的过期时间,Unix 时间戳(单位秒)。 |
{ "schema": "1.0", "header": { "event_id": "e09288e2-a1b3-4b38-84a8-3c673725xxxx", "token": "token-test", "create_time": "1740385174957", "event_type": "notify.v1.sms", "app_id": "897957767eda448e9e3c53c6a51dxxxx" }, "data": { "events": [ { "object": { "country_code": "+86", "mobile_number": "133xxxx3333", "mobile": "+86133xxxx3333", "sms_type": "guest_wifi", "template": "Guest Wi-Fi Networks: %s, Username: %s, Password: %s", "params": [ "Test Wi-Fi", "+86133xxxx3333", "123456" ], "expired_time": 1744615987 } } ] } }