Skip to main content

@wildix/wms-api-client > OriginateCallCommand

OriginateCallCommand class

Originate call

Signature:

export declare class OriginateCallCommand extends OriginateCallCommand_base 

Extends: OriginateCallCommand_base

Example

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

import { WmsApiClient, OriginateCallCommand } from "@wildix/wms-api-client"; // ES Modules import
// const { WmsApiClient, OriginateCallCommand } = require("@wildix/wms-api-client"); // CommonJS import
const client = new WmsApiClient(config);
const input = { // OriginateCallInput
number: "STRING_VALUE", // required
name: "STRING_VALUE",
postpone: "STRING_VALUE",
};
const command = new OriginateCallCommand(input);
const response = await client.send(command);
// { // OriginateCallOutput
// type: "result" || "error", // required
// result: "Success", // required
// };