Social Post渠道握手认证接口
接口功能
Social Post渠道握手认证接口,用于订阅Webhook推送。
接口原型
| 请求方法 | GET | |
|---|---|---|
| 请求URL | https://ip:port/social/on/generic/instagramSocial/{channelId}?hub.mode=subscribe& hub.verify_token=****& hub.challenge=****** | 其中,ip:port为对外暴露的nslb的ip和port,也可以为域名。 channelId为Instagram社交渠道ID。 |
| 序号 | 名称 | 参数类型 | 是否必选 | 说明 |
|---|---|---|---|---|
| 1 | hub.mode | string | True | 由instagram侧自动拼接生成。订阅类型,必须subscribe。 |
| 2 | hub.verify_token | string | True | 渠道集成页面获取的验证口令。 |
| 3 | hub.challenge | Int | True | 由instagram侧自动拼接生成。instagram侧生成的认证id。 |
请求参数
无。
响应参数
| 序号 | 名称 | 参数类型 | 是否必选 | 说明 |
|---|---|---|---|---|
| 1 | challenge | String | True | instagram的认证id |
接口示例
- 请求示例
GET /social/on/generic/instagramSocial/{channelId}?hub.mode=subscribe& hub.verify_token=****& hub.challenge=1158201444
- 响应示例
Status Code: 200 response: "1158201444"