tencentcloud-sdk-ame 1.0.251 → 1.0.252
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/v20190916/client.rb +24 -0
- data/lib/v20190916/models.rb +101 -0
- 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: 54c6f28f4444160ffacd18ab95ab41a62ca5de69
|
4
|
+
data.tar.gz: 94d0de911da1c2a9971b88ddac62a71390a2ce77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5497b466dcc1b1b115ee88f95a4bb380baff9a671f6c0a13d596e95599ccd1b6017d4eb3e56b9b652fb14d816888848e0054a7e8abc4d446294d0cc5af9b2b5b
|
7
|
+
data.tar.gz: 32d6c1816c6d8b9402b76113bb6d2a704b858625ce8921f5a3088cb6e4c8e47117d9289e24a7981e4c09c11f217deef1dcf3b4b2a7f8a5a03cc0646c8f46cb1d
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.252
|
data/lib/v20190916/client.rb
CHANGED
@@ -343,6 +343,30 @@ module TencentCloud
|
|
343
343
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
344
344
|
end
|
345
345
|
|
346
|
+
# 获取直播互动曲库歌曲的周榜和月榜
|
347
|
+
|
348
|
+
# @param request: Request instance for DescribeKTVTopList.
|
349
|
+
# @type request: :class:`Tencentcloud::ame::V20190916::DescribeKTVTopListRequest`
|
350
|
+
# @rtype: :class:`Tencentcloud::ame::V20190916::DescribeKTVTopListResponse`
|
351
|
+
def DescribeKTVTopList(request)
|
352
|
+
body = send_request('DescribeKTVTopList', request.serialize)
|
353
|
+
response = JSON.parse(body)
|
354
|
+
if response['Response'].key?('Error') == false
|
355
|
+
model = DescribeKTVTopListResponse.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
|
+
|
346
370
|
# 根据接口的模式及歌曲ID来取得歌词信息或者波形图信息。
|
347
371
|
|
348
372
|
# @param request: Request instance for DescribeLyric.
|
data/lib/v20190916/models.rb
CHANGED
@@ -922,6 +922,60 @@ module TencentCloud
|
|
922
922
|
end
|
923
923
|
end
|
924
924
|
|
925
|
+
# DescribeKTVTopList请求参数结构体
|
926
|
+
class DescribeKTVTopListRequest < TencentCloud::Common::AbstractModel
|
927
|
+
# @param Type: 榜单类型。默认Hot
|
928
|
+
# <li> Hot, 热歌榜。</li>
|
929
|
+
# @type Type: String
|
930
|
+
# @param Period: 榜单周期 默认为Week
|
931
|
+
# <li> Week, 周榜。</li>
|
932
|
+
# <li> Month, 月榜。</li>
|
933
|
+
# @type Period: String
|
934
|
+
|
935
|
+
attr_accessor :Type, :Period
|
936
|
+
|
937
|
+
def initialize(type=nil, period=nil)
|
938
|
+
@Type = type
|
939
|
+
@Period = period
|
940
|
+
end
|
941
|
+
|
942
|
+
def deserialize(params)
|
943
|
+
@Type = params['Type']
|
944
|
+
@Period = params['Period']
|
945
|
+
end
|
946
|
+
end
|
947
|
+
|
948
|
+
# DescribeKTVTopList返回参数结构体
|
949
|
+
class DescribeKTVTopListResponse < TencentCloud::Common::AbstractModel
|
950
|
+
# @param KTVMusicTopInfoSet: 歌曲基础信息列表
|
951
|
+
# @type KTVMusicTopInfoSet: Array
|
952
|
+
# @param TotalCount: 返回总条数
|
953
|
+
# @type TotalCount: Integer
|
954
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
955
|
+
# @type RequestId: String
|
956
|
+
|
957
|
+
attr_accessor :KTVMusicTopInfoSet, :TotalCount, :RequestId
|
958
|
+
|
959
|
+
def initialize(ktvmusictopinfoset=nil, totalcount=nil, requestid=nil)
|
960
|
+
@KTVMusicTopInfoSet = ktvmusictopinfoset
|
961
|
+
@TotalCount = totalcount
|
962
|
+
@RequestId = requestid
|
963
|
+
end
|
964
|
+
|
965
|
+
def deserialize(params)
|
966
|
+
unless params['KTVMusicTopInfoSet'].nil?
|
967
|
+
@KTVMusicTopInfoSet = []
|
968
|
+
params['KTVMusicTopInfoSet'].each do |i|
|
969
|
+
ktvmusictopinfo_tmp = KTVMusicTopInfo.new
|
970
|
+
ktvmusictopinfo_tmp.deserialize(i)
|
971
|
+
@KTVMusicTopInfoSet << ktvmusictopinfo_tmp
|
972
|
+
end
|
973
|
+
end
|
974
|
+
@TotalCount = params['TotalCount']
|
975
|
+
@RequestId = params['RequestId']
|
976
|
+
end
|
977
|
+
end
|
978
|
+
|
925
979
|
# DescribeLyric请求参数结构体
|
926
980
|
class DescribeLyricRequest < TencentCloud::Common::AbstractModel
|
927
981
|
# @param ItemId: 歌曲ID
|
@@ -1488,6 +1542,53 @@ module TencentCloud
|
|
1488
1542
|
end
|
1489
1543
|
end
|
1490
1544
|
|
1545
|
+
# 排行榜结构
|
1546
|
+
class KTVMusicTopInfo < TencentCloud::Common::AbstractModel
|
1547
|
+
# @param MusicId: 歌曲Id
|
1548
|
+
# @type MusicId: String
|
1549
|
+
# @param Name: 歌曲名称
|
1550
|
+
# @type Name: String
|
1551
|
+
# @param SingerInfoSet: 歌手名称列表
|
1552
|
+
# @type SingerInfoSet: Array
|
1553
|
+
# @param LyricistSet: 歌词名称列表
|
1554
|
+
# @type LyricistSet: Array
|
1555
|
+
# @param ComposerSet: 作曲列表
|
1556
|
+
# @type ComposerSet: Array
|
1557
|
+
# @param TagSet: 标签列表
|
1558
|
+
# @type TagSet: Array
|
1559
|
+
# @param Duration: 播放时长
|
1560
|
+
# @type Duration: Integer
|
1561
|
+
|
1562
|
+
attr_accessor :MusicId, :Name, :SingerInfoSet, :LyricistSet, :ComposerSet, :TagSet, :Duration
|
1563
|
+
|
1564
|
+
def initialize(musicid=nil, name=nil, singerinfoset=nil, lyricistset=nil, composerset=nil, tagset=nil, duration=nil)
|
1565
|
+
@MusicId = musicid
|
1566
|
+
@Name = name
|
1567
|
+
@SingerInfoSet = singerinfoset
|
1568
|
+
@LyricistSet = lyricistset
|
1569
|
+
@ComposerSet = composerset
|
1570
|
+
@TagSet = tagset
|
1571
|
+
@Duration = duration
|
1572
|
+
end
|
1573
|
+
|
1574
|
+
def deserialize(params)
|
1575
|
+
@MusicId = params['MusicId']
|
1576
|
+
@Name = params['Name']
|
1577
|
+
unless params['SingerInfoSet'].nil?
|
1578
|
+
@SingerInfoSet = []
|
1579
|
+
params['SingerInfoSet'].each do |i|
|
1580
|
+
ktvsingerbaseinfo_tmp = KTVSingerBaseInfo.new
|
1581
|
+
ktvsingerbaseinfo_tmp.deserialize(i)
|
1582
|
+
@SingerInfoSet << ktvsingerbaseinfo_tmp
|
1583
|
+
end
|
1584
|
+
end
|
1585
|
+
@LyricistSet = params['LyricistSet']
|
1586
|
+
@ComposerSet = params['ComposerSet']
|
1587
|
+
@TagSet = params['TagSet']
|
1588
|
+
@Duration = params['Duration']
|
1589
|
+
end
|
1590
|
+
end
|
1591
|
+
|
1491
1592
|
# 推荐歌单基础信息
|
1492
1593
|
class KTVPlaylistBaseInfo < TencentCloud::Common::AbstractModel
|
1493
1594
|
# @param PlaylistId: 歌单Id
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-ame
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.252
|
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-01-
|
11
|
+
date: 2022-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|