Back to Node Auth0

Class ProvidersClient

docs/classes/management.SDK.ProvidersClient.html

5.9.111.0 KB
Original Source

Class ProvidersClient

Index

Constructors

constructor

Methods

listcreategetdeleteupdatetest

Properties

_options

Constructors

constructor

new ProvidersClient(options: BaseClientOptions): ProvidersClient

Parameters

Returns ProvidersClient

Methods

list

list(
request?: ListBrandingPhoneProvidersRequestParameters,
requestOptions?: ProvidersClient.RequestOptions,
): HttpResponsePromise<ListBrandingPhoneProvidersResponseContent>

Retrieve a list of phone providers details set for a Tenant. A list of fields to include or exclude may also be specified.

Parameters

Request-specific configuration.

Returns HttpResponsePromise<ListBrandingPhoneProvidersResponseContent>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.TooManyRequestsError

Example

await client.branding.phone.providers.list({ disabled: true })Copy

create

create(
request: CreateBrandingPhoneProviderRequestContent,
requestOptions?: ProvidersClient.RequestOptions,
): HttpResponsePromise<CreateBrandingPhoneProviderResponseContent>

Create a phone provider. The credentials object requires different properties depending on the phone provider (which is specified using the name property).

Parameters

Request-specific configuration.

Returns HttpResponsePromise<CreateBrandingPhoneProviderResponseContent>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.ConflictError

Throws

Management.TooManyRequestsError

Example

await client.branding.phone.providers.create({ name: "twilio", credentials: { auth_token: "auth_token" } })Copy

get

get(
id: string,
requestOptions?: ProvidersClient.RequestOptions,
): HttpResponsePromise<GetBrandingPhoneProviderResponseContent>

Retrieve phone provider details. A list of fields to include or exclude may also be specified.

Parameters

Request-specific configuration.

Returns HttpResponsePromise<GetBrandingPhoneProviderResponseContent>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.NotFoundError

Throws

Management.TooManyRequestsError

Example

await client.branding.phone.providers.get("id")Copy

delete

delete(
id: string,
requestOptions?: ProvidersClient.RequestOptions,
): HttpResponsePromise<void>

Delete the configured phone provider.

Parameters

Request-specific configuration.

Returns HttpResponsePromise<void>

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.NotFoundError

Throws

Management.TooManyRequestsError

Example

await client.branding.phone.providers.delete("id")Copy

update

update(
id: string,
request?: UpdateBrandingPhoneProviderRequestContent,
requestOptions?: ProvidersClient.RequestOptions,
): HttpResponsePromise<UpdateBrandingPhoneProviderResponseContent>

Update a phone provider. The credentials object requires different properties depending on the phone provider (which is specified using the name property).

Parameters

Request-specific configuration.

Returns HttpResponsePromise<UpdateBrandingPhoneProviderResponseContent>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.NotFoundError

Throws

Management.ConflictError

Throws

Management.TooManyRequestsError

Example

await client.branding.phone.providers.update("id")Copy

test

test(
id: string,
request: CreatePhoneProviderSendTestRequestContent,
requestOptions?: ProvidersClient.RequestOptions,
): HttpResponsePromise<CreatePhoneProviderSendTestResponseContent>

Parameters

Request-specific configuration.

Returns HttpResponsePromise<CreatePhoneProviderSendTestResponseContent>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.NotFoundError

Throws

Management.ConflictError

Throws

Management.TooManyRequestsError

Example

await client.branding.phone.providers.test("id", { to: "to" })Copy

Properties

Protected Readonly_options

_options: NormalizedClientOptionsWithAuth<BaseClientOptions>

Settings

Member Visibility

  • Protected
  • Inherited

ThemeOSLightDark

On This Page

Constructors constructor Methods listcreategetdeleteupdatetest Properties _options