Skip to content

Commit 9ac4cb3

Browse files
publish jdcloud-sdk-python 1.6.158
1 parent 1bd6e36 commit 9ac4cb3

13 files changed

Lines changed: 491 additions & 7 deletions
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# 更新历史 #
2-
API版本:1.1.6
2+
API版本:1.1.7
33

44
|发布时间|版本号|更新|说明|
55
|---|---|---|---|
@@ -8,6 +8,7 @@ API版本:1.1.6
88
|2021-02-19 |1.1.1 |增加接口 |* 移除房间内人员;<br>* 移除房间内所有人员;<br>* 发送自定义信令给房间内的人员;<br>* 发送自定义信令给房间 ;<br> |
99
|2021-07-16 |1.1.2 |增加接口 |* 注册用户;<br>* 查询注册用户;<br>* 查询注册用户列表;<br>* 注册用户房间号;<br>* 查询注册房间号;<br>* 查询注册房间号列表;<br>* 修改房间;<br>* 查询房间内人员列表;<br>* 统计房间内人数;<br>* 移除房间内所有人员;<br>* 移除房间内指定人员;<br>* 发送自定义信令给房间内的人员;<br>* 发送自定义信令给房间;<br>* 生成token;<br> |
1010
|2021-08-26 |1.1.3 |更新接口 |* 注册用户;<br>* 查询注册用户;<br>* 查询注册用户列表;<br>* 注册用户房间号;<br>* 查询注册房间号;<br>* 查询注册房间号列表;<br>* 修改房间;<br>* 查询房间内人员列表;<br>* 统计房间内人数;<br>* 移除房间内所有人员;<br>* 移除房间内指定人员;<br>* 发送自定义信令给房间内的人员;<br>* 发送自定义信令给房间;<br>* 生成token;<br> |
11-
|2021-02-16 |1.1.4 |新增接口 |* 下发混流任务;<br>* 中止混流任务;<br>* 关闭房间内的指定流;|
12-
|2021-03-09 |1.1.5 |新增接口 |* 获取近7天通讯时长;<br>* 获取历史音频、视频区分码率通讯时长;<br>* 查询房间人数、通讯时长;<br>* 查询房间用户记录;<br>* 查询用户端到端推流码率|
13-
|2021-03-24 |1.1.6 |新增接口 |* 开启语音识别功能;<br>* 关闭语音识别功能;|
11+
|2022-02-16 |1.1.4 |新增接口 |* 下发混流任务;<br>* 中止混流任务;<br>* 关闭房间内的指定流;|
12+
|2022-03-09 |1.1.5 |新增接口 |* 获取近7天通讯时长;<br>* 获取历史音频、视频区分码率通讯时长;<br>* 查询房间人数、通讯时长;<br>* 查询房间用户记录;<br>* 查询用户端到端推流码率|
13+
|2022-03-24 |1.1.6 |新增接口 |* 开启语音识别功能;<br>* 关闭语音识别功能;|
14+
|2022-04-20 |1.1.7 |新增接口 |* 查询房间内推流信息列表;<br>* 查询指定用户在房间内的推流信息;<br>* 根据流ID查询推流信息;<br>* 查询指定用户在房间内的推流历史记录;<br>* 根据流ID查询推流历史记录;|
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 DescribeStreamInfoByStreamIdRequest(JDCloudRequest):
23+
"""
24+
根据流ID查询推流信息
25+
26+
"""
27+
28+
def __init__(self, parameters, header=None, version="v1"):
29+
super(DescribeStreamInfoByStreamIdRequest, self).__init__(
30+
'/describeStreamInfoByStreamId/{appId}', 'GET', header, version)
31+
self.parameters = parameters
32+
33+
34+
class DescribeStreamInfoByStreamIdParameters(object):
35+
36+
def __init__(self, appId,streamId):
37+
"""
38+
:param appId: 应用ID
39+
:param streamId: 流ID
40+
"""
41+
42+
self.appId = appId
43+
self.streamId = streamId
44+
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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 DescribeStreamInfosByUserIdRequest(JDCloudRequest):
23+
"""
24+
查询指定用户在房间内的推流信息
25+
26+
"""
27+
28+
def __init__(self, parameters, header=None, version="v1"):
29+
super(DescribeStreamInfosByUserIdRequest, self).__init__(
30+
'/describeStreamInfosByUserId/{appId}', 'GET', header, version)
31+
self.parameters = parameters
32+
33+
34+
class DescribeStreamInfosByUserIdParameters(object):
35+
36+
def __init__(self, appId,userRoomId, userId):
37+
"""
38+
:param appId: 应用ID
39+
:param userRoomId: 业务接入方定义的且在JRTC系统内注册过的房间号
40+
:param userId: 业务接入方用户体系定义的且在JRTC系统内注册过的userId
41+
"""
42+
43+
self.appId = appId
44+
self.userRoomId = userRoomId
45+
self.userId = userId
46+
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 DescribeStreamInfosByUserRoomIdRequest(JDCloudRequest):
23+
"""
24+
查询房间内推流信息列表
25+
允许通过条件过滤查询,支持的过滤字段如下:
26+
- status[eq] 在线状态 1-在线 2-离线
27+
- kind[eq] 在线状态 1-音频流 2-视频流 100-数据流
28+
- startTime[eq] 用户推流开始时间-UTC时间 startTime,endTime同时指定时生效
29+
- endTime[eq] 用户推流结束时间-UTC时间 startTime,endTime同时指定时生效
30+
31+
"""
32+
33+
def __init__(self, parameters, header=None, version="v1"):
34+
super(DescribeStreamInfosByUserRoomIdRequest, self).__init__(
35+
'/describeStreamInfosByUserRoomId/{appId}', 'GET', header, version)
36+
self.parameters = parameters
37+
38+
39+
class DescribeStreamInfosByUserRoomIdParameters(object):
40+
41+
def __init__(self, appId,userRoomId, ):
42+
"""
43+
:param appId: 应用ID
44+
:param userRoomId: 业务接入方定义的且在JRTC系统内注册过的房间号
45+
"""
46+
47+
self.appId = appId
48+
self.pageNumber = None
49+
self.pageSize = None
50+
self.userRoomId = userRoomId
51+
self.filters = None
52+
53+
def setPageNumber(self, pageNumber):
54+
"""
55+
:param pageNumber: (Optional) 页码;默认值为 1
56+
"""
57+
self.pageNumber = pageNumber
58+
59+
def setPageSize(self, pageSize):
60+
"""
61+
:param pageSize: (Optional) 分页大小;默认值为 10;取值范围 [10, 100]
62+
"""
63+
self.pageSize = pageSize
64+
65+
def setFilters(self, filters):
66+
"""
67+
:param filters: (Optional) 传参字段描述:
68+
- status[eq] 在线状态 1-在线 2-离线
69+
- kind[eq] 在线状态 1-音频流 2-视频流 100-数据流
70+
- startTime[eq] 用户推流开始时间-UTC时间 startTime,endTime同时指定时生效
71+
- endTime[eq] 用户推流结束时间-UTC时间 startTime,endTime同时指定时生效
72+
73+
"""
74+
self.filters = filters
75+
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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 DescribeStreamRecordsByStreamIdRequest(JDCloudRequest):
23+
"""
24+
根据流ID查询推流历史记录
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(DescribeStreamRecordsByStreamIdRequest, self).__init__(
33+
'/describeStreamRecordsByStreamId/{appId}', 'GET', header, version)
34+
self.parameters = parameters
35+
36+
37+
class DescribeStreamRecordsByStreamIdParameters(object):
38+
39+
def __init__(self, appId,streamId, ):
40+
"""
41+
:param appId: 应用ID
42+
:param streamId: 流ID
43+
"""
44+
45+
self.appId = appId
46+
self.pageNumber = None
47+
self.pageSize = None
48+
self.streamId = streamId
49+
self.filters = None
50+
51+
def setPageNumber(self, pageNumber):
52+
"""
53+
:param pageNumber: (Optional) 页码;默认值为 1
54+
"""
55+
self.pageNumber = pageNumber
56+
57+
def setPageSize(self, pageSize):
58+
"""
59+
:param pageSize: (Optional) 分页大小;默认值为 10;取值范围 [10, 100]
60+
"""
61+
self.pageSize = pageSize
62+
63+
def setFilters(self, filters):
64+
"""
65+
:param filters: (Optional) 传参字段描述:
66+
- startTime[eq] 用户推流开始时间-UTC时间 startTime,endTime同时指定时生效
67+
- endTime[eq] 用户推流结束时间-UTC时间 startTime,endTime同时指定时生效
68+
69+
"""
70+
self.filters = filters
71+
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 DescribeStreamRecordsByUserIdRequest(JDCloudRequest):
23+
"""
24+
查询指定用户在房间内的推流历史记录
25+
允许通过条件过滤查询,支持的过滤字段如下:
26+
- kind[eq] 在线状态 1-音频流 2-视频流 100-数据流
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(DescribeStreamRecordsByUserIdRequest, self).__init__(
34+
'/describeStreamRecordsByUserId/{appId}', 'GET', header, version)
35+
self.parameters = parameters
36+
37+
38+
class DescribeStreamRecordsByUserIdParameters(object):
39+
40+
def __init__(self, appId,userRoomId, userId, ):
41+
"""
42+
:param appId: 应用ID
43+
:param userRoomId: 业务接入方定义的且在JRTC系统内注册过的房间号
44+
:param userId: 业务接入方用户体系定义的且在JRTC系统内注册过的userId
45+
"""
46+
47+
self.appId = appId
48+
self.pageNumber = None
49+
self.pageSize = None
50+
self.userRoomId = userRoomId
51+
self.userId = userId
52+
self.filters = None
53+
54+
def setPageNumber(self, pageNumber):
55+
"""
56+
:param pageNumber: (Optional) 页码;默认值为 1
57+
"""
58+
self.pageNumber = pageNumber
59+
60+
def setPageSize(self, pageSize):
61+
"""
62+
:param pageSize: (Optional) 分页大小;默认值为 10;取值范围 [10, 100]
63+
"""
64+
self.pageSize = pageSize
65+
66+
def setFilters(self, filters):
67+
"""
68+
:param filters: (Optional) 传参字段描述:
69+
- kind[eq] 在线状态 1-音频流 2-视频流 100-数据流
70+
- startTime[eq] 用户推流开始时间-UTC时间 startTime,endTime同时指定时生效
71+
- endTime[eq] 用户推流结束时间-UTC时间 startTime,endTime同时指定时生效
72+
73+
"""
74+
self.filters = filters
75+

jdcloud_sdk/services/openjrtc/client/OpenjrtcClient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ def __init__(self, credential, config=None, logger=None):
2626
if config is None:
2727
config = Config('openjrtc.jdcloud-api.com')
2828

29-
super(OpenjrtcClient, self).__init__(credential, config, 'openjrtc', '1.1.6', logger)
29+
super(OpenjrtcClient, self).__init__(credential, config, 'openjrtc', '1.1.7', logger)

jdcloud_sdk/services/openjrtc/models/CallDurationByCodeRate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def __init__(self, appId=None, date=None, audio=None, lte_480=None, gt_480_lte_7
2323
"""
2424
:param appId: (Optional) 应用ID
2525
:param date: (Optional) 时间戳毫秒
26-
:param audio: (Optional) 音频时长
26+
:param audio: (Optional) 音频通讯时长-second
2727
:param lte_480: (Optional) (0,480p]通讯时长-second
2828
:param gt_480_lte_720: (Optional) (480p,720p]通讯时长-second
2929
:param gte_720: (Optional) (720p,1080p]通讯时长-second
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
20+
class RoomStreamContent(object):
21+
22+
def __init__(self, pageNumber=None, pageSize=None, totalElements=None, totalPages=None, content=None):
23+
"""
24+
:param pageNumber: (Optional) 当前页码
25+
:param pageSize: (Optional) 每页数量
26+
:param totalElements: (Optional) 查询总数
27+
:param totalPages: (Optional) 总页数
28+
:param content: (Optional) 推流信息列表
29+
"""
30+
31+
self.pageNumber = pageNumber
32+
self.pageSize = pageSize
33+
self.totalElements = totalElements
34+
self.totalPages = totalPages
35+
self.content = content

0 commit comments

Comments
 (0)