新浪微博登陆

浏览:1197 发布日期:2015/07/16 分类:求助交流 关键字: php
=====post data====== string(206)
"client_id=3216019551&client_secret=aab7a2xxxxx2febf66bf
&grant_type=authorization_code
&code=a2960248100209b778202fcdc565df1d
&redirect_uri=http%3A%2F%2Fwww.mayi121.com%2Fmember%2Foauth%2Fsinalogin"
=====info=====
Array (
[url] => https://api.weibo.com/oauth2/access_token
[content_type] =>
[http_code] => 400
[header_size] => 217
[request_size] => 442
[filetime] => -1
[ssl_verify_result] => 20
[redirect_count] => 0
[total_time] => 0.016
[namelookup_time] => 0
[connect_time] => 0
[pretransfer_time] => 0.016
[size_upload] => 206
[size_download] => 194
[speed_download] => 12125
[speed_upload] => 12875
[download_content_length] => -1
[upload_content_length] => 0
[starttransfer_time] => 0.016
[redirect_time] => 0
[request_header] => POST /oauth2/access_token HTTP/1.0
User-Agent: Sae T OAuth2 v0.1 Host: api.weibo.com Accept:
*/* Accept-Encoding: deflate, gzip API-RemoteIP: 123.120.177.255
Content-Length: 206 Content-Type: application/x-www-form-urlencoded )
=====$response=====
{"error":"invalid_grant",
"error_code":21325,
"request":"/oauth2/access_token",
"error_uri":"/oauth2/access_token",
"error_description":"invalid authorization code:a2960248100209b778202fcdc565df1d"}
发给新浪的数据正确但是返回无效授权
最佳答案
评论( 相关
后面还有条评论,点击查看>>