Is it get or post? I am confused {"request": "/oau2/ access_token", "error_code": 10021, "error": "HTTP METHOD is not suported for this request! "}, What should post be submitted?
It is Sina's oau2authorization. I have obtained the code, and this problem has been bothering me for a long time...
Reply to discussion (solution)
Post method
It is because your pass-through value is incorrect. it is certainly wrong to compare all the parameters passed by your curl/oau2/ access_token with sina.
Also, sina provides its own example. you can change the example to the interface you need.
It is because your pass-through value is incorrect. it is certainly wrong to compare all the parameters passed by your curl/oau2/ access_token with sina.
Also, sina provides its own example. you can change the example to the interface you need.
I have already met the parameter many times, so I am stuck with it.
Https://api.weibo.com/oauth2/access_token
$ Data = array (
'Grant _ type' => "authorization_code ",
'Client _ id' => WB_APPID,
'Client _ secret' => WB_APPKEY,
'Redirect _ uri '=> WB_CALLBACK,
'Code' => $ _ REQUEST ["code"]
);
10021 invalid request
You got something wrong or expired.
A set of error codes for Sina
I have the same question. how can I use code to get token? do you use android?
How can I solve this problem?