Hi Delian, first of all, thank you for your effort to create the scripts related unifi. Unfortunately Ubiquiti looks lazy to do that.
I can able to connect and send API commands via the cloud to my controllers which version is 5.6.22 but I have other two controllers with 5.9.29 version number and they don't work anymore. After some sniffing, it looks Ubiquiti was changed login URLs.
That url doesn't show on my traffic logs when I accessing to 5.9.x controller from the web browser. Instead of I see this URL to authorize with OAuth mechanism.
To clarify the problem I added the debug log from your script. As I said, 5.6.x controllers in the same account and works properly with the same script.
Hi Delian, first of all, thank you for your effort to create the scripts related unifi. Unfortunately Ubiquiti looks lazy to do that.
I can able to connect and send API commands via the cloud to my controllers which version is 5.6.22 but I have other two controllers with 5.9.29 version number and they don't work anymore. After some sniffing, it looks Ubiquiti was changed login URLs.
https://device-airos.svc.ubnt.com/api/airos/v1/unifi/turn/creds?username=xxx
That url doesn't show on my traffic logs when I accessing to 5.9.x controller from the web browser. Instead of I see this URL to authorize with OAuth mechanism.
https://sso.ubnt.com/oauth2/authorize?client_id=xx
To clarify the problem I added the debug log from your script. As I said, 5.6.x controllers in the same account and works properly with the same script.
Thanks in advance !