Module: Auth0::Api::V2::Clients

Included in:
Auth0::Api::V2
Defined in:
lib/auth0/api/v2/clients.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) client(client_id, options = {})



19
20
21
22
# File 'lib/auth0/api/v2/clients.rb', line 19

def client(client_id, options={})
  path = "/api/v2/clients/" + client_id.to_s
  get(path, options)
end

- (Object) clients(options = {}) Also known as: get_clients



6
7
8
# File 'lib/auth0/api/v2/clients.rb', line 6

def clients(options={})
  get(path, options)
end

- (Object) create_client(name, options = {})



12
13
14
15
16
# File 'lib/auth0/api/v2/clients.rb', line 12

def create_client(name, options={})
  request_params = Hash[options.map{|(k,v)| [k.to_sym,v]}]
  request_params[:name] = name
  post(path, request_params)
end

- (Object) delete_client(client_id)



25
26
27
28
# File 'lib/auth0/api/v2/clients.rb', line 25

def delete_client(client_id)
  path = "/api/v2/clients/" + client_id.to_s
  delete(path)
end

- (Object) patch_client(client_id, options)



31
32
33
34
# File 'lib/auth0/api/v2/clients.rb', line 31

def patch_client(client_id, options)
  path = "/api/v2/clients/" + client_id.to_s
  patch(path, options)
end