最近更新时间:2023.05.22 14:31:18
首次发布时间:2023.03.17 13:30:36
获取直播间自定义观看账号或评论限制的配置信息。
以下请求参数列表仅列出了该接口的部分公共参数,完整公共参数列表见公共请求参数。
参数 | 类型 | 是否必选 | 描述 |
---|---|---|---|
Action | String | 是 | 接口名称 |
Version | String | 是 | 接口版本。直播当前 API 的版本为 2020-06-01 |
ActivityId | Int64 | 是 | 直播间 ID。您可以通过调用 ListActivityAPI 接口查询 ID |
ViewingRestriction | Int | 否 | 指定需要查询的自定义观看限制。支持以下取值,默认取值为
|
参数 | 类型 | 描述 |
---|---|---|
ActivityId | Int64 | 直播间 ID |
CustomViewingRestriction | Array of CustomViewingRestrictions | 自定义观看限制的配置信息 |
MainViewingRestrictionButtonTitle | String | 主登录方式的按钮文案 |
SubViewingRestrictionButtonTitle | String | 次登录方式的按钮文案 |
参数 | 类型 | 描述 |
---|---|---|
ViewingRestrictionType | Int | 自定义观看限制类型。支持以下取值。
|
CustomApp | String | 登录账号 App。您的自有账号系统名称。 |
CustomUrl | String | 登录链接。您的自有账号系统登录页面的链接。 |
SecretKey | String | 自定义登录的密钥。根据 CustomApp 和 CustomUrl 自动生成,用于计算校验签名( Sign 值),计算方法详见回调参数。 |
ErrorRedirectUrl | String | 自定义鉴权校验失败后,进入的鉴权校验失败页面的地址。该地址包含协议头。默认跳转至企业直播的自定义鉴权校验失败页面。 |
GET http://livesaas.volcengineapi.com/?Action=GetCustomViewingRestrictionInfoAPI&Version=2020-06-01&ActivityId=175980616&ViewingRestriction=0
{ "ResponseMetadata": { "Action": "GetCustomViewingRestrictionInfoAPI", "Region": "cn-north-1", "RequestId": "202303101311119BAEE6215ADC71105DF5", "Service": "livesaas", "Version": "2020-06-01" }, "Result": { "ActivityId": 175980616, "CustomViewingRestriction": [ { "CustomApp": "example1", "CustomUrl": "https://www.example1.com", "SecretKey": "xxxxx1", "ViewingRestrictionType": 1, "ErrorRedirectUrl":"https://www.error.com" }, { "CustomApp": "example2", "CustomUrl": "https://www.example2.com", "SecretKey": "xxxxx2", "ViewingRestrictionType": 2, "ErrorRedirectUrl":"https://www.error.com" } ], "MainViewingRestrictionButtonTitle": "自定义观看1", "SubViewingRestrictionButtonTitle": "自定义观看2" } }
{ "ResponseMetadata": { "RequestId": "202303101314477612B7BC845A043EBFB4", "Action": "GetCustomViewingRestrictionInfoAPI", "Version": "2020-06-01", "Service": "livesaas", "Region": "cn-north-1", "Error": { "Code": "InvalidParameter.ActivityIdInvalid", "Message": "The specified parameter ActivityId is invalid." }, "SystemTime": 1678425287 }, "Result": null }
访问公共错误码获取详细信息。