Module: WeConnect::Connection
- Included in:
- API
- Defined in:
- lib/weconnect/connection.rb
Overview
Create connection including authorization parameters with default Accept format and User-Agent By default
-
Bearer authorization is access_token is not nil override with @setup_authorization
-
Headers setup for client-id and client-secret when client_id and client_secret are not nil @setup_headers
Defined Under Namespace
Classes: WeConnectMiddleware
Instance Method Summary collapse
Instance Method Details
#reauth_connection(token) ⇒ Object
28 29 30 31 |
# File 'lib/weconnect/connection.rb', line 28 def reauth_connection(token) self.access_token = token (@connection) end |