title: Oauth on Appengine with Google Play services
body: <p>I'm using Google play services on Android to get access to Google Apis and Google cloud Endpoints.  I would also be able to get access to the appengine User api using a token from Google Play Services.  Is this possible?  There is some sample code at this <a href="https://developers.google.com/appengine/docs/java/oauth/overview" rel="nofollow">link</a> for OAuth, but is a little vague.  Can I pass the oauth token in a header and get a user with the code below??</p>
  
  <pre><code>    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.
          // ...
      }
  </code></pre>