query dropbox API 按元数据搜索文件

query dropbox API to search files by metadata

我需要在我的元数据中通过特定 "tag" 搜索 Dropbox 图像文件。

所以,例如,我有猫的照片,元数据将是

catColor, catSize, catName

我可以将图像查询到 return 所有

的照片吗

catColor = Black

这可能吗?

Dropbox API 确实提供了通过使用 "file properties" 功能在文件上设置自定义元数据的功能:

https://www.dropbox.com/developers/documentation/http/documentation#file_properties

例如,您将首先定义一个 属性 模板,例如,使用 'catColor'、'catSize' 和 'catName' 字段,使用:

https://www.dropbox.com/developers/documentation/http/documentation#file_properties-templates-add_for_user

然后,您可以使用以下方法将该模板的值添加到特定文件:

https://www.dropbox.com/developers/documentation/http/documentation#file_properties-properties-add

然后您可以稍后根据这些值搜索文件,使用:

https://www.dropbox.com/developers/documentation/http/documentation#file_properties-properties-search

顺便说一句,这些是指向 HTTPS 端点本身的文档的链接,但我们建议尽可能使用官方 SDK 之一:

https://www.dropbox.com/developers/documentation

那些有相应的 HTTPS 端点的本机方法。