UNPKG

@c8y/client

Version:

Client application programming interface to access the Cumulocity IoT-Platform REST services.

18 lines 789 B
import { IFetchClient } from './IFetchClient'; import { IFetchOptions } from './IFetchOptions'; import { IFetchResponse } from './IFetchResponse'; import { IAuthentication } from './IAuthentication'; export declare class FetchClient implements IFetchClient { baseUrl?: string; tenant: string; defaultHeaders: {}; constructor(authOrBaseUrl?: IAuthentication | string, baseUrl?: string); setAuth(auth: IAuthentication): void; fetch(url: string, init?: IFetchOptions): Promise<IFetchResponse>; getUrl(url?: string, options?: IFetchOptions): string; getFetchOptions(options?: IFetchOptions): IFetchOptions; getCometdHandshake(config?: any): any; private resolveServerUrl; private adjustOptionsForFormData; } //# sourceMappingURL=FetchClient.d.ts.map