-
Hi, As mentioned I am working on a much smaller code than this full library is and where I am stuck is to block a device. I am encoding the device into the a JSON via Where obviously I am using $Command = "block-sta"; I am doing a To be followed by and always end up with the error It seems I am too stupid to whether compose the URL or encode the JSON object. I have spent hours looking at the code you guys build and I am not able to get mine working. Again - fully understood if you cannot help me here, but I am stuck on this topic ... when I cal the URL in the browser, I am also getting a {"meta":{"rc":"error","msg":"api.err.NotFound"},"data":[]} Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
and without the trailing slash ? |
Beta Was this translation helpful? Give feedback.
-
I GOT IT WORKING :-) The thing which had been missing was the XSRF Token handling. If this is not around, the whole thing does not work. I think I have not had a single module consuming so much time to understand the APIs etc. Really impressed how the Unifi Client was developed by the Art of WIFI - without it, NO way I would have been able to understand how it all works. |
Beta Was this translation helpful? Give feedback.
-
CloudKey firmware updates with these changes came a long time after the UDMs were introduced. |
Beta Was this translation helpful? Give feedback.
I GOT IT WORKING :-)
The thing which had been missing was the XSRF Token handling. If this is not around, the whole thing does not work. I think I have not had a single module consuming so much time to understand the APIs etc.
Really impressed how the Unifi Client was developed by the Art of WIFI - without it, NO way I would have been able to understand how it all works.