可以使用Google Drive API请求访问文档吗?

huangapple go评论61阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2020年9月29日 16:27:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/64115742.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定