Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JamesHawkinss/google-wifi-api-node
A Node.js wrapper for the Google WiFi API
https://github.com/JamesHawkinss/google-wifi-api-node
google google-wifi google-wifi-api
Last synced: 3 months ago
JSON representation
A Node.js wrapper for the Google WiFi API
- Host: GitHub
- URL: https://github.com/JamesHawkinss/google-wifi-api-node
- Owner: JamesHawkinss
- Created: 2021-10-24T16:24:10.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-10-25T09:37:29.000Z (about 3 years ago)
- Last Synced: 2024-04-24T16:59:02.325Z (6 months ago)
- Topics: google, google-wifi, google-wifi-api
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/google-wifi-api-node
- Size: 23.4 KB
- Stars: 11
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# google-wifi-api-node
A Node.js wrapper for the Google Wi-Fi API```npm i google-wifi-api-node```
See [this documentation](https://documenter.getpostman.com/view/7490211/SzzdD1pF#intro) for in-depth information about the API in use.
### Requirements
This library requires a refresh token, which can be obtained here: [https://www.angelod.com/onhubauthtool/](https://www.angelod.com/onhubauthtool/)### Example usage
```js
const GoogleWifiApi = require('./index');
const googleWifiApi = new GoogleWifiApi('YOUR REFRESH TOKEN HERE');(async () => {
await googleWifiApi.init();
const groups = await googleWifiApi.getGroups();
const devices = await googleWifiApi.getGroupDevices(groups.groups[0].id)
console.log(devices);
})();
```