Class EmailProviderClient
- Namespace
- Auth0.ManagementApi.Clients
- Assembly
- Auth0.ManagementApi.dll
Contains methods to access the /emails/provider endpoints.
public class EmailProviderClient : BaseClient, IEmailProviderClient
- Inheritance
-
EmailProviderClient
- Implements
- Inherited Members
Constructors
EmailProviderClient(IManagementConnection, Uri, IDictionary<string, string>)
Initializes a new instance of EmailProviderClient.
public EmailProviderClient(IManagementConnection connection, Uri baseUri, IDictionary<string, string> defaultHeaders)
Parameters
connection
IManagementConnectionIManagementConnection used to make all API calls.
baseUri
UriUri of the endpoint to use in making API calls.
defaultHeaders
IDictionary<string, string>Dictionary containing default headers included with every request this client makes.
Methods
ConfigureAsync(EmailProviderConfigureRequest, CancellationToken)
Configures the email provider.
public Task<EmailProvider> ConfigureAsync(EmailProviderConfigureRequest request, CancellationToken cancellationToken = default)
Parameters
request
EmailProviderConfigureRequestThe EmailProviderConfigureRequest containing the configuration properties of the provider.
cancellationToken
CancellationTokenThe cancellation token to cancel operation.
Returns
- Task<EmailProvider>
A EmailProvider instance containing the email provider details.
DeleteAsync(CancellationToken)
Deletes the email provider.
public Task DeleteAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationToken
Returns
GetAsync(string, bool, CancellationToken)
Gets the email provider.
public Task<EmailProvider> GetAsync(string fields = null, bool includeFields = true, CancellationToken cancellationToken = default)
Parameters
fields
stringA comma separated list of fields to include or exclude (depending on
includeFields
) from the result, empty to retrieve: name, enabled, settings fields.includeFields
boolTrue if the fields specified are to be excluded from the result, false otherwise (defaults to true).
cancellationToken
CancellationTokenThe cancellation token to cancel operation.
Returns
- Task<EmailProvider>
A EmailProvider instance containing the email provider details.
UpdateAsync(EmailProviderUpdateRequest, CancellationToken)
Updates the email provider.
public Task<EmailProvider> UpdateAsync(EmailProviderUpdateRequest request, CancellationToken cancellationToken = default)
Parameters
request
EmailProviderUpdateRequestThe EmailProviderUpdateRequest containing the configuration properties of the email provider.
cancellationToken
CancellationTokenThe cancellation token to cancel operation.
Returns
- Task<EmailProvider>
A EmailProvider instance containing the email provider details.