Skip to main content

@wildix/xbees-conversations-client > GetSmsChannelIdCommand

GetSmsChannelIdCommand class

Gets the channel ID of an existing or non-existing SMS channel

Signature:

export declare class GetSmsChannelIdCommand extends GetSmsChannelIdCommand_base 

Extends: GetSmsChannelIdCommand_base

Example

Use a bare-bones client and the command you need to make an API call.

import { ConversationsClient, GetSmsChannelIdCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
// const { ConversationsClient, GetSmsChannelIdCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
const client = new ConversationsClient(config);
const input = { // GetSmsChannelIdInput
userId: "STRING_VALUE",
serviceUri: "STRING_VALUE", // required
recipientId: "STRING_VALUE",
recipientNumber: "STRING_VALUE",
};
const command = new GetSmsChannelIdCommand(input);
const response = await client.send(command);
// { // GetSmsChannelIdOutput
// channelId: "STRING_VALUE", // required
// };