Search code examples
ruby-on-railslinkedin-api

How to get logged in user's complete profile information using gem 'linkedin', :git => "git://github.com/pengwynn/linkedin.git"?


I am using gem 'linkedin', :git => "git://github.com/pengwynn/linkedin.git"

when i create client and get profile i get the following values

headline:   url: last_name: first_name:summary

my question is how to get user's

picture-url,public_profile_url: location: country: school_name: degree: field_of_study: start_date: end_date:

Solution

  • use picture_url like follows

    client.profile(:fields => [:headline, :first_name, :last_name, :picture_url,:educations, :positions])client.profile(:fields => [:headline, :first_name, :last_name, :picture_url,:educations, :positions])