问题描述
有没有办法让一次调用一次搜索多个mimeType?例如,我试图找到一个文件夹中的所有mp3文件。看起来你需要为每个单独的mimeType调用以找到所有不同的类型,类似于这样:
'audio / mpeg'
'audio / mpeg3'
' audio / mp3'
有没有办法在一个查询中包含多个mimeTypes?这样做效率非常低。
谢谢。
是的你可以像这样:
$ b $ pre $ (mimeType ='audio / mpeg'或mimeType ='audio / mpeg3'或mimeType ='audio / mp3')
Is there a way to make one call to search for multiple mimeTypes at once? For example, I'm trying to find all mp3 files in a folder. It seems like you need to make a call for each individual mimeType to find all the different ones, similar to this:
https://www.googleapis.com/drive/v2/files?key=aaamykeyaaa&q=mimeType='audio/mpeg'https://www.googleapis.com/drive/v2/files?key=aaamykeyaaa&q=mimeType='audio/mpeg3'https://www.googleapis.com/drive/v2/files?key=aaamykeyaaa&q=mimeType='audio/mp3'
Is there no way to include multiple mimeTypes in one query? It's very inefficient to do it this way.
Thanks.
Yes you can, like this:
(mimeType = 'audio/mpeg' or mimeType = 'audio/mpeg3' or mimeType = 'audio/mp3')
这篇关于Google Drive API - 列出多个MIME类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!