$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://oauth.reddit.com/api/me');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_USERAGENT, ' by /u/' . $username . ' (Phapper 1.0)' );
$headers = array();
$headers[] = 'Authorization: bearer 239929*****';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
print_r($result);
curl_close ($ch);
上面的代码缺少什么?