title: Requesting user email from Google Api returns unauthorized 401 error
body: <p>I try to connect to google API and it returns:
  <code>failed to open stream: HTTP request failed! HTTP/1.0 401 Unauthorized</code>
  I requested for access token and it returned me xxx, after that I connect to Google API by following PHP code:</p>
  
  <pre><code>$opts = array('http' =&gt;
          array(
          'method'  =&gt; 'GET',
          'header' =&gt; "Authorization: OAuth $access_token\r\nContent-Type: application/json\r\n",
          )
      );
      $context = stream_context_create($opts);
      $result = file_get_contents('https://www.googleapis.com/userinfo/email?alt=json',false,$context);
  </code></pre>
  
  <p>Where is mistake did I write wrongly headers, or something else?
  Update: $access_token is a value which I got in json by requesting it.</p>