帮助列表 |
https://openapi.aodianyun.com/v2/LSS.SetUserAuthInfo
POST
access_id:安全校验ID,值为字符串。必选
示例:“access_id”:“123456789”
access_key:安全校验码,值为字符串。必选
示例:“access_key”:“ABCDEFG”
type:配置类型,值为字符串,可取值:publish、rtmp、hls,分别对应推流、rtmp播放、hls播放。必选
示例:"type": true”
auth_info:详细配置信息,值为object,具体参考示例。必选
示例:“auth_info”: {
"enable": true, //开启或关闭鉴权
"master_key": "cb21fa200b8024ff8be256177601", //主key
"backup_key": "cb21fa200b8024ff8be256177602" //备key
}
curl -X POST https://openapi.aodianyun.com/v2/LSS.SetUserAuthInfo -d '{"access_id":"123456789","access_key":"ABCDEFG","type":"publish","auth_info":{"enable":true,"master_key":"cb21fa200b8024ff8be256177601","backup_key":"cb21fa200b8024ff8be256177601"}}'
#注意开发时,请写成一行!
Flag:操作处理结果状态码
示例:“Flag”:100。提示:Flag=100为成功,失败为非100,失败原因在FlagString中体现。
FlagString:操作处理结果状态说明
示例:“FlagString”:“添加成功”
{
"Flag": 100,
"FlagString": "操作成功"
}
您可以使用奥点云开放平台提供的API接口调试工具进行接口调试。
请登录:https://openapi.aodianyun.com/tools