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