Class OAuth2::Client
In: lib/oauth2/client.rb
Parent: Object

Methods

Attributes

connection  [RW] 
id  [RW] 
json  [W] 
options  [RW] 
secret  [RW] 
site  [RW] 

Public Class methods

Instantiate a new OAuth 2.0 client using the client ID and client secret registered to your application.

Options:

:site :Specify a base URL for your OAuth 2.0 client.
:authorize_path :Specify the path to the authorization endpoint.
:authorize_url :Specify a full URL of the authorization endpoint.
:access_token_path :Specify the path to the access token endpoint.
:access_token_url :Specify the full URL of the access token endpoint.
:parse_json :If true, application/json responses will be automatically parsed.

Public Instance methods

Makes a request relative to the specified site root.

[Validate]