7. 接口订阅管理
7.1. 订阅对外接口
Type: POST
Author: xezzon
Content-Type: application/json
Description: 订阅对外接口
Body-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
appId |
string |
订阅接口的第三方应用标识 |
false |
- |
openapiCode |
string |
被订阅的对外接口的编码 |
false |
- |
Request-example:
curl -X POST -H "Content-Type: application/json" -i 'http://127.0.0.1/subscription' --data '{
"appId": "",
"openapiCode": ""
}'
Response-fields:
Field | Type | Description | Since |
---|---|---|---|
id |
string |
No comments found. |
- |
Response-example:
{
"id": ""
}
7.2. 审核订阅
审核后第三方应用即可调用该接口
Type: PUT
Author: xezzon
Content-Type: application/x-www-form-urlencoded
Description: 审核订阅
审核后第三方应用即可调用该接口
Path-parameters:
Parameter | Type | Description | Required | Since |
---|---|---|---|---|
id |
string |
订阅标识 |
true |
- |
Request-example:
curl -X PUT -i 'http://127.0.0.1/subscription/audit/{id}'
Response-example:
Return void.