6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/qcloud_vod/api/v1/t_task.rb', line 6
def describe_tasks
r_method = "GET"
r_host = "vod.tencentcloudapi.com/"
options = { Action: 'DescribeTasks' }
options.merge!({ Status: 'FINISH' })
options.merge!({ SignatureMethod: 'HmacSHA1'})
options.merge!({ Region: ''})
sign = authorization.get_value(r_method,r_host,options,Time.now.to_i+86400)
options.merge!({ Signature: sign})
res = http.get("https://vod.tencentcloudapi.com/?#{options.to_query}")
p res.methods
p res.response
p res.body
ActiveSupport::HashWithIndifferentAccess.new(JSON.parse(res.body))
end
|