I have a list of twitter user_ids. I want to get the most recent tweet of each of them.
There is a search/tweet.json api in which you can give multiple user ids separated by OR as follows:
https://api.twitter.com/1.1/search/tweets.json?q=from%3ATwitterEng%2BOR%2Bfrom%3ATwitter&result_type=recent
This query finds the recent tweets from TwitterEng or Twitter user_ids.
Now, there is a possibility that the API returns only the tweets from TwitterEng since those were more recent.
How do I ensure that I get one tweet from both the users?
There is the user_timeline API that will give the tweet for the given user_id. But I have a lot of user_ids and cannot make calls to this API for all those ids.
Is there a way of achieving this?
Thanks in advance for your replies