Skip to main content

@wildix/wda-stream-client > ListServicesCommand

ListServicesCommand class

Retrieves a list of active services of the company.

Signature:

export declare class ListServicesCommand extends ListServicesCommand_base

Extends: ListServicesCommand_base

Example

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

import { WdaStreamClient, ListServicesCommand } from "@wildix/wda-stream-client"; // ES Modules import
// const { WdaStreamClient, ListServicesCommand } = require("@wildix/wda-stream-client"); // CommonJS import
const client = new WdaStreamClient(config);
const input = { // ListServicesInput
company: "STRING_VALUE",
filter: [ // ListServicesFilterList
{ // ListServicesFilter
pbx: "STRING_VALUE",
},
],
};
const command = new ListServicesCommand(input);
const response = await client.send(command);
// { // ListServicesOutput
// services: [ // ServiceList // required
// { // ServiceInfo
// id: "STRING_VALUE", // required
// name: "STRING_VALUE", // required
// pbx: "STRING_VALUE",
// },
// ],
// };