You are here

public function ClientGrants::getAll in Auth0 Single Sign On 8.2

Get all Client Grants, by page if desired. Required scope: "read:client_grants"

@link https://auth0.com/docs/api/management/v2#!/Client_Grants/get_client_grants

Parameters

array $params Additional URL parameters to send::

  • "audience" to filter be a specific API audience identifier.
  • "client_id" to return an object.
  • "include_totals" to return an object.

null|integer $page The page number, zero based.:

null|integer $per_page The amount of entries per page.:

Return value

mixed

Throws

\Exception Thrown by the HTTP client when there is a problem with the API call.

2 calls to ClientGrants::getAll()
ClientGrants::getByAudience in vendor/auth0/auth0-php/src/API/Management/ClientGrants.php
Get Client Grants by audience. Required scope: "read:client_grants"
ClientGrants::getByClientId in vendor/auth0/auth0-php/src/API/Management/ClientGrants.php
Get Client Grants by Client ID. Required scope: "read:client_grants"

File

vendor/auth0/auth0-php/src/API/Management/ClientGrants.php, line 33

Class

ClientGrants
Class ClientGrants. Handles requests to the Client Grants endpoint of the v2 Management API.

Namespace

Auth0\SDK\API\Management

Code

public function getAll(array $params = [], $page = null, $per_page = null) {
  if (null !== $page) {
    $params['page'] = abs((int) $page);
  }
  if (null !== $per_page) {
    $params['per_page'] = abs((int) $per_page);
  }
  return $this->apiClient
    ->method('get')
    ->addPath('client-grants')
    ->withDictParams($params)
    ->call();
}