title: twitter api 1.1 - returning NULL
body: <p>I am trying to use Twitters API in order to retrieve a list of hashtagged results - it used to be quite easy because their was no need for authentication but now its become tricky for me...</p>
  
  <p>I have followed this post <a href="https://stackoverflow.com/questions/12916539/simplest-php-example-for-retrieving-user-timeline-with-twitter-api-version-1-1/15314662#_=_">https://stackoverflow.com/questions/12916539/simplest-php-example-for-retrieving-user-timeline-with-twitter-api-version-1-1/15314662#<em>=</em></a></p>
  
  <p>But when i load my page it just displays NULL - i am sure i have done every thing correct</p>
  
  <p>Notice - The PHP file below is in the same directory as the file TwitterAPIExchange</p>
  
  <p>Help would be appreciated thanx</p>
  
  <pre><code>&lt;?php
  ini_set('display_errors', 1);
  require_once('TwitterAPIExchange.php');
  
  /** Set access tokens here - see: https://dev.twitter.com/apps/ **/
  $settings = array(
      'oauth_access_token' =&gt; "xxxxx",
      'oauth_access_token_secret' =&gt; "xxxxx",
      'consumer_key' =&gt; "xxxxx",
      'consumer_secret' =&gt; "xxxxx"
  );
  
  $url = 'https://api.twitter.com/1.1/statuses/user_timeline.json';
  $getfield = '?screen_name=j7mbo';
  $requestMethod = 'GET';
  
  $twitter = new TwitterAPIExchange($settings);
  $response = $twitter-&gt;setGetfield($getfield)
                      -&gt;buildOauth($url, $requestMethod)
                      -&gt;performRequest();
  var_dump(json_decode($response));
  ?&gt;
  </code></pre>