title: How do I get a user's email address using LinkedIn's new api call?
body: <p>According to these docs, I'm supposed to request 'email-address': <a href="https://developer.linkedin.com/documents/profile-fields" rel="nofollow">https://developer.linkedin.com/documents/profile-fields</a></p>
  
  <p>I assume this works like any other user data call, so I'm going through the oauth process to get the right tokens, then doing the following (in Python using the oauth2 libary):</p>
  
  <pre><code>In [30]: url='http://api.linkedin.com/v1/people/~:(id,first-name,industry,email-address)'
  In [31]: resp, content = client.request(url, 'GET')
  In [32]: content
  Out[32]: '&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;\n&lt;person&gt;\n  &lt;id&gt;t0tImGn-yi&lt;/id&gt;\n  &lt;first-name&gt;Jeff&lt;/first-name&gt;\n  &lt;industry&gt;Computer Software&lt;/industry&gt;\n&lt;/person&gt;\n'
  </code></pre>
  
  <p>As you can see, the email address is not in the response.</p>
  
  <p>I should also note that I tried specifying the scope in the requestToken request using this: </p>
  
  <p><code>request_token_url = 'https://api.linkedin.com/uas/oauth/requestToken?           scope=r_basic_profile+r_emailaddress'</code></p>
  
  <p>Update: I found other docs here: <a href="https://developer.linkedin.com/documents/authentication#toggleview:id=python" rel="nofollow">https://developer.linkedin.com/documents/authentication#toggleview:id=python</a> which seem to imply that I should be trying to access email by going here:
  resp, content = client.request('http://api.linkedin.com/v1/people/~/email-address', 'GET')</p>
  
  <p>In this case, content returns "null"</p>