tencentcloud-sdk-ccc 1.0.200
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-ccc.rb +11 -0
- data/lib/v20200210/client.rb +446 -0
- data/lib/v20200210/models.rb +1901 -0
- metadata +66 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: fbdefb739599455fd2fe29833560c2163ed6fbd8
|
|
4
|
+
data.tar.gz: 0bbea92c209ae489ec16c5a46512b9a491fe3197
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: a69c73000bd8bfc7cbd2b458536c4bf026d76d3ec49bdf2660e78d6742c113969a8f70678301294ea01ef154dc4a9d6cd355d34a1d4d6e65a1569eff1bb9d5a8
|
|
7
|
+
data.tar.gz: fe7f2f66305e02a7780d2edec951cfe4478250987d09dff3e3486b63b6b6460dafa9adfcd169df1104af28c7507474e5681465d168c02b2e11fa26350a4849fc
|
data/lib/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.0.200
|
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
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
|
+
require 'json'
|
|
18
|
+
|
|
19
|
+
module TencentCloud
|
|
20
|
+
module Ccc
|
|
21
|
+
module V20200210
|
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
|
23
|
+
|
|
24
|
+
def initialize(credential, region, profile = nil)
|
|
25
|
+
api_version = '2020-02-10'
|
|
26
|
+
api_endpoint = 'ccc.tencentcloudapi.com'
|
|
27
|
+
sdk_version = 'CCC_' + File.read(File.expand_path('../VERSION', __dir__)).strip
|
|
28
|
+
super(credential, region, api_version, api_endpoint, sdk_version, profile)
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
# 绑定坐席所属技能组
|
|
33
|
+
|
|
34
|
+
# @param request: Request instance for BindStaffSkillGroupList.
|
|
35
|
+
# @type request: :class:`Tencentcloud::ccc::V20200210::BindStaffSkillGroupListRequest`
|
|
36
|
+
# @rtype: :class:`Tencentcloud::ccc::V20200210::BindStaffSkillGroupListResponse`
|
|
37
|
+
def BindStaffSkillGroupList(request)
|
|
38
|
+
body = send_request('BindStaffSkillGroupList', request.serialize)
|
|
39
|
+
response = JSON.parse(body)
|
|
40
|
+
if response['Response'].key?('Error') == false
|
|
41
|
+
model = BindStaffSkillGroupListResponse.new
|
|
42
|
+
model.deserialize(response['Response'])
|
|
43
|
+
model
|
|
44
|
+
else
|
|
45
|
+
code = response['Response']['Error']['Code']
|
|
46
|
+
message = response['Response']['Error']['Message']
|
|
47
|
+
reqid = response['Response']['RequestId']
|
|
48
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
49
|
+
end
|
|
50
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
51
|
+
raise e
|
|
52
|
+
rescue StandardError => e
|
|
53
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# 创建 SDK 登录 Token。
|
|
57
|
+
|
|
58
|
+
# @param request: Request instance for CreateSDKLoginToken.
|
|
59
|
+
# @type request: :class:`Tencentcloud::ccc::V20200210::CreateSDKLoginTokenRequest`
|
|
60
|
+
# @rtype: :class:`Tencentcloud::ccc::V20200210::CreateSDKLoginTokenResponse`
|
|
61
|
+
def CreateSDKLoginToken(request)
|
|
62
|
+
body = send_request('CreateSDKLoginToken', request.serialize)
|
|
63
|
+
response = JSON.parse(body)
|
|
64
|
+
if response['Response'].key?('Error') == false
|
|
65
|
+
model = CreateSDKLoginTokenResponse.new
|
|
66
|
+
model.deserialize(response['Response'])
|
|
67
|
+
model
|
|
68
|
+
else
|
|
69
|
+
code = response['Response']['Error']['Code']
|
|
70
|
+
message = response['Response']['Error']['Message']
|
|
71
|
+
reqid = response['Response']['RequestId']
|
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
73
|
+
end
|
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
75
|
+
raise e
|
|
76
|
+
rescue StandardError => e
|
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# 创建客服账号。
|
|
81
|
+
|
|
82
|
+
# @param request: Request instance for CreateStaff.
|
|
83
|
+
# @type request: :class:`Tencentcloud::ccc::V20200210::CreateStaffRequest`
|
|
84
|
+
# @rtype: :class:`Tencentcloud::ccc::V20200210::CreateStaffResponse`
|
|
85
|
+
def CreateStaff(request)
|
|
86
|
+
body = send_request('CreateStaff', request.serialize)
|
|
87
|
+
response = JSON.parse(body)
|
|
88
|
+
if response['Response'].key?('Error') == false
|
|
89
|
+
model = CreateStaffResponse.new
|
|
90
|
+
model.deserialize(response['Response'])
|
|
91
|
+
model
|
|
92
|
+
else
|
|
93
|
+
code = response['Response']['Error']['Code']
|
|
94
|
+
message = response['Response']['Error']['Message']
|
|
95
|
+
reqid = response['Response']['RequestId']
|
|
96
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
97
|
+
end
|
|
98
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
99
|
+
raise e
|
|
100
|
+
rescue StandardError => e
|
|
101
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# 创建用户数据签名
|
|
105
|
+
|
|
106
|
+
# @param request: Request instance for CreateUserSig.
|
|
107
|
+
# @type request: :class:`Tencentcloud::ccc::V20200210::CreateUserSigRequest`
|
|
108
|
+
# @rtype: :class:`Tencentcloud::ccc::V20200210::CreateUserSigResponse`
|
|
109
|
+
def CreateUserSig(request)
|
|
110
|
+
body = send_request('CreateUserSig', request.serialize)
|
|
111
|
+
response = JSON.parse(body)
|
|
112
|
+
if response['Response'].key?('Error') == false
|
|
113
|
+
model = CreateUserSigResponse.new
|
|
114
|
+
model.deserialize(response['Response'])
|
|
115
|
+
model
|
|
116
|
+
else
|
|
117
|
+
code = response['Response']['Error']['Code']
|
|
118
|
+
message = response['Response']['Error']['Message']
|
|
119
|
+
reqid = response['Response']['RequestId']
|
|
120
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
121
|
+
end
|
|
122
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
123
|
+
raise e
|
|
124
|
+
rescue StandardError => e
|
|
125
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# 删除坐席信息
|
|
129
|
+
|
|
130
|
+
# @param request: Request instance for DeleteStaff.
|
|
131
|
+
# @type request: :class:`Tencentcloud::ccc::V20200210::DeleteStaffRequest`
|
|
132
|
+
# @rtype: :class:`Tencentcloud::ccc::V20200210::DeleteStaffResponse`
|
|
133
|
+
def DeleteStaff(request)
|
|
134
|
+
body = send_request('DeleteStaff', request.serialize)
|
|
135
|
+
response = JSON.parse(body)
|
|
136
|
+
if response['Response'].key?('Error') == false
|
|
137
|
+
model = DeleteStaffResponse.new
|
|
138
|
+
model.deserialize(response['Response'])
|
|
139
|
+
model
|
|
140
|
+
else
|
|
141
|
+
code = response['Response']['Error']['Code']
|
|
142
|
+
message = response['Response']['Error']['Message']
|
|
143
|
+
reqid = response['Response']['RequestId']
|
|
144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
145
|
+
end
|
|
146
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
147
|
+
raise e
|
|
148
|
+
rescue StandardError => e
|
|
149
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# 获取呼入实时数据统计指标
|
|
153
|
+
|
|
154
|
+
# @param request: Request instance for DescribeCallInMetrics.
|
|
155
|
+
# @type request: :class:`Tencentcloud::ccc::V20200210::DescribeCallInMetricsRequest`
|
|
156
|
+
# @rtype: :class:`Tencentcloud::ccc::V20200210::DescribeCallInMetricsResponse`
|
|
157
|
+
def DescribeCallInMetrics(request)
|
|
158
|
+
body = send_request('DescribeCallInMetrics', request.serialize)
|
|
159
|
+
response = JSON.parse(body)
|
|
160
|
+
if response['Response'].key?('Error') == false
|
|
161
|
+
model = DescribeCallInMetricsResponse.new
|
|
162
|
+
model.deserialize(response['Response'])
|
|
163
|
+
model
|
|
164
|
+
else
|
|
165
|
+
code = response['Response']['Error']['Code']
|
|
166
|
+
message = response['Response']['Error']['Message']
|
|
167
|
+
reqid = response['Response']['RequestId']
|
|
168
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
169
|
+
end
|
|
170
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
171
|
+
raise e
|
|
172
|
+
rescue StandardError => e
|
|
173
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# 包括具体聊天内容
|
|
177
|
+
|
|
178
|
+
# @param request: Request instance for DescribeChatMessages.
|
|
179
|
+
# @type request: :class:`Tencentcloud::ccc::V20200210::DescribeChatMessagesRequest`
|
|
180
|
+
# @rtype: :class:`Tencentcloud::ccc::V20200210::DescribeChatMessagesResponse`
|
|
181
|
+
def DescribeChatMessages(request)
|
|
182
|
+
body = send_request('DescribeChatMessages', request.serialize)
|
|
183
|
+
response = JSON.parse(body)
|
|
184
|
+
if response['Response'].key?('Error') == false
|
|
185
|
+
model = DescribeChatMessagesResponse.new
|
|
186
|
+
model.deserialize(response['Response'])
|
|
187
|
+
model
|
|
188
|
+
else
|
|
189
|
+
code = response['Response']['Error']['Code']
|
|
190
|
+
message = response['Response']['Error']['Message']
|
|
191
|
+
reqid = response['Response']['RequestId']
|
|
192
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
193
|
+
end
|
|
194
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
195
|
+
raise e
|
|
196
|
+
rescue StandardError => e
|
|
197
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# 包括全媒体和文本两种类型
|
|
201
|
+
|
|
202
|
+
# @param request: Request instance for DescribeIMCdrs.
|
|
203
|
+
# @type request: :class:`Tencentcloud::ccc::V20200210::DescribeIMCdrsRequest`
|
|
204
|
+
# @rtype: :class:`Tencentcloud::ccc::V20200210::DescribeIMCdrsResponse`
|
|
205
|
+
def DescribeIMCdrs(request)
|
|
206
|
+
body = send_request('DescribeIMCdrs', request.serialize)
|
|
207
|
+
response = JSON.parse(body)
|
|
208
|
+
if response['Response'].key?('Error') == false
|
|
209
|
+
model = DescribeIMCdrsResponse.new
|
|
210
|
+
model.deserialize(response['Response'])
|
|
211
|
+
model
|
|
212
|
+
else
|
|
213
|
+
code = response['Response']['Error']['Code']
|
|
214
|
+
message = response['Response']['Error']['Message']
|
|
215
|
+
reqid = response['Response']['RequestId']
|
|
216
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
217
|
+
end
|
|
218
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
219
|
+
raise e
|
|
220
|
+
rescue StandardError => e
|
|
221
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# 获取当前正在通话的会话列表
|
|
225
|
+
|
|
226
|
+
# @param request: Request instance for DescribePSTNActiveSessionList.
|
|
227
|
+
# @type request: :class:`Tencentcloud::ccc::V20200210::DescribePSTNActiveSessionListRequest`
|
|
228
|
+
# @rtype: :class:`Tencentcloud::ccc::V20200210::DescribePSTNActiveSessionListResponse`
|
|
229
|
+
def DescribePSTNActiveSessionList(request)
|
|
230
|
+
body = send_request('DescribePSTNActiveSessionList', request.serialize)
|
|
231
|
+
response = JSON.parse(body)
|
|
232
|
+
if response['Response'].key?('Error') == false
|
|
233
|
+
model = DescribePSTNActiveSessionListResponse.new
|
|
234
|
+
model.deserialize(response['Response'])
|
|
235
|
+
model
|
|
236
|
+
else
|
|
237
|
+
code = response['Response']['Error']['Code']
|
|
238
|
+
message = response['Response']['Error']['Message']
|
|
239
|
+
reqid = response['Response']['RequestId']
|
|
240
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
241
|
+
end
|
|
242
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
243
|
+
raise e
|
|
244
|
+
rescue StandardError => e
|
|
245
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
# 废弃接口下架
|
|
249
|
+
|
|
250
|
+
# 获取坐席用户列表(废弃)
|
|
251
|
+
|
|
252
|
+
# @param request: Request instance for DescribeSeatUserList.
|
|
253
|
+
# @type request: :class:`Tencentcloud::ccc::V20200210::DescribeSeatUserListRequest`
|
|
254
|
+
# @rtype: :class:`Tencentcloud::ccc::V20200210::DescribeSeatUserListResponse`
|
|
255
|
+
def DescribeSeatUserList(request)
|
|
256
|
+
body = send_request('DescribeSeatUserList', request.serialize)
|
|
257
|
+
response = JSON.parse(body)
|
|
258
|
+
if response['Response'].key?('Error') == false
|
|
259
|
+
model = DescribeSeatUserListResponse.new
|
|
260
|
+
model.deserialize(response['Response'])
|
|
261
|
+
model
|
|
262
|
+
else
|
|
263
|
+
code = response['Response']['Error']['Code']
|
|
264
|
+
message = response['Response']['Error']['Message']
|
|
265
|
+
reqid = response['Response']['RequestId']
|
|
266
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
267
|
+
end
|
|
268
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
269
|
+
raise e
|
|
270
|
+
rescue StandardError => e
|
|
271
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
# 获取技能组信息列表
|
|
275
|
+
|
|
276
|
+
# @param request: Request instance for DescribeSkillGroupInfoList.
|
|
277
|
+
# @type request: :class:`Tencentcloud::ccc::V20200210::DescribeSkillGroupInfoListRequest`
|
|
278
|
+
# @rtype: :class:`Tencentcloud::ccc::V20200210::DescribeSkillGroupInfoListResponse`
|
|
279
|
+
def DescribeSkillGroupInfoList(request)
|
|
280
|
+
body = send_request('DescribeSkillGroupInfoList', request.serialize)
|
|
281
|
+
response = JSON.parse(body)
|
|
282
|
+
if response['Response'].key?('Error') == false
|
|
283
|
+
model = DescribeSkillGroupInfoListResponse.new
|
|
284
|
+
model.deserialize(response['Response'])
|
|
285
|
+
model
|
|
286
|
+
else
|
|
287
|
+
code = response['Response']['Error']['Code']
|
|
288
|
+
message = response['Response']['Error']['Message']
|
|
289
|
+
reqid = response['Response']['RequestId']
|
|
290
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
291
|
+
end
|
|
292
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
293
|
+
raise e
|
|
294
|
+
rescue StandardError => e
|
|
295
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
# 获取坐席信息列表
|
|
299
|
+
|
|
300
|
+
# @param request: Request instance for DescribeStaffInfoList.
|
|
301
|
+
# @type request: :class:`Tencentcloud::ccc::V20200210::DescribeStaffInfoListRequest`
|
|
302
|
+
# @rtype: :class:`Tencentcloud::ccc::V20200210::DescribeStaffInfoListResponse`
|
|
303
|
+
def DescribeStaffInfoList(request)
|
|
304
|
+
body = send_request('DescribeStaffInfoList', request.serialize)
|
|
305
|
+
response = JSON.parse(body)
|
|
306
|
+
if response['Response'].key?('Error') == false
|
|
307
|
+
model = DescribeStaffInfoListResponse.new
|
|
308
|
+
model.deserialize(response['Response'])
|
|
309
|
+
model
|
|
310
|
+
else
|
|
311
|
+
code = response['Response']['Error']['Code']
|
|
312
|
+
message = response['Response']['Error']['Message']
|
|
313
|
+
reqid = response['Response']['RequestId']
|
|
314
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
315
|
+
end
|
|
316
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
317
|
+
raise e
|
|
318
|
+
rescue StandardError => e
|
|
319
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
# 获取坐席实时状态统计指标
|
|
323
|
+
|
|
324
|
+
# @param request: Request instance for DescribeStaffStatusMetrics.
|
|
325
|
+
# @type request: :class:`Tencentcloud::ccc::V20200210::DescribeStaffStatusMetricsRequest`
|
|
326
|
+
# @rtype: :class:`Tencentcloud::ccc::V20200210::DescribeStaffStatusMetricsResponse`
|
|
327
|
+
def DescribeStaffStatusMetrics(request)
|
|
328
|
+
body = send_request('DescribeStaffStatusMetrics', request.serialize)
|
|
329
|
+
response = JSON.parse(body)
|
|
330
|
+
if response['Response'].key?('Error') == false
|
|
331
|
+
model = DescribeStaffStatusMetricsResponse.new
|
|
332
|
+
model.deserialize(response['Response'])
|
|
333
|
+
model
|
|
334
|
+
else
|
|
335
|
+
code = response['Response']['Error']['Code']
|
|
336
|
+
message = response['Response']['Error']['Message']
|
|
337
|
+
reqid = response['Response']['RequestId']
|
|
338
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
339
|
+
end
|
|
340
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
341
|
+
raise e
|
|
342
|
+
rescue StandardError => e
|
|
343
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
# 按实例获取电话消耗统计
|
|
347
|
+
|
|
348
|
+
# @param request: Request instance for DescribeTelCallInfo.
|
|
349
|
+
# @type request: :class:`Tencentcloud::ccc::V20200210::DescribeTelCallInfoRequest`
|
|
350
|
+
# @rtype: :class:`Tencentcloud::ccc::V20200210::DescribeTelCallInfoResponse`
|
|
351
|
+
def DescribeTelCallInfo(request)
|
|
352
|
+
body = send_request('DescribeTelCallInfo', request.serialize)
|
|
353
|
+
response = JSON.parse(body)
|
|
354
|
+
if response['Response'].key?('Error') == false
|
|
355
|
+
model = DescribeTelCallInfoResponse.new
|
|
356
|
+
model.deserialize(response['Response'])
|
|
357
|
+
model
|
|
358
|
+
else
|
|
359
|
+
code = response['Response']['Error']['Code']
|
|
360
|
+
message = response['Response']['Error']['Message']
|
|
361
|
+
reqid = response['Response']['RequestId']
|
|
362
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
363
|
+
end
|
|
364
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
365
|
+
raise e
|
|
366
|
+
rescue StandardError => e
|
|
367
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
# 获取电话服务记录与录音
|
|
371
|
+
|
|
372
|
+
# @param request: Request instance for DescribeTelCdr.
|
|
373
|
+
# @type request: :class:`Tencentcloud::ccc::V20200210::DescribeTelCdrRequest`
|
|
374
|
+
# @rtype: :class:`Tencentcloud::ccc::V20200210::DescribeTelCdrResponse`
|
|
375
|
+
def DescribeTelCdr(request)
|
|
376
|
+
body = send_request('DescribeTelCdr', request.serialize)
|
|
377
|
+
response = JSON.parse(body)
|
|
378
|
+
if response['Response'].key?('Error') == false
|
|
379
|
+
model = DescribeTelCdrResponse.new
|
|
380
|
+
model.deserialize(response['Response'])
|
|
381
|
+
model
|
|
382
|
+
else
|
|
383
|
+
code = response['Response']['Error']['Code']
|
|
384
|
+
message = response['Response']['Error']['Message']
|
|
385
|
+
reqid = response['Response']['RequestId']
|
|
386
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
387
|
+
end
|
|
388
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
389
|
+
raise e
|
|
390
|
+
rescue StandardError => e
|
|
391
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
# 获取 PSTN 会话信息
|
|
395
|
+
|
|
396
|
+
# @param request: Request instance for DescribeTelSession.
|
|
397
|
+
# @type request: :class:`Tencentcloud::ccc::V20200210::DescribeTelSessionRequest`
|
|
398
|
+
# @rtype: :class:`Tencentcloud::ccc::V20200210::DescribeTelSessionResponse`
|
|
399
|
+
def DescribeTelSession(request)
|
|
400
|
+
body = send_request('DescribeTelSession', request.serialize)
|
|
401
|
+
response = JSON.parse(body)
|
|
402
|
+
if response['Response'].key?('Error') == false
|
|
403
|
+
model = DescribeTelSessionResponse.new
|
|
404
|
+
model.deserialize(response['Response'])
|
|
405
|
+
model
|
|
406
|
+
else
|
|
407
|
+
code = response['Response']['Error']['Code']
|
|
408
|
+
message = response['Response']['Error']['Message']
|
|
409
|
+
reqid = response['Response']['RequestId']
|
|
410
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
411
|
+
end
|
|
412
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
413
|
+
raise e
|
|
414
|
+
rescue StandardError => e
|
|
415
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
416
|
+
end
|
|
417
|
+
|
|
418
|
+
# 解绑坐席所属技能组
|
|
419
|
+
|
|
420
|
+
# @param request: Request instance for UnbindStaffSkillGroupList.
|
|
421
|
+
# @type request: :class:`Tencentcloud::ccc::V20200210::UnbindStaffSkillGroupListRequest`
|
|
422
|
+
# @rtype: :class:`Tencentcloud::ccc::V20200210::UnbindStaffSkillGroupListResponse`
|
|
423
|
+
def UnbindStaffSkillGroupList(request)
|
|
424
|
+
body = send_request('UnbindStaffSkillGroupList', request.serialize)
|
|
425
|
+
response = JSON.parse(body)
|
|
426
|
+
if response['Response'].key?('Error') == false
|
|
427
|
+
model = UnbindStaffSkillGroupListResponse.new
|
|
428
|
+
model.deserialize(response['Response'])
|
|
429
|
+
model
|
|
430
|
+
else
|
|
431
|
+
code = response['Response']['Error']['Code']
|
|
432
|
+
message = response['Response']['Error']['Message']
|
|
433
|
+
reqid = response['Response']['RequestId']
|
|
434
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
435
|
+
end
|
|
436
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
437
|
+
raise e
|
|
438
|
+
rescue StandardError => e
|
|
439
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
440
|
+
end
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
end
|
|
444
|
+
end
|
|
445
|
+
end
|
|
446
|
+
end
|