Skip to main content

@wildix/wms-api-client > OriginateCommand

OriginateCommand class

Originate

Signature:

export declare class OriginateCommand extends OriginateCommand_base 

Extends: OriginateCommand_base

Example

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

import { WmsApiClient, OriginateCommand } from "@wildix/wms-api-client"; // ES Modules import
// const { WmsApiClient, OriginateCommand } = require("@wildix/wms-api-client"); // CommonJS import
const client = new WmsApiClient(config);
const input = { // OriginateInput
channel: "STRING_VALUE", // required
exten: "STRING_VALUE",
context: "STRING_VALUE",
priority: "STRING_VALUE",
application: "STRING_VALUE",
data: "STRING_VALUE",
timeout: "STRING_VALUE",
callerid: "STRING_VALUE",
variable: "STRING_VALUE",
account: "STRING_VALUE",
async: "STRING_VALUE",
actionid: "STRING_VALUE",
};
const command = new OriginateCommand(input);
const response = await client.send(command);
// { // OriginateOutput
// type: "result" || "error", // required
// result: "Success", // required
// };