OP 11 September, 2021 - 08:23 PM
(This post was last modified: 11 September, 2021 - 09:47 PM by midwxst.)
I get 403 error, I am sure because of the post data.
The post data looks like this: grant_type=client_credentials
tried:
var res = request.Post(url, "{grant_type=client_credentials}", "application/x-www-form-urlencoded");
var res = request.Post(url, grant_type=client_credentials, "application/x-www-form-urlencoded");
var reqParams = new RequestParams();
reqParams["grant_type"] = "client_credentials";
var res = request.Post(url, reqParams, "application/x-www-form-urlencoded");
Edit: It was a fucking letterspace in the authentication code
The post data looks like this: grant_type=client_credentials
tried:
var res = request.Post(url, "{grant_type=client_credentials}", "application/x-www-form-urlencoded");
var res = request.Post(url, grant_type=client_credentials, "application/x-www-form-urlencoded");
var reqParams = new RequestParams();
reqParams["grant_type"] = "client_credentials";
var res = request.Post(url, reqParams, "application/x-www-form-urlencoded");
Edit: It was a fucking letterspace in the authentication code