Skip to main content

@wildix/xbees-conversations-client > GetTokenCommand

GetTokenCommand class

Retrieve an authorization token for chat.wildix-chat.com

Signature:

export declare class GetTokenCommand extends GetTokenCommand_base 

Extends: GetTokenCommand_base

Example

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

import { ConversationsClient, GetTokenCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
// const { ConversationsClient, GetTokenCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
const client = new ConversationsClient(config);
const input = {};
const command = new GetTokenCommand(input);
const response = await client.send(command);
// { // GetTokenOutput
// token: "STRING_VALUE", // required
// expires: Number("int"), // required
// };