Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the Android Authorization Token Type alias list for Google APIs?

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/"
like image 368
Mendhak Avatar asked Mar 11 '12 11:03

Mendhak


1 Answers

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!

like image 93
antonyt Avatar answered Oct 03 '22 23:10

antonyt