使用谷歌驱动器API访问我自己的“公共”文件夹android / iOS [英] Using google drive API to access my own "public" folder android/iOS

查看:96
本文介绍了使用谷歌驱动器API访问我自己的“公共”文件夹android / iOS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Google Drive帐户,希望某个组织内的人员能够以编程方式上传文件,并且尽可能隐身。正如我沿着谷歌驱动器SDK教程一样,我似乎无法找到任何关于将文件直接上传到我的驱动器帐户的任何信息。所有的教程似乎都在讨论允许用户上传文件到自己的帐户。另一个问题是,他们似乎都需要一些用户权限(我不想)。

I have a google drive account that i want people within a certain organization to be able to upload files to programmatically, and also as invisible as possible. as i'm following along the google drive SDK tutorials, i can't seem to find anything about uploading a file directly to MY drive account. all the tutorials seem to be talking about allowing users to upload a file to their own account. The other problem is that they seem to all require some user permission (which i don't want).

这个想法是 - >约100 ppl(非常受控制谁有权访问)有一个特殊版本的Android / iOS版本,对于这些人,我想定期对他们如何使用应用程序的某些截图进行抽样。我能够将屏幕截图文件保存到本地设备上;不过,我想要在这些文件上查看半公开来源。所以我建立了一个谷歌账户,以便我可以接受这些截图进入我的账户。但是,我不希望用户必须接受任何权限,或者使用他们自己的帐户。理想情况下,最后,我可以将我的驱动器帐户文件夹(包含这些屏幕截图)与我选择分享的人共享。

the idea is this -> there's about 100 ppl (very controlled on who gets access) that have a special build of an android/iOS build, and for these people, i want to periodically sample certain screenshots of how they use the app. i'm able to save the screenshot files to their device locally; however, i want a "semi-public" source of viewing on these files. so i've set up a google drive account so that i can accept these screenshots in to my account. however, i don't want the users to have to accept any permissions, or use their own account. Ideally, at the end, i can share my drive account folder (with these screenshots) with people that i select to share it with.

这甚至可能吗?如果是这样,我该怎么做?

Is this even possible? If so, how do i do this?

推荐答案

Android的Drive API仅支持授权当前用户,但如果您使用Google API Java客户端可以访问Drive API,您可以使用该应用程序为您的帐户存储凭据,并将其用于您的应用的所有用户。详细了解授权和Java客户端此处

The Drive API for Android only supports authorizing the current user, however if you use the Google APIs Java client instead to access the Drive API you can store credentials for your account with the application and use those for all users of your app. Read more about authorization and the Java client here.

这篇关于使用谷歌驱动器API访问我自己的“公共”文件夹android / iOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆