title: cordova: get user profile info google oauth
body: <p>I am implementing google oauth in cordova app. It is working fine at the moment and i am getting Token from google. </p>
  
  <p>Problem is i am trying to get user details like name, email, profile pic etc.</p>
  
  <p>Any advise how can i get the details.</p>
  
  <pre><code>$('document').ready(function()
  {
          var $loginButton = $('#logins a');
      var $loginStatus = $('#logins p');
      $(document).on('click', '#google', function (e) { 
  
          googleapi.authorize({
              client_id: 'client_id',
              client_secret: 'secret',
              redirect_uri: 'http://localhost',
              scope: 'https://www.googleapis.com/auth/analytics.readonly'
          }).done(function(data) {
              $loginStatus.html('Access Token: ' + data.access_token);
          }).fail(function(data) {
              $loginStatus.html(data.error);
          });
      });
  });
  </code></pre>