英文:
Is it possible to request access to a document using Google Drive API?
问题
我正在使用经过授权的请求与 Google Drive API(通过 Java 客户端)进行交互。当我尝试下载一个我无权访问的文件时,返回文件未找到的错误。是否有可能通过经过授权的帐户通过 Google Drive API 请求访问权限?
英文:
I'm using the Google Drive API (via Java client) with authorized requests. When I tried to download a file which I don't have access to, it returns file not found. Is it possible to request access using the authorized account via Google Drive API?
答案1
得分: 3
翻译:
Drive API没有提供一种方法来请求访问文件的权限。获取访问权限的唯一方式是访问文件的URL并点击“请求访问”按钮,或直接向文件的所有者请求权限。
英文:
Answer:
There is no method of the Drive API that allows you to ask for permission for access to a file. The only way of obtaining the access is by visiting the URL of the file and pressing the Request access
button, or directly asking the owner of the file.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论