Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Underscore Hashtags in get field, ie: #india_india, Statues array return empty #275

Open
kumarrishikesh12 opened this issue Feb 12, 2019 · 0 comments

Comments

@kumarrishikesh12
Copy link

kumarrishikesh12 commented Feb 12, 2019

<?php 
include("TwitterAPIExchange.php");

         $accesstoken = 'bla bla';
         $accesstokensecret =  'bla bla';
         $consumerkeyapikey =  'bla bla';
         $consumersecretapikey =   'bla bla';

$hashtags = '#india_india';
$url = 'https://api.twitter.com/1.1/search/tweets.json';
$getfield = '?q='.$hashtags.'&count=50'; //30hashtag post defined
$requestMethod = 'GET';
$twitter = new TwitterAPIExchange($settings);
$tweest_json = $twitter->setGetfield($getfield)->buildOauth($url,$requestMethod)->performRequest();
$tweets = json_decode($tweest_json, true);

echo $tweest_json;
die();

//it's showing me an blank array, 
//if i am using only single value with hash sign its showing me data. ie:  **$hashtags = '#india';**

?>



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant