Pulling Retweets using Twitter user_timeline in JSON format

I am currently using a script ..

http://twitter.com/statuses/user_timeline/username.json?callback=twitterCallback2&count=1

.. to pull out the last tweet for multiple users to display on my site. However, I ran into a problem that the JSON format does not display Retweets. I read from this link that you should use "retweeted_by_me" to also display Retweets, I'm not quite sure how I would combine this with my current script.

+1
source share
3 answers

GET status/user_timeline, , , include_rts, true, .

0

Change response modeto rss . This will solve the problem. This may require changing the display code depending on your scripting language.

0
source

Source: https://habr.com/ru/post/1780179/


All Articles