Auth0-PHP

ClientGrantsInterface
in

Interface ClientGrantsInterface.

Table of Contents

create()  : ResponseInterface
Create a new Client Grant.
delete()  : ResponseInterface
Delete a Client Grant by ID.
getAll()  : ResponseInterface
Retrieve client grants, by page if desired.
getAllByAudience()  : ResponseInterface
Get Client Grants by audience.
getAllByClientId()  : ResponseInterface
Get Client Grants by Client ID.
update()  : ResponseInterface
Update an existing Client Grant.

Methods

create()

Create a new Client Grant.

public create(string $clientId, string $audience[, array<string|int, string>|null $scope = null ][, RequestOptions|null $options = null ]) : ResponseInterface

Required scope: create:client_grants.

Parameters
$clientId : string

client ID to receive the grant

$audience : string

audience identifier for the API being granted

$scope : array<string|int, string>|null = null

Optional. Scopes allowed for this client grant.

$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 clientId or audience are provided

throws
NetworkException

when the API request fails due to a network error

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

delete()

Delete a Client Grant by ID.

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

Required scope: delete:client_grants.

Parameters
$grantId : string

grant (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 grantId is provided

throws
NetworkException

when the API request fails due to a network error

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

getAll()

Retrieve client grants, by page if desired.

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

Required scope: read:client_grants.

Parameters
$parameters : array<string|int, int|string|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#!/Client_Grants/get_client_grants
Return values
ResponseInterface

getAllByAudience()

Get Client Grants by audience.

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

Required scope: read:client_grants.

Parameters
$audience : string

API Audience to filter by

$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
ArgumentException

when an invalid audience is provided

throws
NetworkException

when the API request fails due to a network error

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

getAllByClientId()

Get Client Grants by Client ID.

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

Required scope: read:client_grants.

Parameters
$clientId : string

client ID to filter by

$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
ArgumentException

when an invalid clientId is provided

throws
NetworkException

when the API request fails due to a network error

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

update()

Update an existing Client Grant.

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

Required scope: update:client_grants.

Parameters
$grantId : string

grant (by it's ID) to update

$scope : array<string|int, string>|null = null

Optional. Array of scopes to update; will replace existing scopes, not merge.

$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 grantId is provided

throws
NetworkException

when the API request fails due to a network error

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

Search results