finish06 / pyunifi

https://unifi-sdn.ubnt.com/
MIT License
223 stars 100 forks source link

Fix api login to post parameters as json #31

Closed makuser closed 5 years ago

makuser commented 5 years ago

Fixes #29.

finish06 commented 5 years ago

@makuser - I will work on this over the holiday break.

makuser commented 5 years ago

@finish06 sorry, maybe I wasn't clear enough... This is all you need to do to fix it. Just merge it and the issue #29 is fixed. Even though I said I won't have the time to fix it, I did create this patch and fixed the bug.

Complying with the JSON standard is the right thing IMO...

This is really just two lines I changed.

All the rest are just cosmetic changes (v2/v3 -> v5 as default params).

finish06 commented 5 years ago

Thank you for the commit. Merging now and will repackage for PyPi soon.