帮助列表 |
https://openapi.aodianyun.com/v4/service
POST
具体参数、签名机制、请求方法请参考 openapi v4调用规则
公共请求头中的X-Service、X-Api,lps服务取以下固定值:
X-Service: lps_api
X-Api: /
cmd:add_app_stream_play_token。必选
app:appname,值为字符串。必选
stream:streamname,值为字符串。必选
tokens:需要添加播放令牌数组。必选
tokens具体参数说明:
[
{
"token": "xxx", 播放令牌,字符串。必选
"deadline": 10, 有效时间,单位秒。不传则永久有效。可选
"note": "test" 注释,字符串。可选
}
]
curl -X POST -i https://openapi.aodianyun.com/v4/service -d '{"cmd":"add_app_stream_play_token","app":"apaas1011","stream":"testtoken1","tokens":[{"token":"tokena"},{"token":"tokenb"}]}' -H "X-AccessId:481280170004" -H "X-Signature:8d1fec4874f7fcbbf9c5ac938506fe19" -H "X-TimeStamp: 1736322041" -H "X-SignatureNonce: n1736322041" -H "Content-Type: application/json" -H "X-Api: /" -H "X-Service: lps_api"
Flag:操作处理结果状态码
示例:“Flag”:100。提示:Flag=100为成功,失败为非100,失败原因在FlagString中体现。
FlagString:操作处理结果状态说明
示例:“FlagString”:“操作成功”
{
"Flag": 100,
"FlagString": "success"
}