Replies to a particular tweet, Twitter API

后端 未结 11 2041
北荒
北荒 2020-11-28 02:19

Is there a way in the Twitter API to get the replies to a particular tweet? Thanks

11条回答
  •  时光取名叫无心
    2020-11-28 03:05

    From what I understand, there's not a way to do that directly (at least not now). Seems like something that should be added. They recently added some 'retweet' capabilities, seem logical to add this as well.

    Here's one possible way to do this, first sample tweet data (from status/show):

    
      Tue Apr 07 22:52:51 +0000 2009
      1472669360
      At least I can get your humor through tweets. RT @abdur: I don't mean this in a bad way, but genetically speaking your a cul-de-sac.
      TweetDeck
      false
      
      
      false
      
      
        1401881
         ...
    

    From status/show you can find the user's id. Then statuses/mentions_timeline will return a list of status for a user. Just parse that return looking for a in_reply_to_status_id matching the original tweet's id.

提交回复
热议问题