@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
23 lines (22 loc) • 544 B
TypeScript
import { HttpRequest, HttpResponse } from "../types/Http.type";
declare abstract class HttpClient {
abstract getUrl(): string;
baseUrl(): string;
/**
* @type {Request}
*/
request: HttpRequest;
/**
* Assign values to the private variable
* @constructor
* @param requestObj
*/
constructor(requestData: HttpRequest);
/**
* Http call
*
* @returns Promise<HttpResponse>
*/
call<ResponseType = any>(): Promise<HttpResponse<ResponseType>>;
}
export default HttpClient;