@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
27 lines (26 loc) • 726 B
TypeScript
import { AuthToken } from "../types/Economic.type";
import { RawAxiosRequestHeaders } from "axios";
import { HttpResponse } from "../types/Http.type";
declare abstract class RestApi {
/**
* 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
*/
_httpRequest<ResponseType = any>(requestObj: any): Promise<HttpResponse<ResponseType>>;
}
export default RestApi;