class TencentCloud::Common::AbstractClient
def build_req_with_v1_signature(action, params, req)
def build_req_with_v1_signature(action, params, req) params = AbstractModel.format_params(nil, params) params['Action'] = action params['RequestClient'] = "SDK_RUBY_#{@sdk_version}" params['Nonce'] = Random.rand(1..1 << 32) params['Timestamp'] = Time.now.to_i params['Version'] = @api_version params['Region'] = @region params['Token'] = @credential.token if @credential.token params['SecretId'] = @credential.secret_id params['SignatureMethod'] = @profile.sign_method params['Language'] = @profile.language params['Signature'] = Sign.sign_v1(@profile.http_profile.req_method, endpoint, req.uri, params, @credential.secret_key, @profile.sign_method) req.data = URI.encode_www_form(params) req.header['Content-Type'] = FORM_URLENCODED_CONTENT end