【发布时间】:2018-10-13 20:52:50
【问题描述】:
我们如何使用 google drive list file API "GET https://www.googleapis.com/drive/v3/files" 使用 google drive API 密钥而不使用 Google OAuth2.0
【问题讨论】:
-
您可以通过 API 密钥使用 drive.files.list,例如
https://www.googleapis.com/drive/v3/files?key={YOUR_API_KEY}。但有些事情它可以做,有些事情它不能。比如文件列表不能直接使用API key获取,如果要获取文件夹中的文件列表,可以使用https://www.googleapis.com/drive/v3/files?key={YOUR_API_KEY}&q='folderId'+in+parents获取。在这种情况下,需要共享文件夹。如果此信息对您的情况没有帮助,很抱歉。
标签: google-api google-drive-api google-apis-explorer