Module: Auth0::Api::V1::Clients

Included in:
Auth0::Api::V1
Defined in:
lib/auth0/api/v1/clients.rb

Overview

Instance Method Summary collapse

Instance Method Details

#clientsObject Also known as: get_clients

Deprecated.
  • 4.14.0, please use Auth0::Api::V2::Clients

https://auth0.com/docs/api#!#get--api-clients

See Also:

  • https://auth0.com/docs/migrations/guides/management-api-v1-v2

9
10
11
12
13
# File 'lib/auth0/api/v1/clients.rb', line 9

def clients
  warn "[DEPRECATION] Api::V1 is deprecated please use Api::V2"
  path = '/api/clients'
  get(path)
end

#create_client(name, callbacks = '') ⇒ Object

Deprecated.
  • 4.14.0, please use Auth0::Api::V2::Clients

https://auth0.com/docs/api#!#post--api-clients

See Also:

  • https://auth0.com/docs/migrations/guides/management-api-v1-v2

20
21
22
23
24
25
26
27
28
# File 'lib/auth0/api/v1/clients.rb', line 20

def create_client(name, callbacks = '')
  warn "[DEPRECATION] Api::V1 is deprecated please use Api::V2"
  path = '/api/clients'
  request_params = {
    name: name,
    callbacks: callbacks
  }
  post(path, request_params)
end

#patch_client(name, callbacks = '', client_id = @client_id) ⇒ Object

Deprecated.
  • 4.14.0, please use Auth0::Api::V2::Clients

-

See Also:

  • https://auth0.com/docs/migrations/guides/management-api-v1-v2

46
47
48
49
50
51
52
53
54
# File 'lib/auth0/api/v1/clients.rb', line 46

def patch_client(name, callbacks = '', client_id = @client_id)
  warn "[DEPRECATION] Api::V1 is deprecated please use Api::V2"
  path = "/api/clients/#{client_id}"
  request_params = {
    name: name,
    callbacks: callbacks
  }
  patch(path, request_params)
end

#update_client(name, callbacks = '', client_id = @client_id) ⇒ Object

Deprecated.
  • 4.14.0, please use Auth0::Api::V2::Clients

-

See Also:

  • https://auth0.com/docs/migrations/guides/management-api-v1-v2

33
34
35
36
37
38
39
40
41
# File 'lib/auth0/api/v1/clients.rb', line 33

def update_client(name, callbacks = '', client_id = @client_id)
  warn "[DEPRECATION] Api::V1 is deprecated please use Api::V2"
  path = "/api/clients/#{client_id}"
  request_params = {
    name: name,
    callbacks: callbacks
  }
  put(path, request_params)
end