Skip to main content

@wildix/wms-api-client > GetPbxOAuth2ClientsCommand

GetPbxOAuth2ClientsCommand class

Get the list of all OAuth2 clients on the PBX.

Signature:

export declare class GetPbxOAuth2ClientsCommand extends GetPbxOAuth2ClientsCommand_base 

Extends: GetPbxOAuth2ClientsCommand_base

Example

Use a bare-bones client and the command you need to make an API call.

import { WmsApiClient, GetPbxOAuth2ClientsCommand } from "@wildix/wms-api-client"; // ES Modules import
// const { WmsApiClient, GetPbxOAuth2ClientsCommand } = require("@wildix/wms-api-client"); // CommonJS import
const client = new WmsApiClient(config);
const input = {};
const command = new GetPbxOAuth2ClientsCommand(input);
const response = await client.send(command);
// { // GetPbxOAuth2ClientsOutput
// type: "result" || "error", // required
// result: { // GetPbxOAuth2ClientsResult
// records: [ // PbxOAuth2ClientList // required
// { // PbxOAuth2ClientListProjection
// id: "STRING_VALUE", // required
// name: "STRING_VALUE", // required
// redirectUri: [ // PbxOAuth2RedirectUrls // required
// "STRING_VALUE",
// ],
// secret: "STRING_VALUE", // required
// created: Number("int"), // required
// },
// ],
// },
// };