public function ClientGrants::getByClientId in Auth0 Single Sign On 8.2
Get Client Grants by Client ID. Required scope: "read:client_grants"
@link https://auth0.com/docs/api/management/v2#!/Client_Grants/get_client_grants
Parameters
string $client_id Client ID to filter by.:
null|integer $page The page number, zero based.:
null|integer $per_page The amount of entries per page.:
Return value
mixed
Throws
CoreException Thrown when $client_id is empty or not a string.
\Exception Thrown by the HTTP client when there is a problem with the API call.
File
- vendor/
auth0/ auth0-php/ src/ API/ Management/ ClientGrants.php, line 88
Class
- ClientGrants
- Class ClientGrants. Handles requests to the Client Grants endpoint of the v2 Management API.
Namespace
Auth0\SDK\API\ManagementCode
public function getByClientId($client_id, $page = null, $per_page = null) {
if (empty($client_id) || !is_string($client_id)) {
throw new CoreException('Empty or invalid "client_id" parameter.');
}
return $this
->getAll([
'client_id' => $client_id,
], $page, $per_page);
}