Class: Lyft::Client::Api::Oauth
- Defined in:
- lib/lyft/client/api/oauth.rb,
lib/lyft/client/api/oauth/scope.rb,
lib/lyft/client/api/oauth/grant_type.rb
Overview
Client for making authentication related requests to the lyft api
Defined Under Namespace
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#retrieve_access_token(authorization_code: nil, scope: Scope::PUBLIC) ⇒ HTTParty::Response
Retrieves access token from the server.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Lyft::Client::Api::Base
Instance Method Details
#retrieve_access_token(authorization_code: nil, scope: Scope::PUBLIC) ⇒ HTTParty::Response
Retrieves access token from the server.
24 25 26 27 28 |
# File 'lib/lyft/client/api/oauth.rb', line 24 def retrieve_access_token(authorization_code: nil, scope: Scope::PUBLIC) body = build_auth_body(, scope) resp = connection.post '/oauth/token', body handle_response(resp) end |