lib/v20190916/client.rb in tencentcloud-sdk-ame-1.0.273 vs lib/v20190916/client.rb in tencentcloud-sdk-ame-1.0.274

- old
+ new

@@ -219,10 +219,34 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 获取直播互动曲库标签分组信息和标签信息 + + # @param request: Request instance for DescribeKTVMusicTags. + # @type request: :class:`Tencentcloud::ame::V20190916::DescribeKTVMusicTagsRequest` + # @rtype: :class:`Tencentcloud::ame::V20190916::DescribeKTVMusicTagsResponse` + def DescribeKTVMusicTags(request) + body = send_request('DescribeKTVMusicTags', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DescribeKTVMusicTagsResponse.new + model.deserialize(response['Response']) + model + else + code = response['Response']['Error']['Code'] + message = response['Response']['Error']['Message'] + reqid = response['Response']['RequestId'] + raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) + end + rescue TencentCloud::Common::TencentCloudSDKException => e + raise e + rescue StandardError => e + raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) + end + # 根据歌单 Id 获取歌单详情,包括歌单的基础信息以及歌曲列表。 # @param request: Request instance for DescribeKTVPlaylistDetail. # @type request: :class:`Tencentcloud::ame::V20190916::DescribeKTVPlaylistDetailRequest` # @rtype: :class:`Tencentcloud::ame::V20190916::DescribeKTVPlaylistDetailResponse` @@ -351,9 +375,33 @@ def DescribeKTVSingers(request) body = send_request('DescribeKTVSingers', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeKTVSingersResponse.new + model.deserialize(response['Response']) + model + else + code = response['Response']['Error']['Code'] + message = response['Response']['Error']['Message'] + reqid = response['Response']['RequestId'] + raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) + end + rescue TencentCloud::Common::TencentCloudSDKException => e + raise e + rescue StandardError => e + raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) + end + + # 获取直播互动曲库联想词 + + # @param request: Request instance for DescribeKTVSuggestions. + # @type request: :class:`Tencentcloud::ame::V20190916::DescribeKTVSuggestionsRequest` + # @rtype: :class:`Tencentcloud::ame::V20190916::DescribeKTVSuggestionsResponse` + def DescribeKTVSuggestions(request) + body = send_request('DescribeKTVSuggestions', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DescribeKTVSuggestionsResponse.new model.deserialize(response['Response']) model else code = response['Response']['Error']['Code'] message = response['Response']['Error']['Message'] \ No newline at end of file