@wildix/classound-client > GetSmsHistoryCommand
GetSmsHistoryCommand class
Signature:
export declare class GetSmsHistoryCommand extends GetSmsHistoryCommand_base
Extends: GetSmsHistoryCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { ClassoundClient, GetSmsHistoryCommand } from "@wildix/classound-client"; // ES Modules import
// const { ClassoundClient, GetSmsHistoryCommand } = require("@wildix/classound-client"); // CommonJS import
const client = new ClassoundClient(config);
const input = { // GetSmsHistoryInput
from: "STRING_VALUE",
to: "STRING_VALUE",
companyId: "STRING_VALUE",
};
const command = new GetSmsHistoryCommand(input);
const response = await client.send(command);
// { // GetSmsHistoryOutput
// type: "STRING_VALUE",
// result: [ // GetSmsHistoryList
// { // GetSmsHistoryRecord
// from: "STRING_VALUE",
// to: "STRING_VALUE",
// messageId: "STRING_VALUE",
// messageText: "STRING_VALUE",
// time: Number("int"),
// },
// ],
// };