Back to Node Auth0

Class ClientsClient

docs/classes/management.SDK.ClientsClient-1.html

5.9.14.7 KB
Original Source

Class ClientsClient

Index

Constructors

constructor

Methods

getupdate

Properties

_options

Constructors

constructor

new ClientsClient(options: BaseClientOptions): ClientsClient

Parameters

Returns ClientsClient

Methods

get

get(
id: string,
request?: GetConnectionEnabledClientsRequestParameters,
requestOptions?: ClientsClient.RequestOptions,
): Promise<
Page<
ConnectionEnabledClient,
GetConnectionEnabledClientsResponseContent,
>,
>

Retrieve all clients that have the specified connection enabled.

Note : The first time you call this endpoint, omit the from parameter. If there are more results, a next value is included in the response. You can use this for subsequent API calls. When next is no longer included in the response, no further results are remaining.

Parameters

  • id: string

The id of the connection for which enabled clients are to be retrieved

Request-specific configuration.

Returns Promise< Page< ConnectionEnabledClient, GetConnectionEnabledClientsResponseContent, >, >

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.NotFoundError

Throws

Management.TooManyRequestsError

Example

await client.connections.clients.get("id", { take: 1, from: "from" })Copy

update

update(
id: string,
request: UpdateEnabledClientConnectionsRequestContent,
requestOptions?: ClientsClient.RequestOptions,
): HttpResponsePromise<void>

Parameters

  • id: string

The id of the connection to modify

Request-specific configuration.

Returns HttpResponsePromise<void>

Throws

Management.BadRequestError

Throws

Management.UnauthorizedError

Throws

Management.ForbiddenError

Throws

Management.NotFoundError

Throws

Management.TooManyRequestsError

Example

await client.connections.clients.update("id", [{ client_id: "client_id", status: true }])Copy

Properties

Protected Readonly_options

_options: NormalizedClientOptionsWithAuth<BaseClientOptions>

Settings

Member Visibility

  • Protected
  • Inherited

ThemeOSLightDark

On This Page

Constructors constructor Methods getupdate Properties _options