@wildix/wda-insights-client > WatchCommand
WatchCommand class
.
Signature:
export declare class WatchCommand extends WatchCommand_base
Extends: WatchCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { WdaInsightsClient, WatchCommand } from "@wildix/wda-insights-client"; // ES Modules import
// const { WdaInsightsClient, WatchCommand } = require("@wildix/wda-insights-client"); // CommonJS import
const client = new WdaInsightsClient(config);
const input = { // WatchInput
company: "STRING_VALUE",
user: "STRING_VALUE",
target: { // ConversationTarget Union: only one key present
call: { // CallConversationTarget
callId: "STRING_VALUE", // required
flowIndex: Number("int"), // required
},
conference: { // ConferenceConversationTarget
conferenceId: "STRING_VALUE", // required
},
chat: { // ChatConversationTarget
chatId: "STRING_VALUE", // required
},
},
playback: { // ConversationPlaybackState
position: Number("long"),
duration: Number("long"),
},
};
const command = new WatchCommand(input);
const response = await client.send(command);
// {};