@wildix/wda-insights-client > GetCallStateCommand
GetCallStateCommand class
Gets the summary for a call by callId and flowIndex.
Signature:
export declare class GetCallStateCommand extends GetCallStateCommand_base
Extends: GetCallStateCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { WdaInsightsClient, GetCallStateCommand } from "@wildix/wda-insights-client"; // ES Modules import
// const { WdaInsightsClient, GetCallStateCommand } = require("@wildix/wda-insights-client"); // CommonJS import
const client = new WdaInsightsClient(config);
const input = { // GetCallStateInput
company: "STRING_VALUE",
callId: "STRING_VALUE", // required
flowIndex: Number("int"), // required
user: "STRING_VALUE",
};
const command = new GetCallStateCommand(input);
const response = await client.send(command);
// { // GetCallStateOutput
// state: { // ConversationState
// playlists: [ // PlaylistsIdsList
// "STRING_VALUE",
// ],
// playback: { // ConversationPlaybackState
// position: Number("long"),
// duration: Number("long"),
// },
// firstWatchedAt: "STRING_VALUE",
// lastWatchedAt: "STRING_VALUE",
// },
// };