Skip to content

Commit 5c09e56

Browse files
publish jdcloud-sdk-python 1.6.108
1 parent 5ef21f5 commit 5c09e56

53 files changed

Lines changed: 1980 additions & 14 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# 更新历史 #
2-
API版本:1.1.0
2+
API版本:1.1.1
33

44
|发布时间|版本号|更新|说明|
55
|---|---|---|---|
66
|2020-11-30 |1.0.0 |初始版本 |* 音视频融合rtc openApi |
77
|2021-01-28 |1.1.0 |增加接口 |* 查询应用appKey;<br>* 查询应用信息;<br>* 查询用户应用列表;<br>* 修改房间;<br>* 查询房间信息;<br>* 删除房间;<br>* 查询应用下的房间列表;<br> |
8+
|2021-02-19 |1.1.1 |增加接口 |* 移除房间内人员;<br>* 移除房间内所有人员;<br>* 发送自定义信令给房间内的人员;<br>* 发送自定义信令给房间 ;<br> |
9+
|2021-07-16 |1.1.2 |增加接口 |* 注册用户;<br>* 查询注册用户;<br>* 查询注册用户列表;<br>* 注册用户房间号;<br>* 查询注册房间号;<br>* 查询注册房间号列表;<br>* 修改房间;<br>* 查询房间内人员列表;<br>* 统计房间内人数;<br>* 移除房间内所有人员;<br>* 移除房间内指定人员;<br>* 发送自定义信令给房间内的人员;<br>* 发送自定义信令给房间;<br>* 生成token;<br> |
810

jdcloud_sdk/services/openjrtc/apis/CreateRoomRequest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def __init__(self, ):
3939

4040
self.roomName = None
4141
self.appId = None
42+
self.roomType = None
4243
self.peerId = None
4344

4445
def setRoomName(self, roomName):
@@ -53,6 +54,12 @@ def setAppId(self, appId):
5354
"""
5455
self.appId = appId
5556

57+
def setRoomType(self, roomType):
58+
"""
59+
:param roomType: (Optional) 房间类型 1-小房间(音频单流订阅) 2-大房间(音频固定订阅)
60+
"""
61+
self.roomType = roomType
62+
5663
def setPeerId(self, peerId):
5764
"""
5865
:param peerId: (Optional) 用户ID(创建者ID)
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class CreateTokenRequest(JDCloudRequest):
23+
"""
24+
生成token-用户加入房间时携带token校验通过后方能加入
25+
26+
"""
27+
28+
def __init__(self, parameters, header=None, version="v1"):
29+
super(CreateTokenRequest, self).__init__(
30+
'/createToken', 'POST', header, version)
31+
self.parameters = parameters
32+
33+
34+
class CreateTokenParameters(object):
35+
36+
def __init__(self, ):
37+
"""
38+
"""
39+
40+
self.appId = None
41+
self.appKey = None
42+
self.userId = None
43+
self.userRoomId = None
44+
self.timestamp = None
45+
46+
def setAppId(self, appId):
47+
"""
48+
:param appId: (Optional) appId
49+
"""
50+
self.appId = appId
51+
52+
def setAppKey(self, appKey):
53+
"""
54+
:param appKey: (Optional) appKey
55+
"""
56+
self.appKey = appKey
57+
58+
def setUserId(self, userId):
59+
"""
60+
:param userId: (Optional) 用户id
61+
"""
62+
self.userId = userId
63+
64+
def setUserRoomId(self, userRoomId):
65+
"""
66+
:param userRoomId: (Optional) 业务接入方定义的且在JRTC系统内注册过的房间号
67+
"""
68+
self.userRoomId = userRoomId
69+
70+
def setTimestamp(self, timestamp):
71+
"""
72+
:param timestamp: (Optional) 时间戳-毫秒
73+
"""
74+
self.timestamp = timestamp
75+
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DescribeRegisterUserRequest(JDCloudRequest):
23+
"""
24+
查询注册用户
25+
26+
"""
27+
28+
def __init__(self, parameters, header=None, version="v1"):
29+
super(DescribeRegisterUserRequest, self).__init__(
30+
'/describeRegisterUser/{appId}', 'GET', header, version)
31+
self.parameters = parameters
32+
33+
34+
class DescribeRegisterUserParameters(object):
35+
36+
def __init__(self, appId, userId):
37+
"""
38+
:param appId: 应用ID
39+
:param userId: 业务接入方用户体系定义的且在JRTC系统内注册过的userId
40+
"""
41+
42+
self.appId = appId
43+
self.userId = userId
44+
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DescribeRegisterUsersRequest(JDCloudRequest):
23+
"""
24+
查询注册用户列表
25+
允许通过条件过滤查询,支持的过滤字段如下:
26+
- startTime[eq] 用户注册时间段开始时间-UTC时间 startTime,endTime同时有值时生效
27+
- endTime[eq] 用户注册时间段结束时间-UTC时间 startTime,endTime同时有值时生效
28+
29+
"""
30+
31+
def __init__(self, parameters, header=None, version="v1"):
32+
super(DescribeRegisterUsersRequest, self).__init__(
33+
'/describeRegisterUsers/{appId}', 'GET', header, version)
34+
self.parameters = parameters
35+
36+
37+
class DescribeRegisterUsersParameters(object):
38+
39+
def __init__(self, appId, ):
40+
"""
41+
:param appId: 应用ID
42+
"""
43+
44+
self.appId = appId
45+
self.pageNumber = None
46+
self.pageSize = None
47+
self.filters = None
48+
49+
def setPageNumber(self, pageNumber):
50+
"""
51+
:param pageNumber: (Optional) 页码;默认值为 1
52+
"""
53+
self.pageNumber = pageNumber
54+
55+
def setPageSize(self, pageSize):
56+
"""
57+
:param pageSize: (Optional) 分页大小;默认值为 10;取值范围 [10, 100]
58+
"""
59+
self.pageSize = pageSize
60+
61+
def setFilters(self, filters):
62+
"""
63+
:param filters: (Optional) 传参字段描述:
64+
startTime[eq]: 用户注册时间段开始时间-UTC时间 startTime,endTime同时有值时生效
65+
endTime[eq]: 用户注册时间段结束时间-UTC时间 startTime,endTime同时有值时生效
66+
67+
"""
68+
self.filters = filters
69+
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DescribeRoomUsersNumRequest(JDCloudRequest):
23+
"""
24+
统计房间内人数
25+
26+
"""
27+
28+
def __init__(self, parameters, header=None, version="v1"):
29+
super(DescribeRoomUsersNumRequest, self).__init__(
30+
'/describeRoomUsersNum/{appId}', 'GET', header, version)
31+
self.parameters = parameters
32+
33+
34+
class DescribeRoomUsersNumParameters(object):
35+
36+
def __init__(self, appId, userRoomId):
37+
"""
38+
:param appId: 应用ID
39+
:param userRoomId: 业务接入方定义的且在JRTC系统内注册过的房间号
40+
"""
41+
42+
self.appId = appId
43+
self.userRoomId = userRoomId
44+
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DescribeRoomUsersRequest(JDCloudRequest):
23+
"""
24+
查询房间内人员列表
25+
允许通过条件过滤查询,支持的过滤字段如下:
26+
- status[eq] 在线状态 1-在线 2-离线
27+
- startTime[eq] 用户加入时间段开始时间-UTC时间 startTime,endTime同时有值时生效
28+
- endTime[eq] 用户加入时间段结束时间-UTC时间 startTime,endTime同时有值时生效
29+
30+
"""
31+
32+
def __init__(self, parameters, header=None, version="v1"):
33+
super(DescribeRoomUsersRequest, self).__init__(
34+
'/describeRoomUsers/{appId}', 'GET', header, version)
35+
self.parameters = parameters
36+
37+
38+
class DescribeRoomUsersParameters(object):
39+
40+
def __init__(self, appId, userRoomId, ):
41+
"""
42+
:param appId: 应用ID
43+
:param userRoomId: 业务接入方定义的且在JRTC系统内注册过的房间号
44+
"""
45+
46+
self.appId = appId
47+
self.pageNumber = None
48+
self.pageSize = None
49+
self.userRoomId = userRoomId
50+
self.filters = None
51+
52+
def setPageNumber(self, pageNumber):
53+
"""
54+
:param pageNumber: (Optional) 页码;默认值为 1
55+
"""
56+
self.pageNumber = pageNumber
57+
58+
def setPageSize(self, pageSize):
59+
"""
60+
:param pageSize: (Optional) 分页大小;默认值为 10;取值范围 [10, 100]
61+
"""
62+
self.pageSize = pageSize
63+
64+
def setFilters(self, filters):
65+
"""
66+
:param filters: (Optional) 传参字段描述:
67+
- status[eq] 在线状态 1-在线 2-离线
68+
- startTime[eq] 用户加入时间段开始时间-UTC时间 startTime,endTime同时有值时生效
69+
- endTime[eq] 用户加入时间段结束时间-UTC时间 startTime,endTime同时有值时生效
70+
71+
"""
72+
self.filters = filters
73+
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DescribeUserByPeerRequest(JDCloudRequest):
23+
"""
24+
查询peer对应的用户信息
25+
26+
"""
27+
28+
def __init__(self, parameters, header=None, version="v1"):
29+
super(DescribeUserByPeerRequest, self).__init__(
30+
'/describeUserByPeer', 'GET', header, version)
31+
self.parameters = parameters
32+
33+
34+
class DescribeUserByPeerParameters(object):
35+
36+
def __init__(self, peerId):
37+
"""
38+
:param peerId: peerId
39+
"""
40+
41+
self.peerId = peerId
42+

0 commit comments

Comments
 (0)