토큰값을 받은후에 사용자 정보를 요청 하면 오류가 발생합니다.
사용자 정보 요청하는 코드는 아래와 같이 되어있습니다.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $this->profile_url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authrization: Bearer '.$this->access_token));
$json = curl_exec($ch);
curl_close($ch);
if($json){
return json_decode($json);
}
결과 값이 나오지 않아 json_decode 을 빼고 출력하면
Request Entity Too Large
The requested resource
/v1/user/me
does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit. 400
이렇게 메세지가 나옵니다… 이럴경우 어떻게 하면 될까요…ㅠㅠ