Module: Auth0::Api::V1::Clients
- Included in:
- Auth0::Api::V1
- Defined in:
- lib/auth0/api/v1/clients.rb
Overview
Instance Method Summary collapse
-
#clients ⇒ Object
(also: #get_clients)
deprecated
Deprecated.
-
4.14.0, please use Auth0::Api::V2::Clients
-
-
#create_client(name, callbacks = '') ⇒ Object
deprecated
Deprecated.
-
4.14.0, please use Auth0::Api::V2::Clients
-
-
#patch_client(name, callbacks = '', client_id = @client_id) ⇒ Object
deprecated
Deprecated.
-
4.14.0, please use Auth0::Api::V2::Clients
-
-
#update_client(name, callbacks = '', client_id = @client_id) ⇒ Object
deprecated
Deprecated.
-
4.14.0, please use Auth0::Api::V2::Clients
-
Instance Method Details
#clients ⇒ Object Also known as: get_clients
Deprecated.
-
4.14.0, please use Auth0::Api::V2::Clients
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
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
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
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 |