6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'lib/api_banking/json/json_client.rb', line 6
def self.do_remote_call(dataHash)
options = {}
options[:method] = :post
add_signature(dataHash)
options[:body] = JSON.generate(dataHash)
options[:headers] = {'Content-Type' => "application/json; charset=utf-8"}
options[:proxy] = self.configuration.proxy
options[:timeout] = self.configuration.timeout
set_options_for_environment(options)
set_params_for_environment(options)
request = Typhoeus::Request.new(self.configuration.environment.url + uri, options)
response = request.run
parse_response(response)
end
|