Class: ApiGW::OAuth
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from ApiBase
#initialize, require_authorization?
Constructor Details
This class inherits a constructor from ApiGW::ApiBase
Class Method Details
.api_name ⇒ Object
6 7 8 |
# File 'lib/apigw/oauth.rb', line 6 def api_name 'oauth' end |
Instance Method Details
#access_token ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/apigw/oauth.rb', line 11 def access_token data = { clientId: @consumer_key, clientSecret: @secret_key, grantType: 'client_credentials' } post_request 'accesstokens', data: data end |