Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I get a user's email address using LinkedIn's new api call?
    primarykey
    data
    text
    <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>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload