Class: EasyLlama::Client::OAuth
Overview
This class provides methods for interacting with the Easy Llama API for OAuth.
Constant Summary
Constants inherited from Api
Api::DEFAULT_API_VERSION, Api::DEFAULT_URI_BASE
Instance Method Summary collapse
-
#initialize(client_id, client_secret) ⇒ Object
constructor
Initializes the OAuth client.
Methods inherited from Api
#parse_response!, #send_request
Constructor Details
#initialize(client_id, client_secret) ⇒ Object
Initializes the OAuth client.
12 13 14 15 16 17 18 |
# File 'lib/easyllama/oauth.rb', line 12 def initialize(client_id, client_secret) access_token = get_access_token(client_id, client_secret) EasyLlama::Client.api_token = access_token super access_token end |