查询/tags/tag-name/media/recent端点,如何避免私人照片 [英] Querying /tags/tag-name/media/recent endpoint, how to avoid private photos
问题描述
我目前正在定期访问/tags/tag-name/media/recent端点,并将一些符合特定条件的媒体保存到我自己的数据库中.有时,我会得到一张私人照片.这意味着在我的画廊中,当我显示上述图像时,其中一些显示为断开的链接,因为instagram图像服务器回复403,因为这些图像是私人的,因此被禁止.
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.
谢谢!
推荐答案
使用client_id
而不是access_token
进行/tags/tag-name/media/recent
API调用,那么您不应获得任何私人照片作为响应.
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.
这篇关于查询/tags/tag-name/media/recent端点,如何避免私人照片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!