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 "setCallbackUrl" | String | Required |
version | API version, currently must be 2.0 | String | Required |
timestamp | Invoke time in milliseconds since january 1 1970, eg: 1466488681033 | String | Required |
signature | Signature generated by signature rule. | String | Required |
callbackUrl | callback url | String | Required |
Response Example
{
"code":0,
"message":"success",
"result":"",
"success":true
}
Error Codes
Code | Message |
---|---|
0 | success |
10000 | exception |
10003 | account_not_exists |
10201 | api_not_exists |
Callback
After uploading the file, when transcoding starts or ends, Arvideo Cloud server will POST the following parameters to customer through the callback api:
Parameter | Description | Type |
---|---|---|
videoId | The video ID | String |
status | Transcoding status, 1: transcoding is in progress, 2: transcoding successful, 3: transcoding error | Integer |
playCode | Play code | String |