Open API Authorized failed error
I have a problem on the open api authorization.
i created an open api in the platform integration.
I tried to login
Logging in is successful it says "Open API TP Cloud Log in successfully" and it provided csrfToken and sessionID
Now the problem here is on obtaining the authorization code. Ive followed the documentation and it gave me an error all the time
"Open API Authorized failed, please check whether the input parameters are legal.","errorCode":-44116"
this is the request sample from the documentation: Omada Open API (tplinkcloud.com)
https://localhost:8043/openapi/authorize/code?client_id=29f2fdbeb5a84d50b9b1cdd08cd1a3ff&omadac_id=de382a0e78f4deb681f3128c3e75dbd1&response_type=code" -H 'content-type:application/json' -H 'Csrf-Token:ae6b935c92cf4b1b9f3eb852e20ed2b8' -H 'Cookie:TPOMADA_SESSIONID=9cb86bf3a99e48a59e4f3bb464a3c443' -X POST -i -k --insecure
I already changed and checked everything, from clientID, omadacID, csrfToken and sessionID, all were correct
and still gives me the same error.
I also tried to use the client mode in the open api platform and still failed to retrieve the authorization code.