UNPKG

trclib

Version:

Client and utility wrappers for TRC rest APIs

17 lines (16 loc) 517 B
export interface IGeoPoint { Lat: number; Long: number; } export interface ITrcError { Code: number; Message: string; InternalDetails: string; CorrelationId: string; } export declare class HttpClient { private _protocol; private _hostname; constructor(protocol: string, hostName: string); sendAsync(verb: string, path: string, body: any, authHeader: string, geo: IGeoPoint, onSuccess: (result: any) => void, onFailure: (statusCode: ITrcError) => void): void; }