public function Grants::getAll in Auth0 Single Sign On 8.2
Get all Grants with pagination. Required scope: "read:grants"
@link https://auth0.com/docs/api/management/v2#!/Grants/get_grants
Parameters
integer $page Page number to return, zero-based.:
null|integer $per_page Number of results per page, null to return all.:
array $params Additional URL parameters to send.:
Return value
mixed
Throws
\Exception Thrown by the HTTP client when there is a problem with the API call.
3 calls to Grants::getAll()
- Grants::getByAudience in vendor/
auth0/ auth0-php/ src/ API/ Management/ Grants.php - Get Grants by Audience with pagination. Required scope: "read:grants"
- Grants::getByClientId in vendor/
auth0/ auth0-php/ src/ API/ Management/ Grants.php - Get Grants by Client ID with pagination. Required scope: "read:grants"
- Grants::getByUserId in vendor/
auth0/ auth0-php/ src/ API/ Management/ Grants.php - Get Grants by User ID with pagination. Required scope: "read:grants"
File
- vendor/
auth0/ auth0-php/ src/ API/ Management/ Grants.php, line 27
Class
- Grants
- Class Grants
Namespace
Auth0\SDK\API\ManagementCode
public function getAll($page = 0, $per_page = null, array $params = []) {
if (!empty($page)) {
$params['page'] = abs(intval($page));
}
if (!empty($per_page)) {
$params['per_page'] = abs(intval($per_page));
}
return $this->apiClient
->method('get')
->addPath('grants')
->withDictParams($params)
->call();
}