1.0.4 • Published 3 years ago

google-wifi-api-node v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

google-wifi-api-node

A Node.js wrapper for the Google Wi-Fi API

npm i google-wifi-api-node

See this documentation 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/

Example usage

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);
})();
1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago