- 快速入门
- 开发指南
- API
- 认证
- 首页
- 会话控制
- 虚拟会议室
- 历史会议管理
- 会议管理
- 组织架构管理
- 企业设置
- 员工信息
- 资产设备信息
- 会议模 版管理
- 数据统计
- 系统报告
- 管理员日志
- 终端分组管理
- 录制文件管理
- 运维工具
- 呼叫
- 端口监听
- 服务区管理
- 服务器管理
- 终端管理
- 数据平台
加入会话
POST
/rsc/api/v2/user/sessions/actions/join
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
x-endpoint-id
string
操作人端点Id
Body 参数application/json
sessionInfo
会话信息
Any of
topic
string | null
会议主题
<= 30 字符
code
string | null
可选
password
string | null
会议密码
mediaOpts
媒体参数
Any of
isVideoMute
boolean | null
是否关闭视频
默认值:
true
isAudioMute
boolean | null
是否静音
默认值:
true
endpointInfo
端点信息
Any of
nickname
string | null
成员昵称
<= 100 字符
headImage
string | null
成员头像链接
<= 255 字符
deviceSn
string | null
设备的 sn 号
<= 128 字符
默认值:
UUID.randomUUID().toString()
endpointId
string | null
可选
extState
可选
deviceId
string
设备id
accessType
enum<string>
接入类型
枚举值:
未知SVCH.323SIP
默认值:
{value: SVC}
context
端点入会的上下文
Any of
callId
string | null
呼叫记录id
returnEndpointSize
integer
返回的端点数量
>= 0<= 1000
默认值:
20
示例
{
"sessionInfo": {
"topic": "string",
"code": "string",
"password": "string"
},
"mediaOpts": {
"isVideoMute": true,
"isAudioMute": true
},
"endpointInfo": {
"nickname": "string",
"headImage": "string",
"deviceSn": "UUID.randomUUID().toString()",
"endpointId": "string",
"extState": {},
"deviceId": "string",
"accessType": "{value: SVC}"
},
"context": {
"callId": "string"
},
"returnEndpointSize": 20
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/rsc/api/v2/user/sessions/actions/join' \
--header 'x-endpoint-id;' \
--header 'Content-Type: application/json' \
--data-raw '{
"sessionInfo": {
"topic": "string",
"code": "string",
"password": "string"
},
"mediaOpts": {
"isVideoMute": true,
"isAudioMute": true
},
"endpointInfo": {
"nickname": "string",
"headImage": "string",
"deviceSn": "UUID.randomUUID().toString()",
"endpointId": "string",
"extState": {},
"deviceId": "string",
"accessType": "{value: SVC}"
},
"context": {
"callId": "string"
},
"returnEndpointSize": 20
}'
返回响应
🟢201成功
application/json
Body
端点和会话详情
meetingId
string | null
会议id
sdp
string | null
媒体信息
endpoint
端点信息
Any of
nickname
string | null
昵称
avatar
string | null
头像
isMaster
boolean | null
是否主持人
isAudioMute
boolean | null
是否静音
isVideoMute
boolean | null
是否关闭摄像头
isSpeakRequest
boolean | null
是否举手
isSpeakerMute
boolean | null
是否关闭扬声器
isLocalRecording
boolean | null
是否开启本地录制
isRejoin
boolean | null
是否重新入会
id
string | null
端点 id
userId
string | null
用户 id
deviceId
string | null
设备 id
createdTime
string | null
创建时间
updatedTime
string | null
更新时间
lastJoinTime
string <int64> |