@wildix/xbees-kite-client > ListServicesCommand
ListServicesCommand class
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 { KiteClient, ListServicesCommand } from "@wildix/xbees-kite-client"; // ES Modules import
// const { KiteClient, ListServicesCommand } = require("@wildix/xbees-kite-client"); // CommonJS import
const client = new KiteClient(config);
const input = { // ListServicesInput
companyId: "STRING_VALUE",
};
const command = new ListServicesCommand(input);
const response = await client.send(command);
// { // ListServicesOutput
// services: [ // ServicesList // required
// { // Service
// id: Number("int"), // required
// uri: "STRING_VALUE", // required
// title: "STRING_VALUE", // required
// settings: {},
// extensions: [ // ExtensionsList // required
// "STRING_VALUE",
// ],
// pbx: { // ServicePbx
// domain: "STRING_VALUE", // required
// port: Number("int"), // required
// },
// },
// ],
// };