Art-of-WiFi / UniFi-API-browser

Tool to browse data exposed by Ubiquiti's UniFi Controller API
MIT License
1.1k stars 150 forks source link

New method extend_guest_validity plus sample #22

Closed msedv closed 7 years ago

msedv commented 7 years ago

In class.unifi.php I added a new method extend_guest_validity which does the same than the "extend" button in the guest control of the Unifi controller: extending the validity of the guest with the given ID by 1 day.

The renew.php is a really basic sample which:

malle-pietje commented 7 years ago

Thanks for this contribution! I've been considering adding some examples illustrating how to use the API client class so this is a good moment to add some. Give me a couple of days (I'm quite busy ATM) and I'll merge this pull request into master.

malle-pietje commented 7 years ago

Merged. I will change the folder structure with the next commit to move the examples to a separate directory. Thanks!