Querying /tags/tag-name/media/recent endpoint, how to avoid private photos

孤街浪徒 提交于 2019-12-02 03:05:38

问题


I'm currently hitting the /tags/tag-name/media/recent end point periodically and saving to my own database some media that match certain criteria. Sometimes, I get a private photo. This means that in my gallery, when I display said images, some of them show up as broken links, because the instagram image server replies 403 forbidden since those images are private.

How can I know which image is private to skip them?

I don't see from the end point response how I can do this.

Thanks!


回答1:


Use client_id instead of access_token to make the /tags/tag-name/media/recent API call, then you should not get any private photos in response.



来源:https://stackoverflow.com/questions/21711879/querying-tags-tag-name-media-recent-endpoint-how-to-avoid-private-photos

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!