I am trying to use the Twitter API to fetch n
tweets by a user that occurred BEFORE a particular tweet by that same user and n
tweets that occurred AFTER. For example, if I know of a particular tweet t
by user u
, then for n = 50
, I want to fetch the 50 tweets that led up to t and the 50 that occurred right after t
. GET statuses/user_timeline
lets me fetch tweets for a user from their timeline and I suppose I could use max_id
to specify the ID
of tweet t
such that the 50 prior to t would be fetched, but I can't figure out how to get the 50 that followed t
. since_id, obviously, won't help.
Is this even possible? If so, how should I go about it?
Thanks.