class ActionNetworkRest::EntryPoint

Public Instance Methods

authenticated_successfully?() click to toggle source
# File lib/action_network_rest/entry_point.rb, line 14
def authenticated_successfully?
  response_body = get

  # If we successfully authenticated, the entrypoint response will include a reference to tags.
  # If not (API key missing or wrong), the response will not include anything about tags,
  # but will otherwise be successful.
  response_body.dig('_links', 'osdi:tags').present?
end
base_path() click to toggle source
# File lib/action_network_rest/entry_point.rb, line 5
def base_path
  ''
end
get() click to toggle source
# File lib/action_network_rest/entry_point.rb, line 9
def get
  response = client.get_request base_path
  response.body
end