我想从twitter api获取所有收到的消息,但响应时得到空对象。我使用Twitter for PHP库,这就是我的代码
$twitter = new Twitter($CONSUMER_KEY, $CONSUMER_SECRET, $access_token, $access_token_secret);
$statuses = $twitter->request("direct_messages/events/list", "GET");
print_r($statuses);
响应为空对象
stdClass Object([events] => Array())