简体   繁体   English

Android应用中Google云端硬盘的“AuthTokenType”值是多少?

[英]What is the “AuthTokenType” value for Google Drive on an Android app?

What should I use as the "AuthTokenType" value to request access to a user's Google Drive from an Android application? 我应该使用什么作为“AuthTokenType”值来请求从Android应用程序访问用户的Google云端硬盘?

For example, here are some AuthTokenType values for other services: What is "authTokenType" parameter in Google data API? 例如,以下是其他服务的一些AuthTokenType值: Google数据API中的“authTokenType”参数是什么?

I intend to use the provided Java Client API for interfacing with Google Drive, ie: http://code.google.com/p/google-api-java-client/wiki/APIs#Drive_API 我打算使用提供的Java客户端API与Google云端硬盘接口,即: http//code.google.com/p/google-api-java-client/wiki/APIs#Drive_API

ClientLogin is now officially deprecated, so you should use OAuth. ClientLogin现已正式弃用,因此您应该使用OAuth。 The scope is listed as https://developers.google.com/drive/register on the SDK reference . 该范围在SDK 参考上列为https://developers.google.com/drive/register However, apparently you need to register your app in the Chrome Web store, so it seems only Web apps are currently supported, and it is very likely that you cannot use it from an Android app (yet). 但是,显然您需要在Chrome网上应用商店中注册您的应用,因此目前只支持Web应用,并且您很可能无法在Android应用中使用它。 Do post here if you manage to get it working. 如果你设法让它运作,请发布在这里。

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

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