Twitter streaming api - how to read retweets

Hey. I have successfully installed the Twitter streaming API. I can read statuses, but I don’t know how to distinguish tweets and retweets.

http://dev.twitter.com/pages/tweet_entities

So my questions are - How do you know this is a tweet / retweet - how can I get a list of user IDs that renamed the original tweet?

thank.

+3
source share
3 answers

{ "retweeted": true } - this is only the case if a user registered in the streaming API retweeted.

See http://blog.programmableweb.com/2010/08/30/twitter-api-adds-retweet-count-and-more/

+2
source

RT, , . Jut track "RT @Jack" "RT @Paul".

0

In JSON you will return from the API, you will receive the following data:

{
    "retweeted":false,
    "text":"Testing streaming api",
    "geo":{...}
}

Just get the value retweetedand you have the answer.

0
source

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


All Articles