title: How to get user email after OAUTH with Google API Python Client
body: <p>I'm currently building a web app interacting with Google API in Python. Using the oauth to get access to the users resources. After successful authentication and upgrade of the token like this:</p>
  
  <pre><code>gd_client = gdata.photos.service.PhotosService()
  gd_client.SetAuthSubToken(token)
  gd_client.UpgradeToSessionToken()
  </code></pre>
  
  <p>Then I can access the different feeds of the API and get a list of the users Youtube videos for example. But the user has only logged in with Google and all I have is a oauth token and no other info on the user. How do I retrieve info on the user? Like email, display name and so on? I have been testing a lot of different stuff without managing to solve this...</p>
  
  <p>I found some interesting here: <a href="https://stackoverflow.com/questions/6970794/is-there-a-way-to-get-your-email-address-after-authenticating-with-gmail-using-o?rq=1">Is there a way to get your email address after authenticating with Gmail using Oauth?</a></p>
  
  <p>My theory was that I could use the PhotoService.GetAuthSubToken() and then reuse that token to request the contact and get auther.email from the contact entry. Changed the scope of the auth to:</p>
  
  <pre><code>scope = ['https://picasaweb.google.com/data/', 'https://www.google.com/m8/feeds/']
  </code></pre>
  
  <p>witch returns a roken valid for both services... Any ideas?</p>