Search code examples
ruby-on-railsomniauthlinkedin-api

How to get user profiles in linkedin using ROR+omniauth?


I have successfully verified the linkedin credentials using omniauth and it also redirects to my application with verifier and token, using this how to get user profile information from linkedin and what are all information we can get from this?

Please help as i am new guy to ROR.

thanks in advance.


Solution

  • LinkedIn has a REST api so you have two solutions:

    • Build yourself the requests you need according to the documentation (there you will find all information you can get).

      To make the HTTP requests I recommend you the gem HTTParty which allows you to automatically parse XML or JSON responses.

    • Use an already-made wrapper like the linkedin gem.