Hi, I wanted to get all user media, especially images, that posted by the current logged in user. We can do that by using
statuses/user_timeline api, and then we can filter which post is an image. As I know, that API currently limited up to 200 posts response per request. In some cases, it maybe can contain some post that is an image, or in worst case, there’s no image in that 200 posts.
If there’s an user, that rarely tweeting image, and he/she only tweeting image after 2000 posts, how to handle that? Am I must request to that api 10 times, or there’s a simple solution? If I must request 10 times, then I must digging into all of he/she post to get all image, isn’t it?
Thank you before.
edit: Also, we can use the
search/tweets.json and use
filter:images. But if that user’s tweet is private, the
statuses entity always empty.
Correct me if I’m wrong.