简体   繁体   English

来自服务器的Google Drive API访问文件

[英]Google Drive API access files from Server

I want to build an Android Application in which the user gives permission to my server-side script to read their files. 我想构建一个Android应用程序,其中用户向我的服务器端脚本授予读取其文件的权限。

Seems pretty straight-forward, I've made an app where the application can access the user's files. 看起来很简单,我制作了一个应用程序,该应用程序可以访问用户的文件。

However, giving access to the server is a lot harder, thanks to OAuth2.0 which has me confused as hell. 但是,由于OAuth2.0使我无法自拔,因此授予服务器访问权限变得更加困难。

Is it even possible to build what I want, and if so, how can I achieve this? 甚至有可能构建我想要的东西,如果是,我如何实现呢? Links to tutorials are also accepted. 也接受教程的链接。

This is the library I used at a previous job and it saved me a lot of the hassle in dealing with the Google API directly. 这是我在上一份工作中使用的 ,它为我省去了很多直接处理Google API的麻烦。 Just be sure to follow the authentication part carefully as you need the .ovpn file in order to access your drive. 只需确保仔细遵循身份验证部分,因为您需要.ovpn文件才能访问驱动器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM