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
-
#token(options = {}) ⇒ Object
(also: #login)
Authorize to the Integra365 portal and return access_token.
-
#token_refresh(token) ⇒ Object
Return an access token from authorization token currrent token.
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( = {}) api_auth("Token", ) 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 |