@wildix/xbees-conversations-client > GetWhatsAppChannelIdCommand
GetWhatsAppChannelIdCommand class
Gets the channel ID of an existing or non-existing WhatsApp
Signature:
export declare class GetWhatsAppChannelIdCommand extends GetWhatsAppChannelIdCommand_base
Extends: GetWhatsAppChannelIdCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { ConversationsClient, GetWhatsAppChannelIdCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
// const { ConversationsClient, GetWhatsAppChannelIdCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
const client = new ConversationsClient(config);
const input = { // GetWhatsAppChannelIdInput
userId: "STRING_VALUE",
serviceUri: "STRING_VALUE", // required
recipientId: "STRING_VALUE",
recipientNumber: "STRING_VALUE",
};
const command = new GetWhatsAppChannelIdCommand(input);
const response = await client.send(command);
// { // GetWhatsAppChannelIdOutput
// channelId: "STRING_VALUE", // required
// };