UNPKG

@testmonitor/ts-reporter-client

Version:

A convenient TypeScript wrapper for the TestMonitor reporter API endpoints. It can be used in both TypeScript and JavaScript.

36 lines (35 loc) 769 B
import { AxiosResponse } from 'axios'; import { ConfigurationInterface } from './interfaces/ConfigurationInterface'; import { RequestInterface } from './interfaces/RequestInterface'; export declare class HttpClient { private basePath; private accessToken; private headers?; /** * * @param config */ constructor(config: ConfigurationInterface); /** * * @param request * @returns Promise<AxiosResponse<any>> */ request(request: RequestInterface): Promise<AxiosResponse<any>>; /** * * @param path * @returns string */ private generateUrl; /** * * @returns string */ private getAccessToken; /** * * @returns {} */ private getHeaders; }