feedbin / feedbin-api

Feedbin API Documentation
349 stars 26 forks source link

Indicate when a tweet entry is a retweet of someone elses tweet, as opposed to an original tweet #29

Open equivalentideas opened 5 years ago

equivalentideas commented 5 years ago

In my application, I need to handle retweets and original tweets differently. It seems like the best way to identify a retweet at the moment is to see if the content includes the 'Retweeted by Handle' string with a pattern like like (\<small\>Retweeted by )\w+(\<\/small\>). But this isn't super reliable because it could appear in the content otherwise, and if the feedbin markup changes it will break.

Would an appropriate solution be for the entry object to declare if this tweet is a retweet or not with something like an is_retweet Boolean?

TimCadieux commented 4 years ago

I have this same requirement. The FeedBin interface clearly shows "Retweeted By X" but the API appears to not pass this information on?