Module: Teemill::LegacyAuthenticatedRequestHandler

Includes:
AuthenticatedRequestHandler
Included in:
CustomProduct
Defined in:
lib/resources/request/legacy_authenticated_request_handler.rb

Instance Method Summary collapse

Methods included from AuthenticatedRequestHandler

#send_get_request, #send_post_request, #send_request

Instance Method Details

#authenticated_request_headersObject


4
5
6
# File 'lib/resources/request/legacy_authenticated_request_handler.rb', line 4

def authenticated_request_headers
  { Authorization: "Bearer #{Teemill.legacy_api_key}" }
end

#base_urlObject


8
9
10
# File 'lib/resources/request/legacy_authenticated_request_handler.rb', line 8

def base_url
  "#{Teemill.legacy_api_base}/omnis/v3"
end