Skip to main content

@wildix/xbees-users-client > ListIdentitiesCommand

ListIdentitiesCommand class

Lists all identities (login methods) for the current account.

Signature:

export declare class ListIdentitiesCommand extends ListIdentitiesCommand_base

Extends: ListIdentitiesCommand_base

Example

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

import { UsersClient, ListIdentitiesCommand } from "@wildix/xbees-users-client"; // ES Modules import
// const { UsersClient, ListIdentitiesCommand } = require("@wildix/xbees-users-client"); // CommonJS import
const client = new UsersClient(config);
const input = { // ListIdentitiesInput
accountId: "STRING_VALUE", // required
};
const command = new ListIdentitiesCommand(input);
const response = await client.send(command);
// { // ListIdentitiesOutput
// identities: [ // IdentityList // required
// { // Identity
// identity: "STRING_VALUE", // required
// account: "STRING_VALUE", // required
// verified: true || false,
// },
// ],
// };