module CTAAggregatorClient::API::Utilities
Public Instance Methods
api_key()
click to toggle source
# File lib/cta_aggregator_client/api/utilities.rb, line 26 def api_key CTAAggregatorClient.configuration.api_key end
api_secret()
click to toggle source
# File lib/cta_aggregator_client/api/utilities.rb, line 30 def api_secret CTAAggregatorClient.configuration.api_secret end
api_version()
click to toggle source
# File lib/cta_aggregator_client/api/utilities.rb, line 18 def api_version CTAAggregatorClient.configuration.api_version end
auth_url()
click to toggle source
# File lib/cta_aggregator_client/api/utilities.rb, line 22 def auth_url "#{base_url}/#{api_version}/authentications" end
base_url()
click to toggle source
# File lib/cta_aggregator_client/api/utilities.rb, line 14 def base_url CTAAggregatorClient.configuration.base_url end
default_headers()
click to toggle source
# File lib/cta_aggregator_client/api/utilities.rb, line 5 def default_headers { content_type: 'application/vnd.api+json', accept: 'application/vnd.api+json'} end
headers_with_auth_creds()
click to toggle source
# File lib/cta_aggregator_client/api/utilities.rb, line 10 def headers_with_auth_creds default_headers.merge(authorization: "#{api_key}:#{api_secret}") end