Skip to content

Commit

Permalink
DescribeTelCdr
Browse files Browse the repository at this point in the history
  • Loading branch information
fcce committed Nov 29, 2024
1 parent a2653cd commit a3f35d2
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
tencentcloud-sdk-ruby (0.3.8)
tencentcloud-sdk-ruby (0.4.8)
typhoeus (~> 1.0)

GEM
Expand All @@ -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)
Expand Down
18 changes: 18 additions & 0 deletions examples/ccc/v20200210/describe_ivr_audio_list.rb
Original file line number Diff line number Diff line change
@@ -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)
10 changes: 9 additions & 1 deletion lib/tencent_cloud/ccc/v20200210/ccc_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion lib/tencent_cloud/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module TencentCloud
VERSION = '0.4.8'
VERSION = '0.4.9'
end

0 comments on commit a3f35d2

Please sign in to comment.