title: Using Google+ API for PHP -- Need to get the users email
body: <p>I'm using the Google PHP API. The documentation is rather lackluster... I want to allow users to connect their Google+ information and also use it to sign the users up in my database. In order to do that I need to get the email they use for their google account. I can't seem to figure out how to. It's easy enough in Facebook by forcing the permission when the users connect to my app. Anyone have any idea? This is the code I'm using to grab the users google+ profile and it works fine, except users may not have their email listed there. </p>
  
  <pre><code>include_once("$DOCUMENT_ROOT/../qwiku_src/php/google/initialize.php");
  
  $plus = new apiPlusService($client);
  if (isset($_GET['code'])) {
    $client-&gt;authenticate();
    $_SESSION['token'] = $client-&gt;getAccessToken();
    header('Location: http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']);
  }
  
  if (isset($_SESSION['token'])) {
    $client-&gt;setAccessToken($_SESSION['token']);
  }
  
  if ($client-&gt;getAccessToken()) {
      $me = $plus-&gt;people-&gt;get('me');
      print "Your Profile: &lt;pre&gt;" . print_r($me, true) . "&lt;/pre&gt;";
      // The access token may have been updated lazily.
      $_SESSION['token'] = $client-&gt;getAccessToken();
  } else {
      $authUrl = $client-&gt;createAuthUrl();
      print "&lt;a class='login' href='$authUrl'&gt;Connect Me!&lt;/a&gt;";
  }
  </code></pre>
  
  <p>Without the users email address, it sort of defeats the purpose of allowing users to signup with Google+ Anyone more familiar with the Google API know how I can get it?</p>