Hi All

I am trying to implement the "retweet" function using the statuses/
retweet/ api. I have encountered a very frustrating problem:

If I am passing the status id inside a variable, it does not work
Not working:

              $parameters = array();
              $url = 'statuses/retweet/'.$sid;
              $rtstring = $twitter->oAuthRequest($url, 'POST', $parameters);

However if I hard-coded the statues id inside the url, it works:

Working:
              $parameters = array();
              $url = 'statuses/retweet/41203690924818432';
              $rtstring = $twitter->oAuthRequest($url, 'POST', $parameters);

I have verified that the $sid does contain the correct id, I am really
confused here. Is there anything special in PHP of handing string and
integer? I am a newbiee to PHP.

Thanks for your help!

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to