查询直播间自动登录链接

更新时间:2022-12-28

接口描述

通过该接口可以获取直播间的不同角色自动登录链接
基于返回链接还需拼接相关参数,才可实现自动登录 

参考:自动登录相关

请求地址

https://ccapi.csslcloud.net/api/v1/room/auto_link

请求方式

GET 

请求参数

接口统一权限认证请参考THQS认证方式

名称 类型 必填 描述
userid String 开发者账号ID
roomid String 直播间ID

请求示例

GET https://ccapi.csslcloud.net/api/v1/room/auto_link?userid=41E8063FC799ACE&roomid=D90DCF5BF6DA3C8C9C33DC5901307461&time=1670412086&hash={hash}

返回数据

公共返回数据结构请参考 公共返回数据说明

名称 类型 描述
presenter_url String 讲师登录链接URL
talker_url String 学员登录链接URL
audience_url String 旁听登录链接URL
inspector_url String 隐身者登录链接URL
assist_url String 助教登录链接URL

返回示例

{
  "result": "OK",
  "data": {
    "presenter_url": "http://a.com",
    "talker_url": "http://a.com",
    "audience_url": "http://a.com",
    "inspector_url": "https://a.com",
    "assist_url": "https://a.com"
  }
}

查询直播间自动登录链接V2

更新时间:2024-05-28 参考:自动登录相关

请求地址

https://ccapi.csslcloud.net/api/v2/room/auto_link

请求方式

GET 

请求参数

接口统一权限认证请参考THQS认证方式

名称 类型 必填 描述
userid String 开发者账号ID
roomid String 直播间ID

请求示例

GET https://ccapi.csslcloud.net/api/v2/room/auto_link?userid=41E8063FC799ACE&roomid=D90DCF5BF6DA3C8C9C33DC5901307461&time=1670412086&hash={hash}

返回数据

公共返回数据结构请参考 公共返回数据说明

名称 类型 描述
presenter_url String 讲师登录链接URL
talker_url String 学员登录链接URL
audience_url String 旁听登录链接URL
inspector_url String 隐身者登录链接URL
assist_url String 助教登录链接URL
presenter_backup_url String 讲师备用登录链接URL
talker_backup_url String 学员备用登录链接URL
audience_backup_url String 旁听备用登录链接URL
inspector_backup_url String 隐身备用者登录链接URL
assist_backup_url String 助教备用登录链接URL

返回示例

{
  "result": "OK",
  "data": {
    "presenter_url": "https://class.csslcloud.net/hdclass/#/presenter?roomid=CABA748B34C2C0F09C33DC5901307461&role=presenter&userid=119FA1480CB3EBAF&template=32",
    "talker_url": "https://class.csslcloud.net/hdclass/#/talker?roomid=CABA748B34C2C0F09C33DC5901307461&role=talker&userid=119FA1480CB3EBAF&template=32",
    "audience_url": "https://class.csslcloud.net/hdclass/#/audience?roomid=CABA748B34C2C0F09C33DC5901307461&role=audience&userid=119FA1480CB3EBAF&template=32",
    "inspector_url": "https://class.csslcloud.net/hdclass/#/inspector?roomid=CABA748B34C2C0F09C33DC5901307461&role=inspector&userid=119FA1480CB3EBAF&template=32",
    "assist_url": "https://class.csslcloud.net/hdclass/#/assist?roomid=CABA748B34C2C0F09C33DC5901307461&role=assist&userid=119FA1480CB3EBAF&template=32",
    "presenter_backup_url": "https://class-x2.csslcloud.net/hdclass/#/presenter?roomid=CABA748B34C2C0F09C33DC5901307461&role=presenter&userid=119FA1480CB3EBAF&template=32",
    "talker_backup_url": "https://class-x2.csslcloud.net/hdclass/#/talker?roomid=CABA748B34C2C0F09C33DC5901307461&role=talker&userid=119FA1480CB3EBAF&template=32",
    "audience_backup_url": "https://class-x2.csslcloud.net/hdclass/#/audience?roomid=CABA748B34C2C0F09C33DC5901307461&role=audience&userid=119FA1480CB3EBAF&template=32",
    "inspector_backup_url": "https://class-x2.csslcloud.net/hdclass/#/inspector?roomid=CABA748B34C2C0F09C33DC5901307461&role=inspector&userid=119FA1480CB3EBAF&template=32",
    "assist_backup_url": "https://class-x2.csslcloud.net/hdclass/#/assist?roomid=CABA748B34C2C0F09C33DC5901307461&role=assist&userid=119FA1480CB3EBAF&template=32"
  }
}

results matching ""

    No results matching ""