Skip to main content

@wildix/xbees-users-client > ToggleTranscriptionEmailNotificationsSubscriptionCommand

ToggleTranscriptionEmailNotificationsSubscriptionCommand class

Using unsubscribeToken from email you can Toggle transcription email notifications subscription

Signature:

export declare class ToggleTranscriptionEmailNotificationsSubscriptionCommand extends ToggleTranscriptionEmailNotificationsSubscriptionCommand_base 

Extends: ToggleTranscriptionEmailNotificationsSubscriptionCommand_base

Example

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

import { UsersClient, ToggleTranscriptionEmailNotificationsSubscriptionCommand } from "@wildix/xbees-users-client"; // ES Modules import
// const { UsersClient, ToggleTranscriptionEmailNotificationsSubscriptionCommand } = require("@wildix/xbees-users-client"); // CommonJS import
const client = new UsersClient(config);
const input = { // ToggleTranscriptionEmailNotificationsSubscriptionInput
unsubscribeToken: "STRING_VALUE", // required
subscribe: true || false, // required
};
const command = new ToggleTranscriptionEmailNotificationsSubscriptionCommand(input);
const response = await client.send(command);
// {};