title: Can't get latest tweets using Twitter API 1.1 and PHP
body: <p>I'm trying to get the latest tweets from a particular user using PHP and CURL and the new 1.1 API, I created my new App in the twitter website and went to the OAuth tool tab to generate the signature and according to the page it generates the following curl command:</p>
  
  <pre><code>curl --get 'https://api.twitter.com/1.1/statuses/user_timeline.json?count=2&amp;screen_name=twitter' --header 'Authorization: OAuth oauth_consumer_key="Waqd223QDuge6l9UboBldg", oauth_nonce="8a9beae863838b0ba2bc6ac03bc9757e", oauth_signature="u2PrZ5g14HGb39pHoYl9azHp6vg%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1355408402", oauth_token="171967067-lyLujNed9QyVBfmlfAkFXiUt5KIQkqrCMwg6utFc", oauth_version="1.0"'
  </code></pre>
  
  <p>Which works fine in my terminal, however when I try to replicate it in PHP I get a "Could not authenticate you" error, this is what I have so far:</p>
  
  <pre><code>$options = array(
      URLOPT_HTTPHEADER      =&gt; array('Authorization: OAuth oauth_consumer_key="Waqd223QDuge6l9UboBldg", oauth_nonce="8a9beae863838b0ba2bc6ac03bc9757e", oauth_signature="toLnir5cHUUvEj8X29SdzjlOTXc%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="' . time() . '", oauth_token="171967067-lyLujNed9QyVBfmlfAkFXiUt5KIQkqrCMwg6utFc", oauth_version="1.0"'),
      CURLOPT_HEADER         =&gt; false,
      CURLOPT_URL            =&gt; 'https://api.twitter.com/1.1/statuses/user_timeline.json?count=2&amp;screen_name=twitter',
      CURLOPT_RETURNTRANSFER =&gt; true,
      CURLOPT_SSL_VERIFYPEER =&gt; false
  );
  
  $feed = curl_init();
  curl_setopt_array($feed, $options);
  $json = curl_exec($feed);
  curl_close($feed);
  
  $twitter_data = json_decode($json);
  
  var_dump($twitter_data);
  </code></pre>
  
  <p>The only thing I'm changing is the <code>oauth_timestamp</code> where I use the <code>time()</code> function to get the current time, I figure I must be passing the wrong options to the curl function but I can't figure it out.</p>
  
  <p>Thanks in advance.</p>