Class ProvidersClient
- Namespace
- Auth0.ManagementApi.Branding.Phone
- Assembly
- Auth0.ManagementApi.dll
public class ProvidersClient : IProvidersClient
- Inheritance
-
ProvidersClient
- Implements
- Inherited Members
- Extension Methods
Methods
CreateAsync(CreateBrandingPhoneProviderRequestContent, RequestOptions?, CancellationToken)
Create a phone provider.
The credentials object requires different properties depending on the phone provider (which is specified using the name property).
public WithRawResponseTask<CreateBrandingPhoneProviderResponseContent> CreateAsync(CreateBrandingPhoneProviderRequestContent request, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
requestCreateBrandingPhoneProviderRequestContentoptionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.Branding.Phone.Providers.CreateAsync(
new CreateBrandingPhoneProviderRequestContent
{
Name = PhoneProviderNameEnum.Twilio,
Credentials = new TwilioProviderCredentials { AuthToken = "auth_token" },
}
);
DeleteAsync(string, RequestOptions?, CancellationToken)
Delete the configured phone provider.
public Task DeleteAsync(string id, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
idstringoptionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.Branding.Phone.Providers.DeleteAsync("id");
GetAsync(string, RequestOptions?, CancellationToken)
Retrieve phone provider details. A list of fields to include or exclude may also be specified.
public WithRawResponseTask<GetBrandingPhoneProviderResponseContent> GetAsync(string id, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
idstringoptionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.Branding.Phone.Providers.GetAsync("id");
ListAsync(ListBrandingPhoneProvidersRequestParameters, RequestOptions?, CancellationToken)
Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified.
public WithRawResponseTask<ListBrandingPhoneProvidersResponseContent> ListAsync(ListBrandingPhoneProvidersRequestParameters request, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
requestListBrandingPhoneProvidersRequestParametersoptionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.Branding.Phone.Providers.ListAsync(
new ListBrandingPhoneProvidersRequestParameters { Disabled = true }
);
TestAsync(string, CreatePhoneProviderSendTestRequestContent, RequestOptions?, CancellationToken)
public WithRawResponseTask<CreatePhoneProviderSendTestResponseContent> TestAsync(string id, CreatePhoneProviderSendTestRequestContent request, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
idstringrequestCreatePhoneProviderSendTestRequestContentoptionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.Branding.Phone.Providers.TestAsync(
"id",
new CreatePhoneProviderSendTestRequestContent { To = "to" }
);
UpdateAsync(string, UpdateBrandingPhoneProviderRequestContent, RequestOptions?, CancellationToken)
Update a phone provider.
The credentials object requires different properties depending on the phone provider (which is specified using the name property).
public WithRawResponseTask<UpdateBrandingPhoneProviderResponseContent> UpdateAsync(string id, UpdateBrandingPhoneProviderRequestContent request, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
idstringrequestUpdateBrandingPhoneProviderRequestContentoptionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.Branding.Phone.Providers.UpdateAsync(
"id",
new UpdateBrandingPhoneProviderRequestContent()
);