新建分类
服务地址
http://api-az-cn.danghongyun.com/rest
请求方法
POST
请求参数
| 参数 | 说明 | 类型 | 是否必须 |
|---|---|---|---|
| accessKey | 访问API用的accessKey | String | 必选 |
| action | API名称,此接口为 "addVideoCategory" | String | 必选 |
| version | API版本,目前必须为2.0 | String | 必选 |
| timestamp | API调用时间戳,1970年1月1日以来的毫秒数,如1466488681033 | String | 必选 |
| signature | 签名,请参考签名规则 | String | 必选 |
| category | 分类名称, 最大20个字符 | String | 必选 |
响应示例
{
"code":0,
"message":"success",
"result":
{
"id":2,
"category":"newCategory"
},
"success":true
}
| 字段 | 说明 |
|---|---|
| id | 分类ID |
| category | 分类名称 |
响应错误码
| 错误码 | 说明 |
|---|---|
| 0 | success |
| 10000 | exception |
| 10029 | video_category_already_exists |
| 10083 | add_video_category_failed |
| 10201 | api_not_exists |