使用 Flickr API 了解照片何时被删除
在我的应用程序中,我必须运行一项定期作业,其中需要有关客户 Flickr 帐户上所有照片的数据。目前,我对 flickr.photos.search 执行多次调用,以每次检索有关所有照片的元数据。 我想问的是:有没有一种方法可以在照片被修改或删除时得到 Flickr 的通知,这样我就不需要检索每张照片的元数据,而是存储一次主题,并且只下载自此以来发生更改的内容我上次运行该作业是什么时候? 提前感谢您的帮助。
In my application, I have to run a periodical job where I need data about all the photos on my client's Flickr account. Currently, I perform several calls to flickr.photos.search to retrieve meta about all the photos each time.
What I ask is: is there a way to be get informed by Flickr when a photo is modified or deleted, so that I don't need to retrieve metas for each photos, but rather store theme once, and only download what has changed since the last time I run the job ?
Thx in advance for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Flickr API 不可能向您的代码发送此类通知。
另一方面,您可以做的是(仅在照片元数据更改量很大时才推荐) -
设置一个 cron 作业,该作业将扫描照片并存储照片 ID 是否被删除 - 稍后可以使用。
There is no such notification possible from the Flickr API to your code.
What you can do on the other hand is (recommended only if volume for change of photo metadata is high) -
Setup a cron job which would scan through the photos and store if the photo id's are deleted or not - which can be used later.