@wildix/wda-history-client > GetCallCommand
GetCallCommand class
Signature:
export declare class GetCallCommand extends GetCallCommand_base
Extends: GetCallCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { WdaHistoryClient, GetCallCommand } from "@wildix/wda-history-client"; // ES Modules import
// const { WdaHistoryClient, GetCallCommand } = require("@wildix/wda-history-client"); // CommonJS import
const client = new WdaHistoryClient(config);
const input = { // GetCallInput
company: "STRING_VALUE",
callId: "STRING_VALUE", // required
flowIndex: Number("int"), // required
};
const command = new GetCallCommand(input);
const response = await client.send(command);
// { // GetCallOutput
// call: { // CallRecord
// flowIndex: Number("int"), // required
// startTime: Number("long"), // required
// endTime: Number("long"), // required
// connectTime: Number("long"),
// talkTime: Number("long"),
// waitTime: Number("long"),
// duration: Number("long"), // required
// caller: { // CallParticipant
// type: "REMOTE" || "LOCAL", // required
// phone: "STRING_VALUE",
// name: "STRING_VALUE",
// company: "STRING_VALUE",
// email: "STRING_VALUE",
// userId: "STRING_VALUE",
// userExtension: "STRING_VALUE",
// userDepartment: "STRING_VALUE",
// groupId: "STRING_VALUE",
// groupName: "STRING_VALUE",
// userAgent: "STRING_VALUE",
// userDevice: "COLLABORATION_WEB" || "COLLABORATION_IOS" || "COLLABORATION_ANDROID" || "XBEES_WEB" || "XBEES_IOS" || "XBEES_ANDROID" || "WILDIX_PHONE" || "WILDIX_DEVICE" || "UNKNOWN",
// role: "CLIENT" || "AGENT", // required
// license: "STRING_VALUE",
// },
// callee: {
// type: "REMOTE" || "LOCAL", // required
// phone: "STRING_VALUE",
// name: "STRING_VALUE",
// company: "STRING_VALUE",
// email: "STRING_VALUE",
// userId: "STRING_VALUE",
// userExtension: "STRING_VALUE",
// userDepartment: "STRING_VALUE",
// groupId: "STRING_VALUE",
// groupName: "STRING_VALUE",
// userAgent: "STRING_VALUE",
// userDevice: "COLLABORATION_WEB" || "COLLABORATION_IOS" || "COLLABORATION_ANDROID" || "XBEES_WEB" || "XBEES_IOS" || "XBEES_ANDROID" || "WILDIX_PHONE" || "WILDIX_DEVICE" || "UNKNOWN",
// role: "CLIENT" || "AGENT", // required
// license: "STRING_VALUE",
// },
// service: "STRING_VALUE",
// serviceNumber: "STRING_VALUE",
// destination: "STRING_VALUE",
// direction: "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
// trunkName: "STRING_VALUE",
// trunkDirection: "STRING_VALUE",
// queueName: "STRING_VALUE",
// queueId: "STRING_VALUE",
// tags: [ // CallFlowTags
// "STRING_VALUE",
// ],
// flags: [ // CallFlowFlags
// "STRING_VALUE",
// ],
// callerMos: "STRING_VALUE",
// calleeMos: "STRING_VALUE",
// xhoppersConfId: "STRING_VALUE",
// recordings: [ // CallFlowRecordings
// "STRING_VALUE",
// ],
// recordingsData: [ // CallFlowRecordingsData
// { // RecordingsData
// fileName: "STRING_VALUE", // required
// start: Number("long"), // required
// end: Number("long"), // required
// owner: "callee" || "caller" || "system", // required
// url: "STRING_VALUE", // required
// pauses: [ // CallRecordPausesList // required
// { // CallRecordPause
// start: Number("long"),
// end: Number("long"),
// reason: "pause" || "hold",
// },
// ],
// },
// ],
// mergeWith: "STRING_VALUE",
// splitReason: "STRING_VALUE",
// splitTransferType: "STRING_VALUE",
// remotePhone: "STRING_VALUE",
// remotePhoneCountryCode: Number("int"),
// remotePhoneCountryCodeStr: "STRING_VALUE",
// remotePhoneLocation: "STRING_VALUE",
// callStatus: "COMPLETED" || "MISSED",
// transcriptionStatus: "AVAILABLE" || "UNAVAILABLE",
// transcriptionLanguage: "STRING_VALUE",
// attachment: "STRING_VALUE",
// attachmentType: "VOICEMAIL" || "FAX",
// attachmentDestinations: [ // CallFlowAttachmentDestinationList
// { // CallFlowAttachmentDestination
// phone: "STRING_VALUE",
// name: "STRING_VALUE",
// email: "STRING_VALUE",
// userId: "STRING_VALUE",
// userExtension: "STRING_VALUE",
// userDepartment: "STRING_VALUE",
// groupId: "STRING_VALUE",
// groupName: "STRING_VALUE",
// },
// ],
// id: "STRING_VALUE", // required
// pbx: "STRING_VALUE", // required
// time: Number("long"), // required
// company: "STRING_VALUE", // required
// licenses: [ // LicensesList // required
// "x-bees",
// ],
// type: "call" || "call_transcription" || "conference" || "conference_transcription", // required
// },
// };