title: PHP - Use Twitter API 1.1 to search for hashtags
body: <p>I'm trying to find a way to use the main Twitter API to search tweets using PHP.  The latest 1.1 documentation says this should be possible. I DO NOT want to use the <a href="http://search.twitter.com" rel="nofollow">http://search.twitter.com</a> API.  </p>
  
  <p>I've set up a Twitter application and use the consumer, secret etc. keys to connect to it via Abraham's twitteroauth (https://github.com/abraham/).  I can pull out my own timeline and my own bio info from Twitter using this method, but when I try to use the search it fails saying "Query parameters are missing".  </p>
  
  <p>I'm using the following code in a slightly modified test.php from that Git repository:</p>
  
  <pre><code>$parameters = array('q' =&gt; 'qwerty');
  twitteroauth_row('search/tweets', $connection-&gt;get('search/tweets'), $connection-&gt;http_code,$parameters);
  
  /* users/search */
  $parameters = array('q' =&gt; 'brenmurrell');
  twitteroauth_row('users/search', $connection-&gt;get('users/search', $parameters), $connection-&gt;http_code, $parameters);
  
  /* statuses/public_timeline */
  twitteroauth_row('statuses/user_timeline', $connection-&gt;get('statuses/user_timeline'), $connection-&gt;http_code,'q=twitpic');
  </code></pre>
  
  <p>The last two calls work as expected, the first does not. I get a 400 HTTP Error, with the specific API error code of 25 (Query paramaters are missing).</p>
  
  <p>Am I missing something? Can anyone help with where this might be going wrong, or if this is genuinely broken functionality?</p>