public function Users::getLogs in Auth0 Single Sign On 8.2
Get log entries for a specific user. Required scope: "read:logs"
@link https://auth0.com/docs/api/management/v2#!/Users/get_logs_by_user
Parameters
string $user_id User ID to get logs entries for.:
array $params Additional listing params like page, per_page, sort, and include_totals.:
Return value
mixed
Throws
EmptyOrInvalidParameterException Thrown if the user_id parameter is empty or is 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/ Users.php, line 460
Class
- Users
- Class Users. Handles requests to the Users endpoint of the v2 Management API.
Namespace
Auth0\SDK\API\ManagementCode
public function getLogs($user_id, array $params = []) {
$this
->checkEmptyOrInvalidString($user_id, 'user_id');
$params = $this
->normalizePagination($params);
$params = $this
->normalizeIncludeTotals($params);
return $this->apiClient
->method('get')
->addPath('users', $user_id)
->addPath('logs')
->withDictParams($params)
->call();
}