Twitter API

by 2 replies
3
Im trying to get a list of people who have retweeted a particular post.

Im using twitteroauth by Abraham,

I tried:

$result=$connection->post('statuses/retweeters/', array('id' => '413808254385278976'));

$result2=$connection->post('statuses/retweeters/413808254385278976');

Neither work, both return error 34 'page does not exist'

Any assistance would be great.
#programming #api #twitter
  • If you are on 1.1, try using "retweets":

    $result3=$connection->post('statuses/retweets/413902063303921664');

    The URL for which was:

    https://api.twitter.com/1.1/statuses...303921664.json
    • [ 1 ] Thanks
  • That was it, I was reading old docs and didnt even realize it. Never could understand why sites keep there old docs online. Thank you,

Next Topics on Trending Feed