module Auth0::Api::V2::Clients
Public Instance Methods
client(client_id, options={})
click to toggle source
auth0.com/docs/apiv2#!/clients/get_clients_by_id
# File lib/auth0/api/v2/clients.rb, line 20 def client(client_id, options={}) path = "/api/v2/clients/" + client_id.to_s get(path, options) end
clients(options={})
click to toggle source
auth0.com/docs/apiv2#!/clients/get_clients
# File lib/auth0/api/v2/clients.rb, line 7 def clients(options={}) get(path, options) end
Also aliased as: get_clients
create_client(name, options={})
click to toggle source
auth0.com/docs/apiv2#!/clients/post_clients
# File lib/auth0/api/v2/clients.rb, line 13 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
delete_client(client_id)
click to toggle source
auth0.com/docs/apiv2#!/clients/delete_clients_by_id
# File lib/auth0/api/v2/clients.rb, line 26 def delete_client(client_id) path = "/api/v2/clients/" + client_id.to_s delete(path) end
patch_client(client_id, options)
click to toggle source
auth0.com/docs/apiv2#!/clients/patch_clients_by_id
# File lib/auth0/api/v2/clients.rb, line 32 def patch_client(client_id, options) path = "/api/v2/clients/" + client_id.to_s patch(path, options) end