Webhook
1.
2.
1.
2.
3.
4. 获取Notification Key后可在[Cube-开发者-Webhook Settings]的[webhooks]模块填写您想要接收异步API回调通知的URL Address ,此URL仅支持HTTPS。
5. URL Address填写并保存成功后,[Webhooks feature status]默认为[Enable]状态,您将能正常接收到所有由您发起的异步API请求的回调通知。
1.
2.
6. 您可以在[Cube-开发者-Notification Logs]模块查看这些异步API请求的回调通知记录,每次自动重新发送都会生成一条记录。
7. 支持回调通知的所有异步API,其[事件类型]统一为[异步API回调通知]([Async API callback notification ]),[事件子类型]如下表所示:
事件子类型 | Event sub-type | 异步API |
---|---|---|
激活(异步) | Activate (Async) | https://api.linksfield.net/cube/v4/sims/{sim_id}/activate |
停机v2(异步) | Suspend v2 (Async) | https://api.linksfield.net/cube/v4/sims/{sim_id}/suspend/v2 |
复机(异步) | Resume (Async) | https://api.linksfield.net/cube/v4/sims/{sim_id}/resume |
重置(异步) | Reset (Async) | https://api.linksfield.net/cube/v4/sims/{sim_id}/reset |
非OTA更换套餐 | Non-OTA Package Change | https://api.linksfield.net/cube/v4/sims/{sim_id}/bundle |
取消(异步) | Cancel (Async) | https://api.linksfield.net/cube/v4/sims/{sim_id}/cancel |
恢复(异步) | Restore (Async) | https://api.linksfield.net/cube/v4/sims/{sim_id}/restore |
恢复初始设置 | Restore to initial settings | https://api.linksfield.net/cube/v4/sims/{sim_id}/reinitialize |
选择并锁定本地网络 | Select and lock the local network | https://api.linksfield.net/cube/v4/sims/{sim_id}/selected_local_operators |
SIM卡划拨 | - | https://api.linksfield.net/cube/v4/sims |
8.
9.
重试次数 | 与上次间隔(分) | 距离开始推送时间(分) |
---|---|---|
1 | 1 | 1 |
2 | 2 | 3 |
3 | 4 | 7 |
4 | 8 | 15 |
5 | 18 | 31 |
6 | 32 | 63 |
7-30 | 60 | ... |
10.
修改于 2025-04-03 10:26:36