UNPKG

trclib

Version:

Client and utility wrappers for TRC rest APIs

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