Class: ChatWork::OAuthClient
- Inherits:
-
BaseClient
- Object
- BaseClient
- ChatWork::OAuthClient
- Defined in:
- lib/chatwork/oauth_client.rb
Instance Method Summary collapse
-
#initialize(client_id, client_secret, oauth_api_base) ⇒ OAuthClient
constructor
A new instance of OAuthClient.
Methods inherited from BaseClient
Constructor Details
#initialize(client_id, client_secret, oauth_api_base) ⇒ OAuthClient
Returns a new instance of OAuthClient.
5 6 7 8 |
# File 'lib/chatwork/oauth_client.rb', line 5 def initialize(client_id, client_secret, oauth_api_base) signature = Base64.encode64("#{client_id}:#{client_secret}").delete("\n") super(oauth_api_base, "", { "Authorization" => "Basic #{signature}" }) end |