频道定制观看页地址

优质
小牛编辑
118浏览
2023-12-01
类型备注
internal_mobile国内手机
internal_pc国内PC
intranet_mobile内网手机
intranet_pc内网PC
oversea_mobile国外手机
oversea_pc国外PC

获取定制列表

请求header

GET /v1/activities/{频道id}/watchUrl
Authorization:Bearer {ACCESS TOKEN}

注:

请将上方的{ACCESS TOKEN}替换为您的ACCESS TOKEN
请将"{频道id}"替换您需要获取的频道id

返回

{
    "status": "y",
    "msg": "",
    "data": {
        "internal_mobile": [
            {
                "id": 114197,
                "address": "http://xxx"
            }
        ],
        "oversea_pc": [
            {
                "id": 118752,
                "address": "rtmp://xxx"
            }
        ]
    }
}

返回参数说明

参数描述类型
status请求结果,成功为"y",失败为"n"string
msg结果描述string
data定制地址列表array

添加定制列表

请求header

PUT /v1/activities/{频道id}/watchUrl
Authorization:Bearer {ACCESS TOKEN}
Content-Type:application/json

请求payload

{
    "type":"intranet_mobile",
    "address":"http://192.168.2.1/watch/1xw0mr.m3u8",
    "description":"描述文本"
}

返回

{
    "status": "y",
    "msg": "操作成功"
}

删除定制列表

请求header

DELETE /v1/activities/{频道id}/watchUrl
Authorization:Bearer {ACCESS TOKEN}
Content-Type:application/json

请求payload

{
    "id":要删除的id
}

返回

{
    "status": "y",
    "msg": "操作成功"
}