unpoller / unifi

Go Library (w/ structures) to grab data from a Ubitquiti UniFi Controller
https://golift.io/discord
MIT License
114 stars 22 forks source link

Add sites support. This changes the interface. #5

Closed davidnewhall closed 5 years ago

davidnewhall commented 5 years ago

This contribution adds a method GetSites() and updates the GetClients() and GetDevices() methods to accept a list of sites to poll for data. This is an interface change; the major version number will be incremented.

Tested on a controller with only one site; so thorough. Seems to work!