UNPKG

nodejs-google-adwords

Version:
25 lines (24 loc) 789 B
import { OptionsWithUri } from 'request-promise'; import req from 'request'; import { CoreOptions } from 'request'; import { IAuthService } from './AuthService'; interface IHttpHeaders { clientCustomerId?: string; developerToken: string; Authorization?: string; } interface IHttpServiceOpts { headers: IHttpHeaders; authService: IAuthService; } interface IHttpService { request(options: OptionsWithUri): Promise<req.Request>; } declare class HttpService implements IHttpService { private headers; private authService; private readonly defaultOptions; constructor(opts: IHttpServiceOpts); request(options: OptionsWithUri): Promise<req.Request>; } export { HttpService, OptionsWithUri, CoreOptions, IHttpServiceOpts, IHttpHeaders, IHttpService };