@wildix/xbees-users-client > GetBotCallbackCommand
GetBotCallbackCommand class
Signature:
export declare class GetBotCallbackCommand extends GetBotCallbackCommand_base
Extends: GetBotCallbackCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { UsersClient, GetBotCallbackCommand } from "@wildix/xbees-users-client"; // ES Modules import
// const { UsersClient, GetBotCallbackCommand } = require("@wildix/xbees-users-client"); // CommonJS import
const client = new UsersClient(config);
const input = { // GetBotCallbackInput
company: "STRING_VALUE",
botId: "STRING_VALUE", // required
};
const command = new GetBotCallbackCommand(input);
const response = await client.send(command);
// { // GetBotCallbackOutput
// callback: { // BotCallback
// endpoint: { // BotEndpoint Union: only one key present
// dialogflowCx: { // BotDialogflowCxEndpoint
// credentials: "DOCUMENT_VALUE", // required
// agent: "STRING_VALUE", // required
// location: "STRING_VALUE", // required
// language: "STRING_VALUE", // required
// },
// openAiAssistant: { // BotOpenAiAssistantEndpoint
// key: "STRING_VALUE", // required
// assistantId: "STRING_VALUE", // required
// },
// webhook: { // BotWebhookEndpoint
// url: "STRING_VALUE", // required
// secret: "STRING_VALUE", // required
// },
// sqs: { // BotSqsEndpoint
// url: "STRING_VALUE", // required
// key: "STRING_VALUE", // required
// secret: "STRING_VALUE", // required
// },
// },
// },
// };