@wildix/xbees-users-client > LinkIdentityCommand
LinkIdentityCommand class
Adds a new identity (email or phone) to the account. Requires OTP verification for the new identity
Signature:
export declare class LinkIdentityCommand extends LinkIdentityCommand_base
Extends: LinkIdentityCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { UsersClient, LinkIdentityCommand } from "@wildix/xbees-users-client"; // ES Modules import
// const { UsersClient, LinkIdentityCommand } = require("@wildix/xbees-users-client"); // CommonJS import
const client = new UsersClient(config);
const input = { // LinkIdentityInput
accountId: "STRING_VALUE", // required
identity: "STRING_VALUE", // required
};
const command = new LinkIdentityCommand(input);
const response = await client.send(command);
// { // LinkIdentityOutput
// identity: { // Identity
// identity: "STRING_VALUE", // required
// account: "STRING_VALUE", // required
// verified: true || false,
// },
// };