Module: Integra365::Authentication

Included in:
API
Defined in:
lib/integra365/authentication.rb

Overview

Deals with authentication flow and stores it within global configuration

Instance Method Summary collapse

Instance Method Details

#token(options = {}) ⇒ Object Also known as: login

Authorize to the Integra365 portal and return access_token



6
7
8
# File 'lib/integra365/authentication.rb', line 6

def token(options = {})
  api_auth("Token", options)
end

#token_refresh(token) ⇒ Object

Return an access token from authorization token currrent token



13
14
15
# File 'lib/integra365/authentication.rb', line 13

def token_refresh(token)
  api_refresh("Token/Refresh", token)
end