Class: PlatformAPI::OauthAuthorization
- Inherits:
-
Object
- Object
- PlatformAPI::OauthAuthorization
- Defined in:
- lib/platform-api/client.rb
Overview
OAuth authorizations represent clients that a Heroku user has authorized 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 authorization.
-
#delete(oauth_authorization_id) ⇒ Object
Delete OAuth authorization.
-
#info(oauth_authorization_id) ⇒ Object
Info for an OAuth authorization.
-
#initialize(client) ⇒ OauthAuthorization
constructor
A new instance of OauthAuthorization.
-
#list ⇒ Object
List OAuth authorizations.
-
#regenerate(oauth_authorization_id) ⇒ Object
Regenerate OAuth tokens.
Constructor Details
#initialize(client) ⇒ OauthAuthorization
Returns a new instance of OauthAuthorization.
2158 2159 2160 |
# File 'lib/platform-api/client.rb', line 2158 def initialize(client) @client = client end |
Instance Method Details
#create(body = {}) ⇒ Object
Create a new OAuth authorization.
2165 2166 2167 |
# File 'lib/platform-api/client.rb', line 2165 def create(body = {}) @client..create(body) end |
#delete(oauth_authorization_id) ⇒ Object
Delete OAuth authorization.
2172 2173 2174 |
# File 'lib/platform-api/client.rb', line 2172 def delete() @client..delete() end |
#info(oauth_authorization_id) ⇒ Object
Info for an OAuth authorization.
2179 2180 2181 |
# File 'lib/platform-api/client.rb', line 2179 def info() @client..info() end |
#list ⇒ Object
List OAuth authorizations.
2184 2185 2186 |
# File 'lib/platform-api/client.rb', line 2184 def list() @client..list() end |
#regenerate(oauth_authorization_id) ⇒ Object
Regenerate OAuth tokens. This endpoint is only available to direct authorizations or privileged OAuth clients.
2191 2192 2193 |
# File 'lib/platform-api/client.rb', line 2191 def regenerate() @client..regenerate() end |