tencentcloud-sdk-ccc 1.0.254 → 1.0.255
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20200210/client.rb +72 -0
- data/lib/v20200210/models.rb +207 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f23e75e2ae6b226f03b046ea34e4ef7089a28a60
|
4
|
+
data.tar.gz: 154a658c1c91b3783f7c190a747524c789940657
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f00bcb71ad065d8c65a1e5e566997707647f8fdda77a9df85a3dff6fb60906a6860d80834170fb963e32acbf132d6ad8dcd358db504c08f56b9a26aa5deb4e53
|
7
|
+
data.tar.gz: 4486f3ad8f01f89cdbff17c3c55c36b0274dc09ac5edfd742f3bf0993142399efd7e392bf7b19cf083d465f410e09153979756795336d05969355265c64c98a3
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.255
|
data/lib/v20200210/client.rb
CHANGED
@@ -53,6 +53,30 @@ module TencentCloud
|
|
53
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
54
|
end
|
55
55
|
|
56
|
+
# 创建自动外呼任务
|
57
|
+
|
58
|
+
# @param request: Request instance for CreateAutoCalloutTask.
|
59
|
+
# @type request: :class:`Tencentcloud::ccc::V20200210::CreateAutoCalloutTaskRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::ccc::V20200210::CreateAutoCalloutTaskResponse`
|
61
|
+
def CreateAutoCalloutTask(request)
|
62
|
+
body = send_request('CreateAutoCalloutTask', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = CreateAutoCalloutTaskResponse.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
|
+
|
56
80
|
# 创建外呼会话
|
57
81
|
|
58
82
|
# @param request: Request instance for CreateCallOutSession.
|
@@ -173,6 +197,30 @@ module TencentCloud
|
|
173
197
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
174
198
|
end
|
175
199
|
|
200
|
+
# 查询自动外呼任务详情
|
201
|
+
|
202
|
+
# @param request: Request instance for DescribeAutoCalloutTask.
|
203
|
+
# @type request: :class:`Tencentcloud::ccc::V20200210::DescribeAutoCalloutTaskRequest`
|
204
|
+
# @rtype: :class:`Tencentcloud::ccc::V20200210::DescribeAutoCalloutTaskResponse`
|
205
|
+
def DescribeAutoCalloutTask(request)
|
206
|
+
body = send_request('DescribeAutoCalloutTask', request.serialize)
|
207
|
+
response = JSON.parse(body)
|
208
|
+
if response['Response'].key?('Error') == false
|
209
|
+
model = DescribeAutoCalloutTaskResponse.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
|
+
|
176
224
|
# 批量查询自动任务外呼
|
177
225
|
|
178
226
|
# @param request: Request instance for DescribeAutoCalloutTasks.
|
@@ -487,6 +535,30 @@ module TencentCloud
|
|
487
535
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
488
536
|
end
|
489
537
|
|
538
|
+
# 停止自动外呼任务
|
539
|
+
|
540
|
+
# @param request: Request instance for StopAutoCalloutTask.
|
541
|
+
# @type request: :class:`Tencentcloud::ccc::V20200210::StopAutoCalloutTaskRequest`
|
542
|
+
# @rtype: :class:`Tencentcloud::ccc::V20200210::StopAutoCalloutTaskResponse`
|
543
|
+
def StopAutoCalloutTask(request)
|
544
|
+
body = send_request('StopAutoCalloutTask', request.serialize)
|
545
|
+
response = JSON.parse(body)
|
546
|
+
if response['Response'].key?('Error') == false
|
547
|
+
model = StopAutoCalloutTaskResponse.new
|
548
|
+
model.deserialize(response['Response'])
|
549
|
+
model
|
550
|
+
else
|
551
|
+
code = response['Response']['Error']['Code']
|
552
|
+
message = response['Response']['Error']['Message']
|
553
|
+
reqid = response['Response']['RequestId']
|
554
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
555
|
+
end
|
556
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
557
|
+
raise e
|
558
|
+
rescue StandardError => e
|
559
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
560
|
+
end
|
561
|
+
|
490
562
|
# 解绑坐席所属技能组
|
491
563
|
|
492
564
|
# @param request: Request instance for UnbindStaffSkillGroupList.
|
data/lib/v20200210/models.rb
CHANGED
@@ -17,6 +17,26 @@
|
|
17
17
|
module TencentCloud
|
18
18
|
module Ccc
|
19
19
|
module V20200210
|
20
|
+
# 外呼任务被叫信息
|
21
|
+
class AutoCalloutTaskCalleeInfo < TencentCloud::Common::AbstractModel
|
22
|
+
# @param Callee: 被叫号码
|
23
|
+
# @type Callee: String
|
24
|
+
# @param State: 呼叫状态 0初始 1已接听 2未接听 3呼叫中 4待重试
|
25
|
+
# @type State: Integer
|
26
|
+
|
27
|
+
attr_accessor :Callee, :State
|
28
|
+
|
29
|
+
def initialize(callee=nil, state=nil)
|
30
|
+
@Callee = callee
|
31
|
+
@State = state
|
32
|
+
end
|
33
|
+
|
34
|
+
def deserialize(params)
|
35
|
+
@Callee = params['Callee']
|
36
|
+
@State = params['State']
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
20
40
|
# 自动外呼任务列表项
|
21
41
|
class AutoCalloutTaskInfo < TencentCloud::Common::AbstractModel
|
22
42
|
# @param Name: 任务名
|
@@ -215,6 +235,74 @@ module TencentCloud
|
|
215
235
|
end
|
216
236
|
end
|
217
237
|
|
238
|
+
# CreateAutoCalloutTask请求参数结构体
|
239
|
+
class CreateAutoCalloutTaskRequest < TencentCloud::Common::AbstractModel
|
240
|
+
# @param SdkAppId: 呼叫中心实例Id
|
241
|
+
# @type SdkAppId: Integer
|
242
|
+
# @param NotBefore: 任务起始时间戳,Unix 秒级时间戳
|
243
|
+
# @type NotBefore: Integer
|
244
|
+
# @param Callees: 被叫号码列表
|
245
|
+
# @type Callees: Array
|
246
|
+
# @param Callers: 主叫号码列表
|
247
|
+
# @type Callers: Array
|
248
|
+
# @param IvrId: 呼叫使用的Ivr
|
249
|
+
# @type IvrId: Integer
|
250
|
+
# @param Name: 任务名
|
251
|
+
# @type Name: String
|
252
|
+
# @param Description: 任务描述
|
253
|
+
# @type Description: String
|
254
|
+
# @param NotAfter: 任务停止时间戳,Unix 秒级时间戳
|
255
|
+
# @type NotAfter: Integer
|
256
|
+
# @param Tries: 最大尝试次数
|
257
|
+
# @type Tries: Integer
|
258
|
+
|
259
|
+
attr_accessor :SdkAppId, :NotBefore, :Callees, :Callers, :IvrId, :Name, :Description, :NotAfter, :Tries
|
260
|
+
|
261
|
+
def initialize(sdkappid=nil, notbefore=nil, callees=nil, callers=nil, ivrid=nil, name=nil, description=nil, notafter=nil, tries=nil)
|
262
|
+
@SdkAppId = sdkappid
|
263
|
+
@NotBefore = notbefore
|
264
|
+
@Callees = callees
|
265
|
+
@Callers = callers
|
266
|
+
@IvrId = ivrid
|
267
|
+
@Name = name
|
268
|
+
@Description = description
|
269
|
+
@NotAfter = notafter
|
270
|
+
@Tries = tries
|
271
|
+
end
|
272
|
+
|
273
|
+
def deserialize(params)
|
274
|
+
@SdkAppId = params['SdkAppId']
|
275
|
+
@NotBefore = params['NotBefore']
|
276
|
+
@Callees = params['Callees']
|
277
|
+
@Callers = params['Callers']
|
278
|
+
@IvrId = params['IvrId']
|
279
|
+
@Name = params['Name']
|
280
|
+
@Description = params['Description']
|
281
|
+
@NotAfter = params['NotAfter']
|
282
|
+
@Tries = params['Tries']
|
283
|
+
end
|
284
|
+
end
|
285
|
+
|
286
|
+
# CreateAutoCalloutTask返回参数结构体
|
287
|
+
class CreateAutoCalloutTaskResponse < TencentCloud::Common::AbstractModel
|
288
|
+
# @param TaskId: 任务Id
|
289
|
+
# @type TaskId: Integer
|
290
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
291
|
+
# @type RequestId: String
|
292
|
+
|
293
|
+
attr_accessor :TaskId, :RequestId
|
294
|
+
|
295
|
+
def initialize(taskid=nil, requestid=nil)
|
296
|
+
@TaskId = taskid
|
297
|
+
@RequestId = requestid
|
298
|
+
end
|
299
|
+
|
300
|
+
def deserialize(params)
|
301
|
+
@TaskId = params['TaskId']
|
302
|
+
@RequestId = params['RequestId']
|
303
|
+
end
|
304
|
+
end
|
305
|
+
|
218
306
|
# CreateCallOutSession请求参数结构体
|
219
307
|
class CreateCallOutSessionRequest < TencentCloud::Common::AbstractModel
|
220
308
|
# @param SdkAppId: 应用 ID
|
@@ -463,6 +551,82 @@ module TencentCloud
|
|
463
551
|
end
|
464
552
|
end
|
465
553
|
|
554
|
+
# DescribeAutoCalloutTask请求参数结构体
|
555
|
+
class DescribeAutoCalloutTaskRequest < TencentCloud::Common::AbstractModel
|
556
|
+
# @param SdkAppId: 呼叫中心实例Id
|
557
|
+
# @type SdkAppId: Integer
|
558
|
+
# @param TaskId: 任务Id
|
559
|
+
# @type TaskId: Integer
|
560
|
+
|
561
|
+
attr_accessor :SdkAppId, :TaskId
|
562
|
+
|
563
|
+
def initialize(sdkappid=nil, taskid=nil)
|
564
|
+
@SdkAppId = sdkappid
|
565
|
+
@TaskId = taskid
|
566
|
+
end
|
567
|
+
|
568
|
+
def deserialize(params)
|
569
|
+
@SdkAppId = params['SdkAppId']
|
570
|
+
@TaskId = params['TaskId']
|
571
|
+
end
|
572
|
+
end
|
573
|
+
|
574
|
+
# DescribeAutoCalloutTask返回参数结构体
|
575
|
+
class DescribeAutoCalloutTaskResponse < TencentCloud::Common::AbstractModel
|
576
|
+
# @param Name: 任务名
|
577
|
+
# @type Name: String
|
578
|
+
# @param Description: 任务描述
|
579
|
+
# @type Description: String
|
580
|
+
# @param NotBefore: 任务起始时间戳
|
581
|
+
# @type NotBefore: Integer
|
582
|
+
# @param NotAfter: 任务结束时间戳
|
583
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
584
|
+
# @type NotAfter: Integer
|
585
|
+
# @param Callers: 主叫列表
|
586
|
+
# @type Callers: Array
|
587
|
+
# @param Callees: 被叫信息列表
|
588
|
+
# @type Callees: Array
|
589
|
+
# @param IvrId: 任务使用的IvrId
|
590
|
+
# @type IvrId: Integer
|
591
|
+
# @param State: 任务状态 0初始 1运行中 2已完成 3结束中 4已终止
|
592
|
+
# @type State: Integer
|
593
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
594
|
+
# @type RequestId: String
|
595
|
+
|
596
|
+
attr_accessor :Name, :Description, :NotBefore, :NotAfter, :Callers, :Callees, :IvrId, :State, :RequestId
|
597
|
+
|
598
|
+
def initialize(name=nil, description=nil, notbefore=nil, notafter=nil, callers=nil, callees=nil, ivrid=nil, state=nil, requestid=nil)
|
599
|
+
@Name = name
|
600
|
+
@Description = description
|
601
|
+
@NotBefore = notbefore
|
602
|
+
@NotAfter = notafter
|
603
|
+
@Callers = callers
|
604
|
+
@Callees = callees
|
605
|
+
@IvrId = ivrid
|
606
|
+
@State = state
|
607
|
+
@RequestId = requestid
|
608
|
+
end
|
609
|
+
|
610
|
+
def deserialize(params)
|
611
|
+
@Name = params['Name']
|
612
|
+
@Description = params['Description']
|
613
|
+
@NotBefore = params['NotBefore']
|
614
|
+
@NotAfter = params['NotAfter']
|
615
|
+
@Callers = params['Callers']
|
616
|
+
unless params['Callees'].nil?
|
617
|
+
@Callees = []
|
618
|
+
params['Callees'].each do |i|
|
619
|
+
autocallouttaskcalleeinfo_tmp = AutoCalloutTaskCalleeInfo.new
|
620
|
+
autocallouttaskcalleeinfo_tmp.deserialize(i)
|
621
|
+
@Callees << autocallouttaskcalleeinfo_tmp
|
622
|
+
end
|
623
|
+
end
|
624
|
+
@IvrId = params['IvrId']
|
625
|
+
@State = params['State']
|
626
|
+
@RequestId = params['RequestId']
|
627
|
+
end
|
628
|
+
end
|
629
|
+
|
466
630
|
# DescribeAutoCalloutTasks请求参数结构体
|
467
631
|
class DescribeAutoCalloutTasksRequest < TencentCloud::Common::AbstractModel
|
468
632
|
# @param SdkAppId: 呼叫中心实例Id
|
@@ -2038,6 +2202,42 @@ module TencentCloud
|
|
2038
2202
|
end
|
2039
2203
|
end
|
2040
2204
|
|
2205
|
+
# StopAutoCalloutTask请求参数结构体
|
2206
|
+
class StopAutoCalloutTaskRequest < TencentCloud::Common::AbstractModel
|
2207
|
+
# @param SdkAppId: 呼叫中心实例Id
|
2208
|
+
# @type SdkAppId: Integer
|
2209
|
+
# @param TaskId: 任务Id
|
2210
|
+
# @type TaskId: Integer
|
2211
|
+
|
2212
|
+
attr_accessor :SdkAppId, :TaskId
|
2213
|
+
|
2214
|
+
def initialize(sdkappid=nil, taskid=nil)
|
2215
|
+
@SdkAppId = sdkappid
|
2216
|
+
@TaskId = taskid
|
2217
|
+
end
|
2218
|
+
|
2219
|
+
def deserialize(params)
|
2220
|
+
@SdkAppId = params['SdkAppId']
|
2221
|
+
@TaskId = params['TaskId']
|
2222
|
+
end
|
2223
|
+
end
|
2224
|
+
|
2225
|
+
# StopAutoCalloutTask返回参数结构体
|
2226
|
+
class StopAutoCalloutTaskResponse < TencentCloud::Common::AbstractModel
|
2227
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2228
|
+
# @type RequestId: String
|
2229
|
+
|
2230
|
+
attr_accessor :RequestId
|
2231
|
+
|
2232
|
+
def initialize(requestid=nil)
|
2233
|
+
@RequestId = requestid
|
2234
|
+
end
|
2235
|
+
|
2236
|
+
def deserialize(params)
|
2237
|
+
@RequestId = params['RequestId']
|
2238
|
+
end
|
2239
|
+
end
|
2240
|
+
|
2041
2241
|
# 电话话单信息
|
2042
2242
|
class TelCdrInfo < TencentCloud::Common::AbstractModel
|
2043
2243
|
# @param Caller: 主叫号码
|
@@ -2157,10 +2357,13 @@ module TencentCloud
|
|
2157
2357
|
# @param IVRKeyPressedEx: IVR按键信息(e.g. [{"Key":"1","Label":"非常满意"}])
|
2158
2358
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
2159
2359
|
# @type IVRKeyPressedEx: Array
|
2360
|
+
# @param AsrUrl: 获取录音ASR文本信息地址
|
2361
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2362
|
+
# @type AsrUrl: String
|
2160
2363
|
|
2161
|
-
attr_accessor :Caller, :Callee, :Time, :Direction, :Duration, :RecordURL, :SeatUser, :EndStatus, :SkillGroup, :CallerLocation, :IVRDuration, :RingTimestamp, :AcceptTimestamp, :EndedTimestamp, :IVRKeyPressed, :HungUpSide, :ServeParticipants, :SkillGroupId, :EndStatusString, :StartTimestamp, :QueuedTimestamp, :PostIVRKeyPressed, :QueuedSkillGroupId, :SessionId, :ProtectedCaller, :ProtectedCallee, :Uui, :IVRKeyPressedEx
|
2364
|
+
attr_accessor :Caller, :Callee, :Time, :Direction, :Duration, :RecordURL, :SeatUser, :EndStatus, :SkillGroup, :CallerLocation, :IVRDuration, :RingTimestamp, :AcceptTimestamp, :EndedTimestamp, :IVRKeyPressed, :HungUpSide, :ServeParticipants, :SkillGroupId, :EndStatusString, :StartTimestamp, :QueuedTimestamp, :PostIVRKeyPressed, :QueuedSkillGroupId, :SessionId, :ProtectedCaller, :ProtectedCallee, :Uui, :IVRKeyPressedEx, :AsrUrl
|
2162
2365
|
|
2163
|
-
def initialize(caller=nil, callee=nil, time=nil, direction=nil, duration=nil, recordurl=nil, seatuser=nil, endstatus=nil, skillgroup=nil, callerlocation=nil, ivrduration=nil, ringtimestamp=nil, accepttimestamp=nil, endedtimestamp=nil, ivrkeypressed=nil, hungupside=nil, serveparticipants=nil, skillgroupid=nil, endstatusstring=nil, starttimestamp=nil, queuedtimestamp=nil, postivrkeypressed=nil, queuedskillgroupid=nil, sessionid=nil, protectedcaller=nil, protectedcallee=nil, uui=nil, ivrkeypressedex=nil)
|
2366
|
+
def initialize(caller=nil, callee=nil, time=nil, direction=nil, duration=nil, recordurl=nil, seatuser=nil, endstatus=nil, skillgroup=nil, callerlocation=nil, ivrduration=nil, ringtimestamp=nil, accepttimestamp=nil, endedtimestamp=nil, ivrkeypressed=nil, hungupside=nil, serveparticipants=nil, skillgroupid=nil, endstatusstring=nil, starttimestamp=nil, queuedtimestamp=nil, postivrkeypressed=nil, queuedskillgroupid=nil, sessionid=nil, protectedcaller=nil, protectedcallee=nil, uui=nil, ivrkeypressedex=nil, asrurl=nil)
|
2164
2367
|
@Caller = caller
|
2165
2368
|
@Callee = callee
|
2166
2369
|
@Time = time
|
@@ -2189,6 +2392,7 @@ module TencentCloud
|
|
2189
2392
|
@ProtectedCallee = protectedcallee
|
2190
2393
|
@Uui = uui
|
2191
2394
|
@IVRKeyPressedEx = ivrkeypressedex
|
2395
|
+
@AsrUrl = asrurl
|
2192
2396
|
end
|
2193
2397
|
|
2194
2398
|
def deserialize(params)
|
@@ -2244,6 +2448,7 @@ module TencentCloud
|
|
2244
2448
|
@IVRKeyPressedEx << ivrkeypressedelement_tmp
|
2245
2449
|
end
|
2246
2450
|
end
|
2451
|
+
@AsrUrl = params['AsrUrl']
|
2247
2452
|
end
|
2248
2453
|
end
|
2249
2454
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-ccc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.255
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|