UNPKG

@sociate/sociate-api-sdk

Version:

Javascript client for Sociate AI APIs

30 lines (29 loc) 923 B
import { TrendsAPI } from './modules/trends'; import { AuthAPI } from './modules/auth'; import { ProductsAPI } from './modules/products'; import { SearchAPI } from './modules/search'; import { UsersAPI } from './modules/users'; import { SociateConfig } from "./types/sociate"; export declare class SociateClient { private readonly httpClient; private readonly authAPI; private readonly productsAPI; private readonly searchAPI; private readonly usersAPI; private readonly trendsAPI; constructor(config: SociateConfig); get auth(): AuthAPI; get products(): ProductsAPI; get search(): SearchAPI; get trends(): TrendsAPI; get users(): UsersAPI; /** * Sets the authentication token for the client. * @param token - The authentication token. */ setToken(token: string): void; /** * Clears the authentication token. */ clearToken(): void; }