UNPKG

@phasesdk/api-client-for-economic

Version:

e-conomic REST API Library for Node.js is a powerful tool designed to simplify integration with the e-conomic platform for developers building Node.js applications. With this library, developers can effortlessly leverage the full functionality of the e-co

30 lines (29 loc) 857 B
import { HttpResponse } from "../types/Http.type"; import { AuthToken } from "../types/Economic.type"; import { RawAxiosRequestHeaders } from "axios"; declare abstract class OpenApi { abstract getVersion(): string; abstract setVersion(version: string): this; abstract getUrlSegment(): string; /** * auth token * * @type {AuthToken} */ private authToken; /** * Authorization header * * @type {RawAxiosRequestHeaders} */ headers: RawAxiosRequestHeaders; constructor(authToken: AuthToken); /** * Handling the request object and authorization header to be send with the API * @param requestParam * @param requestObj: * @returns */ protected _httpRequest<ResponseType = any>(requestObj: any): Promise<HttpResponse<ResponseType>>; } export default OpenApi;