Constructor
new EmailProviderManager(options)
Parameters:
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object
|
The client options.
|
Members
(inner) auth0RestClient :external:RestClient
Provides an abstraction layer for consuming the Auth0 Clients endpoint.
Type:
(inner) clientOptions :Object
Options object for the Rest Client instance.
Type:
-
Object
Methods
configure(data, cbopt) → {Promise|undefined}
Configure the email provider.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
data |
Object
|
The email provider data object. |
|
cb |
function
|
<optional> |
Callback function. |
Returns:
- Type:
-
Promise
|undefined
Example
management.emailProvider.configure(data, function (err) {
if (err) {
// Handle error.
}
// Email provider configured.
});
delete(cbopt) → {Promise|undefined}
Delete email provider.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
cb |
function
|
<optional> |
Callback function. |
Returns:
- Type:
-
Promise
|undefined
Example
management.emailProvider.delete(function (err) {
if (err) {
// Handle error.
}
// Email provider configured.
});
get(cbopt) → {Promise|undefined}
Get the email provider.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
cb |
function
|
<optional> |
Callback function. |
Returns:
- Type:
-
Promise
|undefined
Example
management.emailProvider.get(function (err, provider) {
console.log(provider);
});
update(params, data, cbopt) → {Promise|undefined}
Update the email provider.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
params |
Object
|
Email provider parameters. |
|
data |
Object
|
Updated email provider data. |
|
cb |
function
|
<optional> |
Callback function. |
Returns:
- Type:
-
Promise
|undefined
Example
management.emailProvider.update(params, data, function (err, provider) {
if (err) {
// Handle error.
}
// Updated email provider.
console.log(provider);
});