我写了这段代码:
$twitterObj->setToken($_SESSION['ot'], $_SESSION['ots']);
$twitterFriends=$twitterObj->get_friendsIds(array('screen_name' => $_SESSION['username']));
$twitterFriends->response;
echo $twitterFriends->responseText;
foreach($twitterFriends as $friend) { echo $friend->id; }
但我明白了:
{"errors":[{"code":37,"message":"Not authorized to use this endpoint"}]}
为什么? 我怎样才能得到朋友/以下的ids?