Module: Auth0::Api::V2::Clients
- Included in:
- Auth0::Api::V2
- Defined in:
- lib/auth0/api/v2/clients.rb
Instance Method Summary (collapse)
- - (Object) client(client_id, options = {})
- - (Object) clients(options = {}) (also: #get_clients)
- - (Object) create_client(name, options = {})
- - (Object) delete_client(client_id)
- - (Object) patch_client(client_id, options)
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, ={}) path = "/api/v2/clients/" + client_id.to_s get(path, ) end |
- (Object) clients(options = {}) Also known as: get_clients
6 7 8 |
# File 'lib/auth0/api/v2/clients.rb', line 6 def clients(={}) get(path, ) end |
- (Object) create_client(name, options = {})
12 13 14 15 16 |
# File 'lib/auth0/api/v2/clients.rb', line 12 def create_client(name, ={}) request_params = Hash[.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, ) path = "/api/v2/clients/" + client_id.to_s patch(path, ) end |