Android で Google Play サービスを使用して、Google API と Google クラウド エンドポイントにアクセスしています。また、Google Play Services からのトークンを使用して、appengine User API にアクセスすることもできます。これは可能ですか?このリンクに OAuth のサンプル コードがいくつかありますが、少しあいまいです。ヘッダーに oauth トークンを渡して、以下のコードでユーザーを取得できますか??
User user = null;
try {
OAuthService oauth = OAuthServiceFactory.getOAuthService();
user = oauth.getCurrentUser();
} catch (OAuthRequestException e) {
// The consumer made an invalid OAuth request, used an access token that was
// revoked, or did not provide OAuth information.
// ...
}