1
csensix OP 贴出出错这部分的代码($code是上一步获取到的):
$uri='https://www.douban.com/service/auth2/token'; $data=array( 'client_id'=>APIKEY, 'client_secret'=>SECRET, 'redirect_uri'=>CALLBACK, 'grant_type'=>'authorization_code', 'code'=>$code ); $ch = curl_init (); curl_setopt ( $ch, CURLOPT_URL, $uri ); curl_setopt ( $ch, CURLOPT_POST, 1 ); curl_setopt ( $ch, CURLOPT_HEADER, 0 ); curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, 1 ); curl_setopt ( $ch, CURLOPT_POSTFIELDS, $data ); $json = curl_exec ( $ch ); curl_close ( $ch ); |
2
konakona 2015-10-09 16:09:56 +08:00
有啊有啊,我刚刚也遇到 403 了。
之前我开发的时候没遇到,上线后用也没有。 直到几个月后,刚刚有人跟我说登陆不了,我去看,尼玛 403 !?吓尿..这个我可真解决不了了哇.. |