Auth0-PHP

ClientsInterface
in

Interface ClientsInterface.

Table of Contents

create()  : ResponseInterface
Create a new Client.
delete()  : ResponseInterface
Delete a Client.
get()  : ResponseInterface
Get a Client.
getAll()  : ResponseInterface
Get all Clients.
update()  : ResponseInterface
Update a Client.

Methods

create()

Create a new Client.

public create(string $name[, array<string|int, mixed>|null $body = null ][, RequestOptions|null $options = null ]) : ResponseInterface

Required scope: create:clients.

Parameters
$name : string

name of the new client

$body : array<string|int, mixed>|null = null

Optional. Additional body content to pass with the API request. See @see for supported options.

$options : RequestOptions|null = null

Optional. Additional request options to use, such as a field filtering or pagination. (Not all endpoints support these. See @see for supported options.)

Tags
throws
ArgumentException

when an invalid name is provided

throws
NetworkException

when the API request fails due to a network error

see
https://auth0.com/docs/api/management/v2#!/Clients/post_clients
Return values
ResponseInterface

delete()

Delete a Client.

public delete(string $id[, RequestOptions|null $options = null ]) : ResponseInterface

Required scope: `delete:clients".

Parameters
$id : string

client (by it's ID) to delete

$options : RequestOptions|null = null

Optional. Additional request options to use, such as a field filtering or pagination. (Not all endpoints support these. See @see for supported options.)

Tags
throws
ArgumentException

when an invalid id is provided

throws
NetworkException

when the API request fails due to a network error

see
https://auth0.com/docs/api/management/v2#!/Clients/delete_clients_by_id
Return values
ResponseInterface

get()

Get a Client.

public get(string $id[, RequestOptions|null $options = null ]) : ResponseInterface

Required scopes:

  • read:clients for any call to this endpoint.
  • read:client_keys to retrieve "client_secret" and "encryption_key" attributes.
Parameters
$id : string

client (by it's ID) to query

$options : RequestOptions|null = null

Optional. Additional request options to use, such as a field filtering or pagination. (Not all endpoints support these. See @see for supported options.)

Tags
throws
ArgumentException

when an invalid id is provided

throws
NetworkException

when the API request fails due to a network error

see
https://auth0.com/docs/api/management/v2#!/Clients/get_clients_by_id
Return values
ResponseInterface

getAll()

Get all Clients.

public getAll([array<string|int, int|string|null>|null $parameters = null ][, RequestOptions|null $options = null ]) : ResponseInterface

Required scopes:

  • read:clients for any call to this endpoint.
  • read:client_keys to retrieve "client_secret" and "encryption_key" attributes.
Parameters
$parameters : array<string|int, int|string|null>|null = null

Optional. Additional query parameters to pass with the API request. See @see for supported options.

$options : RequestOptions|null = null

Optional. Additional request options to use, such as a field filtering or pagination. (Not all endpoints support these. See @see for supported options.)

Tags
throws
NetworkException

when the API request fails due to a network error

see
https://auth0.com/docs/api/management/v2#!/Clients/get_clients
Return values
ResponseInterface

update()

Update a Client.

public update(string $id[, array<string|int, mixed>|null $body = null ][, RequestOptions|null $options = null ]) : ResponseInterface

Required scopes:

  • update:clients for any call to this endpoint.
  • update:client_keys to update "client_secret" and "encryption_key" attributes.
Parameters
$id : string

client (by it's ID) to update

$body : array<string|int, mixed>|null = null

Optional. Additional body content to pass with the API request. See @see for supported options.

$options : RequestOptions|null = null

Optional. Additional request options to use, such as a field filtering or pagination. (Not all endpoints support these. See @see for supported options.)

Tags
throws
ArgumentException

when an invalid id is provided

throws
NetworkException

when the API request fails due to a network error

see
https://auth0.com/docs/api/management/v2#!/Clients/patch_clients_by_id
Return values
ResponseInterface

Search results