UNPKG

oklink-api

Version:

This is a non-official JS SDK API for calling OKLink's API product.

23 lines (22 loc) 622 B
import { HttpClient } from '../request/httpClientType.js'; import { ApiResult } from './apiResult.js'; export declare class ApiCaller { #private; constructor({ config, httpClient }: { config: Config; httpClient?: HttpClient; }); call({ method, path, params, data, timeout, }: { path: string; method?: string; params?: Record<string, unknown>; data?: Record<string, unknown>; timeout?: number; }): Promise<ApiResult>; } declare type Config = { baseUrl: string; contextPath?: string; apiKey: string; }; export {};