I need to get a lot of tweets with Twitter PHP API but when i make request it returns that no tweets found. When i looking for tweets but hashtag on site i see a lot of them.
$settings = array(
'oauth_access_token' => "secret",
'oauth_access_token_secret' => "secret",
'consumer_key' => "secret",
'consumer_secret' => "secret"
);
$url = 'https://api.twitter.com/1.1/search/tweets.json';
$getField = '?q=#ifiliveresult_type=recent';
$requestMethod = 'GET';
Yii::import('application.helpers.TwitterAPIExchange');
$twitter = new TwitterAPIExchange($settings);
echo $twitter->setGetfield($getField)
->buildOauth($url, $requestMethod)
->performRequest();
it returns me
completed_in: 0.005
count: 15
max_id: 527874293112512500
max_id_str: "527874293112512512"
query: "%23ifilive"
refresh_url: "?since_id=527874293112512512&q=%23ifilive&result_type=recent&include_entities=1"
since_id: 0
since_id_str: "0"
and empty statuses array.
Maybe twitter have some restrictions of something?