diff --git a/Gemfile.lock b/Gemfile.lock index d8701e5..cd264fa 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - tencentcloud-sdk-ruby (0.3.8) + tencentcloud-sdk-ruby (0.4.8) typhoeus (~> 1.0) GEM @@ -11,7 +11,7 @@ GEM diff-lcs (1.3) ethon (0.16.0) ffi (>= 1.15.0) - ffi (1.17.0) + ffi (1.17.0-arm64-darwin) method_source (1.0.0) pry (0.13.1) coderay (~> 1.1) diff --git a/examples/ccc/v20200210/describe_ivr_audio_list.rb b/examples/ccc/v20200210/describe_ivr_audio_list.rb new file mode 100644 index 0000000..8aa0835 --- /dev/null +++ b/examples/ccc/v20200210/describe_ivr_audio_list.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +require 'bundler/setup' +require 'tencent_cloud' +require 'tencent_cloud/ccc/v20200210/ccc_client' + +secret_id = ENV['TENCENT_SECRET_ID'] +secret_key = ENV['TENCENT_SECRET_KEY'] +payload = { + "StartTimeStamp" => Time.now.to_i - 3600 * 24, + "EndTimeStamp" => Time.now.to_i, + "PageSize" => 10, + "PageNumber" => 0 +} + +credential = TencentCloud::Common::Credential.new(secret_id, secret_key) +resp = TencentCloud::CccClient.new(credential).describe_tel_cdr(payload) +pp JSON.parse(resp.body) diff --git a/lib/tencent_cloud/ccc/v20200210/ccc_client.rb b/lib/tencent_cloud/ccc/v20200210/ccc_client.rb index 2523595..a7f03fb 100644 --- a/lib/tencent_cloud/ccc/v20200210/ccc_client.rb +++ b/lib/tencent_cloud/ccc/v20200210/ccc_client.rb @@ -10,7 +10,15 @@ class CccClient < Common::BaseClient # 创建AI会话 # https://cloud.tencent.com/document/api/679/111211 - create_ai_call: 'CreateAICall' + create_ai_call: 'CreateAICall', + + # 获取音频文件 + # https://cloud.tencent.com/document/api/679/104895 + describe_ivr_audio_list: 'DescribeIvrAudioList', + + # 获取电话服务记录与录音 + # https://cloud.tencent.com/document/api/679/47714 + describe_tel_cdr: 'DescribeTelCdr' }.freeze end end diff --git a/lib/tencent_cloud/version.rb b/lib/tencent_cloud/version.rb index bdd8057..2969917 100644 --- a/lib/tencent_cloud/version.rb +++ b/lib/tencent_cloud/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module TencentCloud - VERSION = '0.4.8' + VERSION = '0.4.9' end