Constructor
new LogsManager(options)
- Source:
Parameters:
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object
|
The client options.
|
Members
(inner) auth0RestClient :external:RestClient
Provides an abstraction layer for performing CRUD operations on Auth0 Logs.
- Source:
Type:
(inner) clientOptions :Object
Options object for the Rest Client instance.
- Source:
Type:
-
Object
Methods
get(params, cbopt) → {Promise|undefined}
Get an Auth0 log.
- Source:
Parameters:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
params |
Object
|
Log parameters.
|
|||||||
cb |
function
|
<optional> |
Callback function. |
Returns:
- Type:
-
Promise
|undefined
Example
management.logs.get({ id: EVENT_ID }, function (err, log) {
if (err) {
// Handle error.
}
console.log(log);
});
getAll(cbopt) → {Promise|undefined}
Get all logs.
- Source:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
cb |
function
|
<optional> |
Callback function. |
Returns:
- Type:
-
Promise
|undefined
Example
management.logs.getAll(function (err, logs) {
console.log(logs.length);
});