clarifai-nodejs / Exports / User
Class: User
User is a class that provides access to Clarifai API endpoints related to user information.
Hierarchy
-
Lister
↳
User
Table of contents
Constructors
Methods
Constructors
constructor
• new User(authConfig?
): User
Initializes an User object with the specified authentication configuration.
Example
import { User } from "clarifai-nodejs";
export const user = new User({
pat: process.env.CLARIFAI_PAT!,
userId: process.env.CLARIFAI_USER_ID!,
appId: process.env.CLARIFAI_APP_ID!,
});
Parameters
Name | Type | Description |
---|---|---|
authConfig | AuthConfig | An object containing the authentication configuration. Defaults to an empty object. |
Returns
Overrides
Lister.constructor