0
我正在使用Twitter API 1.1,並且正在獲取用戶的推文。如何在費率限制超過後撤銷Twitter API請求?
我使用此代碼
<?php
$url = "https://api.twitter.com/1.1/statuses/user_timeline.json";
$requestMethod = "GET";
$cursor = isset($cursor) ? $cursor : "-1";
$getfield = "?cursor=" . $cursor . "&user_id=" . $user . "&count=10";
$twitter = new TwitterAPIExchange($settings);
$string = $twitter->setGetfield($getfield)
->buildOauth($url, $requestMethod)
->performRequest();
$tweets = json_decode($string, 1);
echo '<pre>';print_r($string);echo '</pre>';
?>
是否有particualr請求,這樣我就可以重新排隊我的函數從最後收到的ID開始下一個請求後才能收到since_id方式?
例如:在一個請求中,我獲取0-1000條記錄,在我的下一個請求中,我希望從第1001條記錄開始。
這是可能在推特?