text: php - Twitter get status fails with additional parameters - Stack Overflow
  Edit: I answered my own question. I do not know the proper etiquette for indicating this in the original question or just answering and accepting it myself.
  How do I add additional parameters to filter out retweets and replies?
  I tried submitting a question to the twitter dev forums but I think I will get better results also asking it here.
  I have used sample code from this answer to implement a working retrieval of statuses. I want to try and filter out the retweets and replies by using the parameters I saw on the twitter dev api and update the url from
  $url = "https://api.twitter.com/1.1/statuses/user_timeline.json?include_rts=false";
  which returns an error 23 "Could not authenticate you".
  My "guess" is that I shouldn't be including the additional parameters in the base url, but as additional parameters into the oauth array where the sample code was commented out.
  Full Sample code with removed tokens.
  //$url = "https://api.twitter.com/1.1/statuses/user_timeline.json";
  $oauth_access_token = "removed";
  $oauth_access_token_secret = "removed";
  $consumer_key = "removed";
  $consumer_secret = "removed";
  foreach ($twitter_data as $tweet)
  $text = $tweet->text;
  echo $text . "</br></br>";
  php twitter oauth share|improve this question edited Jan 3 '13 at 13:39
  asked Oct 20 '12 at 13:31
  Twitter says the request is a GET request, so putting the parameters in the POST array will probably not give the desired result.
  I agree. I was drawing at straws with that.
  Oct 22 '12 at 13:02
  Right now I am resigned to filter them out programatically after the fact, but saw this post on twitter dev forums and it seems relevant. Same code sample, different direction but similar problem. I'll probably investigate it later. dev.twitter.com/discussions/12242
  I've had the same problem using TwitterOauth on github, I think it's broken at Twitter and they have not admitted it yet
  @Catharsis thanks for the reply. The related question I was looking at had someone comment similarly, and someone has posted an answer, though I haven't been able to investigate it yet. See the answer by lackovic10 that references a comment on the answer posted by Rivers. stackoverflow.com/questions/12916539/…
  So the change is pretty simple. The params don't belong in the main url. The url is just the base url, then the params are added to the oauth array, and the params are additionally added to the url in the $options array.
  Shown with two parameters exclude retweets and replies.
  $oauth = array( 'exclude_replies' => 'true',
  'include_rts' => 'false',
  CURLOPT_URL => $url . '?exclude_replies=true&include_rts=false',
  share|improve this answer answered Dec 27 '12 at 20:49
  THAT was my problem... strange way to send simple parameters. Did not catch that in API documentation