@343max/eero-ts 中文文档教程
Unofficial typescript client for the eero API
基于我的 python eero 客户端。
支持:
- account
- network
- eeros
- devices (on your network)
- reboot and eero
Usage
您需要为http请求提供一个fetch
函数,您可以直接从node-fetch
中删除一个。
有关示例,请参见 sample.ts。
Submit your typings!
types.ts
中的类型大多是有根据的猜测。 所以我很容易验证类型是否正确:
示例脚本将以 TypeScript 代码的形式转储它的输出,您可以将其直接通过管道传输到 .ts
文件中,以查看您的设置是否与当前类型。
示例:
npm run sample -s eeros > eeros.ts && code eeros.ts
如果没有,请提交拉取请求!
Unofficial typescript client for the eero API
Based on my python eero client.
Supports:
- account
- network
- eeros
- devices (on your network)
- reboot and eero
Usage
You need to provide a fetch
function for http requests, you can just drop in the one from node-fetch
.
see the sample.ts for an example.
Submit your typings!
The types in types.ts
are mostly educated guesses. So I made it easy to verify if the types are correct:
The sample script will dump it's output in the form of TypeScript code that you can pipe directly into a .ts
file to see if you setup matches the current types.
Example:
npm run sample -s eeros > eeros.ts && code eeros.ts
If not please submit a pull request!