You are here

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

Get a Client Grant.

@codeCoverageIgnore - Deprecated.

Parameters

string $id Client Grant ID.:

null|string $audience Client Grant audience to filter by.:

Return value

mixed

Throws

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

Deprecated

5.4.0, no such endpoint.

File

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

Class

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

Namespace

Auth0\SDK\API\Management

Code

public function get($id, $audience = null) {
  $request = $this->apiClient
    ->method('get')
    ->addPath('client-grants');
  if ($audience !== null) {
    $request = $request
      ->withParam('audience', $audience);
  }
  return $request
    ->call();
}