I need to get an oauth token from within an android app that will allow me to connect to my appengine application as well as be able to send emails from the user's account. The problem I've run into is that for some reason there is not really any good documentation on the auth token scopes that are available.
From what I've found you can concat the auth tokens with a space delimeter but I'm having no luck.
accountManager.getAuthToken(account, "oauth2:https://mail.google.com/", null, activity, new AuthTokenCallback(), null);
works just fine to get an email token.
Likewise
accountManager.getAuthToken(account, "ah", null, activity, new AuthTokenCallback(), null);
works great for an app engine token.
However
accountManager.getAuthToken(account, "oauth2:https://mail.google.com/ ah", null, activity, new AuthTokenCallback(), null);
gets me into an error
Couldn't sign in,
There was a problem communicating with Google servers
Try again later
How can I get these two to work together like good little well behaved Google services?