频道鉴权API

获取频道验证方式

GET /actauth/api/get_method?actid=[:hashid]

URL参数

参数 描述 类型
actid 频道HashID string

返回

参数 取值 描述
errcode int 错误代码
method string 验证方式

验证方式

  • NONE: 无限制
  • PASSWORD: 验证码观看
  • PHONEWHITE: 手机白名单观看
  • USERWHITELIST: 观众白名单观看
  • CUSTOM: 自定义授权

验证用户是否拥有权限访问某个频道

POST /actauth/api/auth

JSON 参数

参数 描述 取值
actid string 频道ID
data string 验证内容

返回

参数 取值 描述
errcode int 错误代码

获取密码验证的配置信息

GET /actauth/api/get_pwdconfig?actid=[:hashid]

URL参数

参数 描述 类型
actid 频道HashID string

返回

参数 取值 描述
result object 密码验证配置
result.title string 密码验证提示
result.password string 密码内容
errcode int 错误代码

更改频道验证方式

POST /actauth/api/change_method

JSON参数

参数 取值 描述
actid string 频道HASHID
method string 验证方式

返回

参数 取值 描述
errcode int 错误代码

更改频道密码验证内容

POST /actauth/api/change_pwdconfig

JSON参数

参数 取值 描述
actid string 频道HASHID
title string 密码验证提示
password string 密码内容

返回

参数 取值 描述
errcode int 错误代码

获取自定义url

GET /actauth/api/get_activity_custom_url?actid=xxxx

URL参数

参数 描述 类型
actid 频道HashID string

返回

参数 取值 描述
url string 自定义url
errcode int 错误代码

设置自定义url

POST /actauth/api/set_activity_custom_url

JSON参数

参数 取值 描述
actid string 频道ID
url string 自定义url

返回

参数 取值 描述
errcode int 错误代码

获取手机白名单自定义提示语

GET /actauth/api/get_activity_phone_whitelist_notice?actid=xxxx

URL参数

参数 描述 类型
actid 频道HashID string

返回

参数 取值 描述
notice string 自定义提示语
errcode int 错误代码
errcontent string 错误内容

设置手机白名单自定义提示语

POST /actauth/api/set_activity_phone_whitelist_notice

JSON参数

参数 取值 描述
actid string 频道ID
notice string 自定义提示语

返回

参数 取值 描述
errcode int 错误代码
errcontent string 错误内容

获取手机白名单

GET /actauth/api/get_phone_whitelist?actid=xxxx

URL参数

参数 描述 类型
actid 频道HashID string

返回

参数 取值 描述
phone_whitelist []string 手机白名单列表
errcode int 错误代码
errcontent string 错误内容

设置手机白名单

POST /actauth/api/set_phone_whitelist

JSON参数

参数 取值 描述
actid string 频道ID
phone_whitelist []string 手机白名单列表

返回

参数 取值 描述
errcode int 错误代码
errcontent string 错误内容

手机白名单——发送验证码短信

POST /actauth/api/sendSms_phone_whitelist

JSON参数

参数 取值 描述
actid string 频道ID
phone string 手机号

返回

参数 取值 描述
errcode int 错误代码
errcontent string 错误内容

手机白名单——校验验证码

POST /actauth/api/checkcode_phone_whitelist

JSON参数

参数 取值 描述
actid string 频道ID
phone string 手机号
check_code string 验证码

返回

参数 取值 描述
errcode int 错误代码
errcontent string 错误内容

设置观众白名单配置

POST /actauth/api/set_activity_audience_whitelist_config?actid=xxxx

JSON参数

参数 取值 描述
actid string 频道ID
notice string 自定义提示语
input_notice string 输入框提示语
password_check bool 是否进行密码验证
doc_url string 文档URL

返回

参数 取值 描述
errcode int 错误代码
errcontent string 错误内容

获取观众白名单配置

GET /actauth/api/get_activity_audience_whitelist_config

URL参数

参数 描述 类型
actid 频道HashID string

返回

参数 取值 描述
notice string 自定义提示语
input_notice string 输入框提示语
password_check bool 是否进行密码验证
doc_url string 文档URL
errcode int 错误代码
errcontent string 错误内容

获取观众白名单自定义提示语

GET /actauth/api/get_activity_audience_whitelist_notice

URL参数

参数 描述 类型
actid 频道HashID string

返回

参数 取值 描述
notice string 自定义提示语
input_notice string 输入框提示语
password_check bool 是否进行密码验证
errcode int 错误代码
errcontent string 错误内容

获取观众白名单

GET /actauth/api/get_audience_whitelist?actid=xxxx

URL参数

参数 描述 类型
actid 频道HashID string

返回

excel文档

清空观众白名单

GET /actauth/api/clear_audience_whitelist?actid=xxxx

URL参数

参数 描述 类型
actid 频道HashID string

返回

参数 取值 描述
errcode int 错误代码
errcontent string 错误内容

观众白名单校验

POST /actauth/api/check_audience_whitelist

JSON参数

参数 取值 描述
actid string 频道ID
username string 用户名
password string 密码

返回

参数 取值 描述
errcode int 错误代码
errcontent string 错误内容
目睹企播 all right reserved,powered by Gitbook修订时间 2020-10-14 08:29:29

results matching ""

    No results matching ""