@intruder-detection/shelly-api-typescript
Version:
Typescript client for the Shelly HTTP API
22 lines (14 loc) • 499 B
Markdown
Strongly typed Shelly API client written in Typescript
You can install it in a Typescript/Javascript project by doing the following:
```bash
npm i @intruder-detection/shelly-api-typescript
```
```ts
import { ShellyGen2PlusHTTPAPI, ShellyMethods } from '@intruder-detection/shelly-api-typescript';
const gen2Device = new ShellyGen2PlusHTTPAPI('192.168.1.10');
const status = await gen2Device.post(ShellyMethods.GetStatus);
console.log(status);
```