module Auth0::Api::V1::Clients

{auth0.com/docs/api#applications}

Public Instance Methods

clients() click to toggle source

{auth0.com/docs/api#!#get–api-clients}

# File lib/auth0/api/v1/clients.rb, line 7
def clients
  path = "/api/clients"
  get(path)
end
Also aliased as: get_clients
create_client(name, callbacks="") click to toggle source

{auth0.com/docs/api#!#post–api-clients}

# File lib/auth0/api/v1/clients.rb, line 15
def create_client(name, callbacks="")
  path = "/api/clients"
  request_params = {
                   name: name,
                   callbacks: callbacks
                  }
  post(path, request_params)
end
get_clients()
Alias for: clients
patch_client(name, callbacks="", client_id=@client_id) click to toggle source

{auth0.com/docs/api#!#patch–api-clients–client-id-}

# File lib/auth0/api/v1/clients.rb, line 37
def patch_client(name, callbacks="", client_id=@client_id)
  path = "/api/clients/#{client_id}"
  request_params = {
                    name: name,
                    callbacks: callbacks
                 }
  patch(path, request_params)
end
update_client(name, callbacks="", client_id=@client_id) click to toggle source

@deprecated use {#patch_client} {auth0.com/docs/api#!#put–api-clients–client-id-}

# File lib/auth0/api/v1/clients.rb, line 26
def update_client(name, callbacks="", client_id=@client_id)
  warn "This endpoint has been deprecated in favor of PUT."
  path = "/api/clients/#{client_id}"
  request_params = {
                    name: name,
                    callbacks: callbacks
                 }
  put(path, request_params)
end