Class: PlatformAPI::OauthClient

Inherits:
Object
  • Object
show all
Defined in:
lib/platform-api/client.rb

Overview

OAuth clients are applications that Heroku users can authorize to automate, customize or extend their usage of the platform. For more information please refer to the Heroku OAuth documentation.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ OauthClient



930
931
932
# File 'lib/platform-api/client.rb', line 930

def initialize(client)
  @client = client
end

Instance Method Details

#create(body) ⇒ Object

Create a new OAuth client.



937
938
939
# File 'lib/platform-api/client.rb', line 937

def create(body)
  @client.oauth_client.create(body)
end

#delete(oauth_client_id) ⇒ Object

Delete OAuth client.



944
945
946
# File 'lib/platform-api/client.rb', line 944

def delete(oauth_client_id)
  @client.oauth_client.delete(oauth_client_id)
end

#info(oauth_client_id) ⇒ Object

Info for an OAuth client



951
952
953
# File 'lib/platform-api/client.rb', line 951

def info(oauth_client_id)
  @client.oauth_client.info(oauth_client_id)
end

#listObject

List OAuth clients



956
957
958
# File 'lib/platform-api/client.rb', line 956

def list()
  @client.oauth_client.list()
end

#update(oauth_client_id, body) ⇒ Object

Update OAuth client



964
965
966
# File 'lib/platform-api/client.rb', line 964

def update(oauth_client_id, body)
  @client.oauth_client.update(oauth_client_id, body)
end