Sha256: 7adcfbebc963e7e138ceffb53695548f50a8b12d62de5af261bdf56adadbd0c5
Contents?: true
Size: 1.48 KB
Versions: 8
Compression:
Stored size: 1.48 KB
Contents
module Auth0 module Api module V1 # {https://auth0.com/docs/api#applications} module Clients # {https://auth0.com/docs/api#!#get--api-clients} def clients path = "/api/clients" get(path) end alias :get_clients :clients # {https://auth0.com/docs/api#!#post--api-clients} def create_client(name, callbacks="") path = "/api/clients" request_params = { name: name, callbacks: callbacks } post(path, request_params) end # @deprecated use {#patch_client} # {https://auth0.com/docs/api#!#put--api-clients--client-id-} 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 # {https://auth0.com/docs/api#!#patch--api-clients--client-id-} 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 end end end end
Version data entries
8 entries across 8 versions & 2 rubygems