Set Callback URL
Service Address
http://api-az-cn.danghongyun.com/rest
Request Method
POST
Request Parameters
| Parameter | Description | Type | Required |
|---|---|---|---|
| accessKey | The user access key | String | Required |
| action | API name,this api is "setLiveCallback" | String | Required |
| version | API version, currently must be 2.0 | String | Required |
| signature | Signature generated by signature rule. | String | Required |
| timestamp | Invoke time in milliseconds since january 1 1970, eg: 1466488681033 | String | Required |
| value | the callback address for the status change of the set live broadcast channel | String | Required |
Response Example
{
"code": 0,
"message": "operation success",
"result": {
"userId": 607,
"name": "live-callback-url",
"value": "http://example.com/"
}
}
Response Fields
| Field | Description |
|---|---|
| userId | user id; |
| value | the callback address of the live channel status change; |
Callback
The callbacks are adopted POST + Content-Type: application/json way,a notice to HTTP the response 2xx is identified as a success and the 5xx response is retried up to 3 times and the 5xx response immediately terminates the retry。
Request Body:
{
"channelId": "b29f64a6796f8738ab980c869587fbe5",
"channelStatus": 1
}
Request Fields:
channelId: channel id
channelStatus: the status of the current live channel,for more information see meaning `for more information see meaning` returns fields in `status` instructions