简体   繁体   English

从我的应用访问我的Google Drive API

[英]Accessing my Google Drive API from my App

I would like to create a Google Android App and I want my app (ONLY my app and NO ONE ELSE) to have access to my Google Drive API. 我想创建一个谷歌Android应用程序,我希望我的应用程序(只有我的应用程序,没有一个)可以访问我的谷歌驱动器API。 Right now, I published it as public and allowing anonymous connection to access it. 现在,我将其作为公开发布,并允许匿名连接访问它。 Obviously this is very bad. 显然这非常糟糕。 I do not want to make user to Authencate with their account just so my app can access my google drive api. 我不想让用户使用他们的帐户进行Authencate,因此我的应用可以访问我的google驱动器API。 How can I do this? 我怎样才能做到这一点? Thanks 谢谢

Unless I'm not understanding your question. 除非我不理解你的问题。 Google Drive API requires authentication through OAUTH. Google Drive API需要通过OAUTH进行身份验证。 Only people with your google credentials will be able to login to your account. 只有拥有您的Google凭据的人才能登录您的帐户。 For example if I used your application and logged in with my google account it would have access to my drive not yours. 例如,如果我使用您的应用程序并使用我的Google帐户登录,则可以访问我的驱动器而不是您的驱动器。

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

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