tencentcloud-sdk-yinsuda 3.0.733 → 3.0.735
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20220527/client.rb +72 -0
- data/lib/v20220527/models.rb +180 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd612312ec4aae2f5b2a1e34f5f368120e1cb887
|
4
|
+
data.tar.gz: d1757a511716d49430705720655cc4416764d852
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05525218bc0132cd0a3e8a241a69ecad902ceb1df75d43a605aa83718cf09dd63342f38df793e8fdef1150c8c97c0023d58c36ae041169e668027ffa948d377b
|
7
|
+
data.tar.gz: 37d0d796996948074fde625f6c83e808cd18da9bcf1c3b8dbf256c5c94ba1a1af588c3ada254198bfb23399b31212d1b3bcedbd2294ddbe3273ec26824a63eae
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.735
|
data/lib/v20220527/client.rb
CHANGED
@@ -149,6 +149,30 @@ module TencentCloud
|
|
149
149
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
150
|
end
|
151
151
|
|
152
|
+
# 获取歌曲伴奏高潮的开始、结束时间,可用于抢唱
|
153
|
+
|
154
|
+
# @param request: Request instance for DescribeKTVMusicAccompanySegmentUrlVip.
|
155
|
+
# @type request: :class:`Tencentcloud::yinsuda::V20220527::DescribeKTVMusicAccompanySegmentUrlVipRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::yinsuda::V20220527::DescribeKTVMusicAccompanySegmentUrlVipResponse`
|
157
|
+
def DescribeKTVMusicAccompanySegmentUrlVip(request)
|
158
|
+
body = send_request('DescribeKTVMusicAccompanySegmentUrlVip', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = DescribeKTVMusicAccompanySegmentUrlVipResponse.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
|
+
|
152
176
|
# 通过标签过滤歌曲列表。
|
153
177
|
|
154
178
|
# @param request: Request instance for DescribeKTVMusicsByTag.
|
@@ -341,6 +365,30 @@ module TencentCloud
|
|
341
365
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
342
366
|
end
|
343
367
|
|
368
|
+
# 获取会员信息:获取用户是否开通会员
|
369
|
+
|
370
|
+
# @param request: Request instance for DescribeVipUserInfo.
|
371
|
+
# @type request: :class:`Tencentcloud::yinsuda::V20220527::DescribeVipUserInfoRequest`
|
372
|
+
# @rtype: :class:`Tencentcloud::yinsuda::V20220527::DescribeVipUserInfoResponse`
|
373
|
+
def DescribeVipUserInfo(request)
|
374
|
+
body = send_request('DescribeVipUserInfo', request.serialize)
|
375
|
+
response = JSON.parse(body)
|
376
|
+
if response['Response'].key?('Error') == false
|
377
|
+
model = DescribeVipUserInfoResponse.new
|
378
|
+
model.deserialize(response['Response'])
|
379
|
+
model
|
380
|
+
else
|
381
|
+
code = response['Response']['Error']['Code']
|
382
|
+
message = response['Response']['Error']['Message']
|
383
|
+
reqid = response['Response']['RequestId']
|
384
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
385
|
+
end
|
386
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
387
|
+
raise e
|
388
|
+
rescue StandardError => e
|
389
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
|
+
end
|
391
|
+
|
344
392
|
# 销毁机器人,机器人退出 RTC 房间。
|
345
393
|
|
346
394
|
# @param request: Request instance for DestroyKTVRobot.
|
@@ -389,6 +437,30 @@ module TencentCloud
|
|
389
437
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
438
|
end
|
391
439
|
|
440
|
+
# 充值会员
|
441
|
+
|
442
|
+
# @param request: Request instance for RechargeVip.
|
443
|
+
# @type request: :class:`Tencentcloud::yinsuda::V20220527::RechargeVipRequest`
|
444
|
+
# @rtype: :class:`Tencentcloud::yinsuda::V20220527::RechargeVipResponse`
|
445
|
+
def RechargeVip(request)
|
446
|
+
body = send_request('RechargeVip', request.serialize)
|
447
|
+
response = JSON.parse(body)
|
448
|
+
if response['Response'].key?('Error') == false
|
449
|
+
model = RechargeVipResponse.new
|
450
|
+
model.deserialize(response['Response'])
|
451
|
+
model
|
452
|
+
else
|
453
|
+
code = response['Response']['Error']['Code']
|
454
|
+
message = response['Response']['Error']['Message']
|
455
|
+
reqid = response['Response']['RequestId']
|
456
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
457
|
+
end
|
458
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
459
|
+
raise e
|
460
|
+
rescue StandardError => e
|
461
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
462
|
+
end
|
463
|
+
|
392
464
|
# 根据关键词搜索歌曲,返回相关歌曲列表。
|
393
465
|
|
394
466
|
# @param request: Request instance for SearchKTVMusics.
|
data/lib/v20220527/models.rb
CHANGED
@@ -407,6 +407,70 @@ module TencentCloud
|
|
407
407
|
end
|
408
408
|
end
|
409
409
|
|
410
|
+
# DescribeKTVMusicAccompanySegmentUrlVip请求参数结构体
|
411
|
+
class DescribeKTVMusicAccompanySegmentUrlVipRequest < TencentCloud::Common::AbstractModel
|
412
|
+
# @param AppName: 应用名称
|
413
|
+
# @type AppName: String
|
414
|
+
# @param UserId: 用户标识
|
415
|
+
# @type UserId: String
|
416
|
+
# @param MusicId: 歌曲 Id
|
417
|
+
# @type MusicId: String
|
418
|
+
|
419
|
+
attr_accessor :AppName, :UserId, :MusicId
|
420
|
+
|
421
|
+
def initialize(appname=nil, userid=nil, musicid=nil)
|
422
|
+
@AppName = appname
|
423
|
+
@UserId = userid
|
424
|
+
@MusicId = musicid
|
425
|
+
end
|
426
|
+
|
427
|
+
def deserialize(params)
|
428
|
+
@AppName = params['AppName']
|
429
|
+
@UserId = params['UserId']
|
430
|
+
@MusicId = params['MusicId']
|
431
|
+
end
|
432
|
+
end
|
433
|
+
|
434
|
+
# DescribeKTVMusicAccompanySegmentUrlVip返回参数结构体
|
435
|
+
class DescribeKTVMusicAccompanySegmentUrlVipResponse < TencentCloud::Common::AbstractModel
|
436
|
+
# @param Status: 0:成功获取 1:歌曲下架 2:无权限 3: 非包月会员 4:没有对应的链接
|
437
|
+
# @type Status: Integer
|
438
|
+
# @param Url: 伴奏链接
|
439
|
+
# @type Url: String
|
440
|
+
# @param ExtName: 伴奏类型,如mkv,mp3等
|
441
|
+
# @type ExtName: String
|
442
|
+
# @param SegmentBegin: 高潮开始时间
|
443
|
+
# @type SegmentBegin: Integer
|
444
|
+
# @param SegmentEnd: 高潮结束时间
|
445
|
+
# @type SegmentEnd: Integer
|
446
|
+
# @param FileSize: 链接文件大小 (单位:字节)
|
447
|
+
# @type FileSize: Integer
|
448
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
449
|
+
# @type RequestId: String
|
450
|
+
|
451
|
+
attr_accessor :Status, :Url, :ExtName, :SegmentBegin, :SegmentEnd, :FileSize, :RequestId
|
452
|
+
|
453
|
+
def initialize(status=nil, url=nil, extname=nil, segmentbegin=nil, segmentend=nil, filesize=nil, requestid=nil)
|
454
|
+
@Status = status
|
455
|
+
@Url = url
|
456
|
+
@ExtName = extname
|
457
|
+
@SegmentBegin = segmentbegin
|
458
|
+
@SegmentEnd = segmentend
|
459
|
+
@FileSize = filesize
|
460
|
+
@RequestId = requestid
|
461
|
+
end
|
462
|
+
|
463
|
+
def deserialize(params)
|
464
|
+
@Status = params['Status']
|
465
|
+
@Url = params['Url']
|
466
|
+
@ExtName = params['ExtName']
|
467
|
+
@SegmentBegin = params['SegmentBegin']
|
468
|
+
@SegmentEnd = params['SegmentEnd']
|
469
|
+
@FileSize = params['FileSize']
|
470
|
+
@RequestId = params['RequestId']
|
471
|
+
end
|
472
|
+
end
|
473
|
+
|
410
474
|
# DescribeKTVMusicsByTag请求参数结构体
|
411
475
|
class DescribeKTVMusicsByTagRequest < TencentCloud::Common::AbstractModel
|
412
476
|
# @param AppName: 应用名称。
|
@@ -920,6 +984,62 @@ module TencentCloud
|
|
920
984
|
end
|
921
985
|
end
|
922
986
|
|
987
|
+
# DescribeVipUserInfo请求参数结构体
|
988
|
+
class DescribeVipUserInfoRequest < TencentCloud::Common::AbstractModel
|
989
|
+
# @param AppName: 应用名称。
|
990
|
+
# @type AppName: String
|
991
|
+
# @param UserId: 用户标识。
|
992
|
+
# @type UserId: String
|
993
|
+
|
994
|
+
attr_accessor :AppName, :UserId
|
995
|
+
|
996
|
+
def initialize(appname=nil, userid=nil)
|
997
|
+
@AppName = appname
|
998
|
+
@UserId = userid
|
999
|
+
end
|
1000
|
+
|
1001
|
+
def deserialize(params)
|
1002
|
+
@AppName = params['AppName']
|
1003
|
+
@UserId = params['UserId']
|
1004
|
+
end
|
1005
|
+
end
|
1006
|
+
|
1007
|
+
# DescribeVipUserInfo返回参数结构体
|
1008
|
+
class DescribeVipUserInfoResponse < TencentCloud::Common::AbstractModel
|
1009
|
+
# @param IsVip: 是否是会员。(0:不是会员 1:是会员)
|
1010
|
+
# @type IsVip: Integer
|
1011
|
+
# @param AnchorId: 主播id
|
1012
|
+
# @type AnchorId: String
|
1013
|
+
# @param RoomId: 房间id
|
1014
|
+
# @type RoomId: String
|
1015
|
+
# @param EndTime: 会员过期时间
|
1016
|
+
# @type EndTime: String
|
1017
|
+
# @param Status: 会员状态。(-1:未开通过;1:已开通,未过期;2:已开通,已过期)
|
1018
|
+
# @type Status: Integer
|
1019
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1020
|
+
# @type RequestId: String
|
1021
|
+
|
1022
|
+
attr_accessor :IsVip, :AnchorId, :RoomId, :EndTime, :Status, :RequestId
|
1023
|
+
|
1024
|
+
def initialize(isvip=nil, anchorid=nil, roomid=nil, endtime=nil, status=nil, requestid=nil)
|
1025
|
+
@IsVip = isvip
|
1026
|
+
@AnchorId = anchorid
|
1027
|
+
@RoomId = roomid
|
1028
|
+
@EndTime = endtime
|
1029
|
+
@Status = status
|
1030
|
+
@RequestId = requestid
|
1031
|
+
end
|
1032
|
+
|
1033
|
+
def deserialize(params)
|
1034
|
+
@IsVip = params['IsVip']
|
1035
|
+
@AnchorId = params['AnchorId']
|
1036
|
+
@RoomId = params['RoomId']
|
1037
|
+
@EndTime = params['EndTime']
|
1038
|
+
@Status = params['Status']
|
1039
|
+
@RequestId = params['RequestId']
|
1040
|
+
end
|
1041
|
+
end
|
1042
|
+
|
923
1043
|
# DestroyKTVRobot请求参数结构体
|
924
1044
|
class DestroyKTVRobotRequest < TencentCloud::Common::AbstractModel
|
925
1045
|
# @param AppName: 应用名称。
|
@@ -1573,6 +1693,66 @@ module TencentCloud
|
|
1573
1693
|
end
|
1574
1694
|
end
|
1575
1695
|
|
1696
|
+
# RechargeVip请求参数结构体
|
1697
|
+
class RechargeVipRequest < TencentCloud::Common::AbstractModel
|
1698
|
+
# @param AppName: 应用名称。
|
1699
|
+
# @type AppName: String
|
1700
|
+
# @param UserId: 用户标识。
|
1701
|
+
# @type UserId: String
|
1702
|
+
# @param RoomId: 房间Id。
|
1703
|
+
# @type RoomId: String
|
1704
|
+
# @param VipDays: 充值会员天数。(取值有:31、93、186、372)
|
1705
|
+
# @type VipDays: Integer
|
1706
|
+
# @param AnchorId: 主播id。
|
1707
|
+
# @type AnchorId: String
|
1708
|
+
|
1709
|
+
attr_accessor :AppName, :UserId, :RoomId, :VipDays, :AnchorId
|
1710
|
+
|
1711
|
+
def initialize(appname=nil, userid=nil, roomid=nil, vipdays=nil, anchorid=nil)
|
1712
|
+
@AppName = appname
|
1713
|
+
@UserId = userid
|
1714
|
+
@RoomId = roomid
|
1715
|
+
@VipDays = vipdays
|
1716
|
+
@AnchorId = anchorid
|
1717
|
+
end
|
1718
|
+
|
1719
|
+
def deserialize(params)
|
1720
|
+
@AppName = params['AppName']
|
1721
|
+
@UserId = params['UserId']
|
1722
|
+
@RoomId = params['RoomId']
|
1723
|
+
@VipDays = params['VipDays']
|
1724
|
+
@AnchorId = params['AnchorId']
|
1725
|
+
end
|
1726
|
+
end
|
1727
|
+
|
1728
|
+
# RechargeVip返回参数结构体
|
1729
|
+
class RechargeVipResponse < TencentCloud::Common::AbstractModel
|
1730
|
+
# @param PartnerNo: 厂商订单号。
|
1731
|
+
# @type PartnerNo: String
|
1732
|
+
# @param OrderNo: TME订单号。
|
1733
|
+
# @type OrderNo: String
|
1734
|
+
# @param CreateTime: 订单创建时间。
|
1735
|
+
# @type CreateTime: String
|
1736
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1737
|
+
# @type RequestId: String
|
1738
|
+
|
1739
|
+
attr_accessor :PartnerNo, :OrderNo, :CreateTime, :RequestId
|
1740
|
+
|
1741
|
+
def initialize(partnerno=nil, orderno=nil, createtime=nil, requestid=nil)
|
1742
|
+
@PartnerNo = partnerno
|
1743
|
+
@OrderNo = orderno
|
1744
|
+
@CreateTime = createtime
|
1745
|
+
@RequestId = requestid
|
1746
|
+
end
|
1747
|
+
|
1748
|
+
def deserialize(params)
|
1749
|
+
@PartnerNo = params['PartnerNo']
|
1750
|
+
@OrderNo = params['OrderNo']
|
1751
|
+
@CreateTime = params['CreateTime']
|
1752
|
+
@RequestId = params['RequestId']
|
1753
|
+
end
|
1754
|
+
end
|
1755
|
+
|
1576
1756
|
# SearchKTVMusics请求参数结构体
|
1577
1757
|
class SearchKTVMusicsRequest < TencentCloud::Common::AbstractModel
|
1578
1758
|
# @param AppName: 应用名称。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-yinsuda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.735
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|
@@ -33,9 +33,9 @@ executables: []
|
|
33
33
|
extensions: []
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
|
+
- lib/tencentcloud-sdk-yinsuda.rb
|
36
37
|
- lib/v20220527/client.rb
|
37
38
|
- lib/v20220527/models.rb
|
38
|
-
- lib/tencentcloud-sdk-yinsuda.rb
|
39
39
|
- lib/VERSION
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
41
41
|
licenses:
|