Skip to content

Instantly share code, notes, and snippets.

@gcaixeta
Created August 28, 2012 13:57
Show Gist options
  • Save gcaixeta/3498224 to your computer and use it in GitHub Desktop.
Save gcaixeta/3498224 to your computer and use it in GitHub Desktop.
how to get the original picture-url from the linkedin gem api
c = LinkedIn::Client.new
c.authorize_from_access authentication.token, authentication.secret
c.search(fields: [{:people => [:picture_url]}]).people.all.first.try(:picture_url)
#or better
c.profile(:fields => ['picture-urls::(original)']).picture_urls.all.first
@mazikwyry
Copy link

Thanks a lot! You are a star!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment