云直播
删除应用场景
Open API在线调试功能提供可视化界面在线调试API、支持生成代码示例、快速检索查看API文档等能力。前往调试
参数名称 | 类型 | 必填 | 描述 |
---|---|---|---|
sceneIds | List | 是 | 需要删除的场景的id;支持同时删除多个 |
参数名称 | 类型 | 描述 |
---|---|---|
code | Integer | 状态码 |
message | String | 操作信息 |
data | String | 返回数据 |
错误代码(code) | 描述(message) | HTTP状态码 | 语义 |
---|---|---|---|
24112000 | Parameter error | 400 | 参数错误 |
#!/bin/bash username='example_username' apiKey='example_apiKey' date=`env LANG="en_US.UTF-8" date -u "+%a, %d %b %Y %H:%M:%S GMT"` password=`echo -en "$date" | openssl dgst -sha1 -hmac $apiKey -binary | openssl enc -base64` curl -i --url "https://open.chinanetcenter.com/live/channelManage/deleteScene" \ -X "POST" \ -u "$username:$password" \ -H "Date: $date" \ -H "x-cnc-auth-method: BASIC" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "sceneIds": ["id1","id2","id3"] }'
{ "code": 200, "data": "", "message": "操作成功" }