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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With