ozgur / python-linkedin

Python interface to the LinkedIn API
http://ozgur.github.com/python-linkedin/
MIT License
894 stars 392 forks source link

Retrieve email address of connections #45

Closed KartikDomadiya closed 10 years ago

KartikDomadiya commented 10 years ago

I am trying to retrieve email address of my connections using get_connections and get_profile methods. But it doesn't return the email address.

responseJson =application.get_connections(selectors=["id","first-name","last-name","email-address"])

When I call this, it returns only id, first-name and last-name of my connections.

As mentioned in http://developers.linkedin.com/documents/profile-fields#email, I have set r_emailaddress permission also.

Can anyone please help me to get it resolved ?

ozgur commented 10 years ago

Hello,

I don't think LinkedIn permits to fetch email addresses of the connections. I think you can only fetch the user's email address who grants access to the application.

According to the documentation here: https://developers.linkedin.com/documents/connections-api

It says:

For 1st degree connections, you may only retrieve profile fields available with the r_basicprofile member permission