philips-hue-light-api
Version:
An API client for the Philips Hue API.
16 lines • 1.02 kB
TypeScript
import { RequestInit } from 'node-fetch';
import { Response } from './../types/index';
export declare class HueFetchClient {
private _baseUrl;
constructor(ip: string);
get<TResponse>(path: string, options?: RequestInit): Promise<Response<TResponse>>;
head<TResponse>(path: string, options?: RequestInit): Promise<Response<TResponse>>;
post<TResponse>(path: string, options?: RequestInit): Promise<Response<TResponse>>;
put<TResponse>(path: string, options?: RequestInit): Promise<Response<TResponse>>;
delete<TResponse>(path: string, options?: RequestInit): Promise<Response<TResponse>>;
connect<TResponse>(path: string, options?: RequestInit): Promise<Response<TResponse>>;
options<TResponse>(path: string, options?: RequestInit): Promise<Response<TResponse>>;
trace<TResponse>(path: string, options?: RequestInit): Promise<Response<TResponse>>;
patch<TResponse>(path: string, options?: RequestInit): Promise<Response<TResponse>>;
}
//# sourceMappingURL=hue-fetch-client.d.ts.map