Class: PlatformAPI::OauthToken
- Inherits:
-
Object
- Object
- PlatformAPI::OauthToken
- Defined in:
- lib/platform-api/client.rb
Overview
OAuth tokens provide access for authorized clients to act on behalf of a Heroku user to automate, customize or extend their usage of the platform. For more information please refer to the Heroku OAuth documentation
Instance Method Summary collapse
-
#create(body) ⇒ Object
Create a new OAuth token.
-
#initialize(client) ⇒ OauthToken
constructor
A new instance of OauthToken.
Constructor Details
#initialize(client) ⇒ OauthToken
Returns a new instance of OauthToken.
978 979 980 |
# File 'lib/platform-api/client.rb', line 978 def initialize(client) @client = client end |
Instance Method Details
#create(body) ⇒ Object
Create a new OAuth token.
985 986 987 |
# File 'lib/platform-api/client.rb', line 985 def create(body) @client.oauth_token.create(body) end |