0
votes

I want to get tweets of my home timeline BUT NOT those tweets which I made as a reply (not retweet) on some other tweet. I crawled the whole Spring Twitter API but could not find a way to check if the Tweet object is a reply to another tweet or at least retrieve only tweets which are NOT a reply.

Tweet Class has those boolean getter:

 boolean    isFavorited() 

 boolean    isRetweet() 

 boolean    isRetweeted() 

Now I do miss a boolean isReply() Does anybody has an idea how to check this or retrieve non-reply tweets?

1

1 Answers

0
votes

EDIT: Using spring-social you can use tweet.getInReplyToUserId() to check if the value is null, in that case, the tweet it's not a reply.

HERE you have all the operations of the Class Tweet.

OLD: You can check the property in_reply_to_screen_name or in_reply_to_status_id for example. If they are null, the tweet it's not a reply.

Here you can see all the properties.