title: How to get userinfo with google-api after succesfully been authenticated?
body: <p>I try to get the userinfo after successfully authenticate with a gmail account (tok is a valid token):</p>
  
  <pre><code>        GoogleCredential credential2 = new GoogleCredential.Builder()
                  .setTransport(TRANSPORT).setJsonFactory(JSON_FACTORY)
                  .setClientSecrets(CLIENT_ID, CLIENT_SECRET)
                  .setRequestInitializer((new HttpRequestInitializer() {
                      @Override
                      public void initialize(HttpRequest request)
                              throws IOException {
                          request.getHeaders().setAuthorization("Bearer ".concat(tok));
                      }
                  }))
                  .build();
  
          Oauth2 userInfoService = new Oauth2.Builder(TRANSPORT,
                  JSON_FACTORY, credential2.getRequestInitializer())
                  .setApplicationName(APPLICATION_NAME).build();
  
          Userinfo userInfo = userInfoService.userinfo().get().execute();
          logger.warn("User email: {}", userInfo.getEmail());
          logger.warn("User gender: {}", userInfo.getGender());
          logger.warn("User complet name: {} - {}", userInfo.getFamilyName(), userInfo.getName());
  </code></pre>
  
  <p>But logs display 'null' for all fields, the json data returned contains only the id:</p>
  
  <pre><code>{
   "id": "113695880661351193041"
  }
  </code></pre>
  
  <p>What i'm supposed to do ? Add a special scope to do this? I tried it several times without success, just by adding scope=<a href="https://www.googleapis.com/auth/userinfo.profile" rel="nofollow">https://www.googleapis.com/auth/userinfo.profile</a> as url parameter, maybe that's wrong ?</p>
  
  <p>Hope someone can help or know how to add scopes to my request and get the correct response from this service.</p>