rails linkedin gem not able to fetch connections's email ids

219 views Asked by At

Im following all these instructions to fetch my connections of linkedin in my rails app

here gist www.gist.github.com/sreeharikmarar/6364970

It gives the connections very well, but this does not give the email ids of the connection.

profile = @linkedin_client.profile(:fields=>["connections"])

How can i get the email ids of my connections.

1

There are 1 answers

4
Hetal Khunti On

Try this to get connections:

# view connections for the currently authenticated user
client.connections

From this Source

Note:

You cannot "browse connections." That is, you can only get the connections of the user who granted your application access. You cannot get connections of that user's connections (2nd degree connections).

Reference : LinkedIn Connections Api