哪里是Android的授权令牌类型别名列表为谷歌的API? [英] Where is the Android Authorization Token Type alias list for Google APIs?

查看:161
本文介绍了哪里是Android的授权令牌类型别名列表为谷歌的API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在以下教程使用OAuth 2的Andr​​oid的AccountManager,我被告知指定AUTH_TOKEN_TYPE的时候,而不是指定的范围是这样的:

 字符串AUTH_TOKEN_TYPE =oauth2如下:https://www.googleapis.com/auth/tasks;
 

您可以使用它的别名:

 字符串AUTH_TOKEN_TYPE =管理您的任务;
 

这使得用户能够了解什么权限是大约而不是给出一个网址。我试图找出别名会是怎样的谷歌文档列表API。

该文件还指出了身份验证令牌别名的列表,不幸的是不存在的。还有一个相关的YouTube视频在开发商提到了谷歌巴兹别名,还介绍了别名的列表将设立在某些时候。

我可以使用的谷歌文档的范围是什么呢?

 字符串AUTH_TOKEN_TYPE =oauth2如下:https://docs.google.com/feeds/
 

解决方案

我发现该名单中似乎包含可能的别名身份验证令牌类型,各种谷歌服务:的 HTTP://$c$c.google.com/intl/ja/apis/gdata/faq.html#的ClientLogin

虽然这不是特别人性化,好像你可能能够使用'的Writely的别名检索的文件列表。一个谷歌搜索 AUTH_TOKEN_TYPEWritely的'=; 返回一些结果,这看起来很有希望

While following this tutorial on using OAuth 2 with the Android AccountManager, I'm told that when specifying the AUTH_TOKEN_TYPE, instead of specifying the scope like this:

String AUTH_TOKEN_TYPE = "oauth2:https://www.googleapis.com/auth/tasks";

you can use its alias:

String AUTH_TOKEN_TYPE = "Manage your tasks";

This allows for a user to understand what the permissions are about instead of being given a URL. I am trying to figure out what the alias would be for the Google Documents List API.

The document then points to a list of auth token aliases, which unfortunately does not exist. There is also a related Youtube video in which the developer mentions a Google Buzz alias and also mentions that a list of aliases will be set up at some point.

What can I use instead of the Google Docs scope?

String AUTH_TOKEN_TYPE = "oauth2:https://docs.google.com/feeds/"

解决方案

I found this list which seems to contain possible aliases for the auth token type for various Google services: http://code.google.com/intl/ja/apis/gdata/faq.html#clientlogin

Although it is not particular user-friendly, it seems like you may be able to use 'writely' as the alias for retrieving the documents list. A Google search for AUTH_TOKEN_TYPE = 'writely'; returns a few results, which looks promising!

这篇关于哪里是Android的授权令牌类型别名列表为谷歌的API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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