阅读Google云端硬盘中公共共享文件的内容 [英] Read content of public shared file in Google Drive
问题描述
应用程序需要读取某人Google Drive中公共共享文件的内容。
我该怎么做?
是否有API来实现这一目标?
这是如何使用通用客户端库获取文件元数据: https://developers.google.com/drive/v2/reference/fil es / get
I am working on a Google Drive application.
The application needs to read the contents of a publically shared file in someone's Google Drive.
How can I do this?
Is there an API to achieve this?
When using the Google Drive API, after setting the ACL of the file to be public you can directly access the file using the webContentLink
attribute of the file metadata which should not require any authentication/authorization when the file is public.
This is a feil metadata example: https://developers.google.com/drive/v2/reference/files#resource
This is how to get the file metadata using common client libraries: https://developers.google.com/drive/v2/reference/files/get
这篇关于阅读Google云端硬盘中公共共享文件的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!