Module: Auth0::Api::V2::Clients
- Included in:
- Auth0::Api::V2
- Defined in:
- lib/auth0/api/v2/clients.rb
Overview
Instance Method Summary collapse
- #client(client_id, options = {}) ⇒ Object
- #clients(options = {}) ⇒ Object (also: #get_clients)
- #create_client(name, options = {}) ⇒ Object
- #delete_client(client_id) ⇒ Object
- #patch_client(client_id, options) ⇒ Object
Instance Method Details
#client(client_id, options = {}) ⇒ Object
22 23 24 25 |
# File 'lib/auth0/api/v2/clients.rb', line 22 def client(client_id, ={}) path = "/api/v2/clients/" + client_id.to_s get(path, ) end |
#clients(options = {}) ⇒ Object Also known as: get_clients
7 8 9 10 |
# File 'lib/auth0/api/v2/clients.rb', line 7 def clients(={}) path = "/api/v2/clients" get(path, ) end |
#create_client(name, options = {}) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/auth0/api/v2/clients.rb', line 14 def create_client(name, ={}) request_params = Hash[.map{|(k,v)| [k.to_sym,v]}] request_params[:name] = name path = "/api/v2/clients" post(path, request_params) end |
#delete_client(client_id) ⇒ Object
28 29 30 31 |
# File 'lib/auth0/api/v2/clients.rb', line 28 def delete_client(client_id) path = "/api/v2/clients/#{client_id}" delete(path) end |
#patch_client(client_id, options) ⇒ Object
34 35 36 37 |
# File 'lib/auth0/api/v2/clients.rb', line 34 def patch_client(client_id, ) path = "/api/v2/clients/#{client_id}" patch(path, ) end |