OPEN API 2.2.1.1 redirect URL not specified documentation...
omada version - 5.15.24.17
I am trying to follow the open-api 2.2.1 Login Authentication & Obtain Authorization Code flow.
When i make this request.. with my data..
curl "https://localhost:8043/openapi/authorize/login?client_id=38f2d1b616434374b3f3215246f39940&omadac_id=beed48c7a2b0ea97c9698408843119f3" -H 'content-type:application/json' -d '{"username":"admin","password":"tplink123"}' -X POST -i -k --insecure
i am getting this error.
An unexpected error occurred: Call to /openapi/authorize/login failed: API Error -44106: The Client Id Or Client Secret is Invalid.
Is the documentation incorrect?
When i create an authorization code mode in the controller it does give me client id and a client secrete. but the docs don't have the secret as part of the curl command..
Using the WEB-API i am able to login and get results back.. but i want to only use the open-api flow for my lib.
Thoughts.. Docs out of date?
Thanks