@sociate/sociate-api-sdk
Version:
Javascript client for Sociate AI APIs
14 lines (13 loc) • 469 B
TypeScript
import { IHttp } from "../../types/core";
export declare class HttpClient implements IHttp {
private readonly basePath;
private token?;
constructor(basePath: string, token?: string);
get<T>(path: string): Promise<T>;
post<T>(path: string, body?: any): Promise<T>;
put<T>(path: string, body?: any): Promise<T>;
delete<T>(path: string, body?: any): Promise<T>;
setToken(token: string): void;
clearToken(): void;
private request;
}