I'm using omniauth-linkedin gem in Rails and trying to get data from 'r_fullprofile' and 'r_network'.
In omniauth.rb:
provider :linkedin, 'consumer_key', 'consumer_secret',
:scope => 'r_fullprofile r_emailaddress r_network',
:fields => ["id", "email-address", "first-name", "last-name",
"headline", "industry", "picture-url", "public-profile-url",
"location", "connections", "skills", "date-of-birth", "phone-numbers",
"educations", "three-current-positions" ]
In controller:
render :text => request.env["omniauth.auth"].to_yaml
The resultant output seems only to have data for 'r_basicprofile'. How can I obtain for parsing the rest of the desired data (e.g. "connections", "skills", "educations")?