@wildix/xbees-users-client > CreateAnonymousSessionCommand
CreateAnonymousSessionCommand class
Signature:
export declare class CreateAnonymousSessionCommand extends CreateAnonymousSessionCommand_base
Extends: CreateAnonymousSessionCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { UsersClient, CreateAnonymousSessionCommand } from "@wildix/xbees-users-client"; // ES Modules import
// const { UsersClient, CreateAnonymousSessionCommand } = require("@wildix/xbees-users-client"); // CommonJS import
const client = new UsersClient(config);
const input = { // CreateAnonymousSessionInput
name: "STRING_VALUE", // required
captchaProof: "STRING_VALUE", // required
context: { // AnonymousEntryContext Union: only one key present
widgetId: "STRING_VALUE",
channelId: "STRING_VALUE",
},
};
const command = new CreateAnonymousSessionCommand(input);
const response = await client.send(command);
// { // CreateAnonymousSessionOutput
// syntheticEmail: "STRING_VALUE", // required
// };