我正在尝试使用omniauth
and获取用户的linkedin数据omniauth-linkedin
。
对于技能,我正在获取类似的数据#<Hashie::Mash id=16 skill=#<Hashie::Mash name="AJAX">>, #<Hashie::Mash id=17 skill=#<Hashie::Mash name="Linux">>, #<Hashie::Mash id=18 skill=#<Hashie::Mash name="Apache">>, #<Hashie::Mash id=19 skill=#<Hashie::Mash name="RSpec">>, #<Hashie::Mash id=20 skill=#<Hashie::Mash name="JSON">>...
我有以下omniauth.rb
Rails.application.config.middleware.use OmniAuth::Builder do
provider :linkedin, Settings.linkedin_key, Settings.linkedin_secret,
:scope => 'r_fullprofile r_emailaddress r_network',
:fields => ["id", "email-address", "first-name", "last-name",
"headline", "industry", "picture-url", "public-profile-url",
"location", "skills", "date-of-birth", "phone-numbers",
"educations", "three-current-positions" ]
end
对于技能,我需要熟练的技能,如下所示http://developer.linkedin.com/documents/profile-fields#skills
不知道我错过了什么。