![](/img/trans.png)
[英]how to solve git error while installing linkedin from git://github.com/pengwynn/linkedin.git?
[英]How to get logged in user's complete profile information using gem 'linkedin', :git => “git://github.com/pengwynn/linkedin.git”?
我正在使用gem 'linkedin', :git => "git://github.com/pengwynn/linkedin.git"
當我創建客戶端並獲取配置文件時,我得到以下值
headline: url: last_name: first_name:summary
我的問題是如何獲得用戶的
picture-url,public_profile_url: location: country: school_name: degree: field_of_study: start_date: end_date:
使用如下的picture_url
client.profile(:fields => [:headline,:first_name,:last_name,:picture_url,:educations,:positions])client.profile(:fields => [:headline,:first_name,:last_name,:picture_url ,:教育,:positions])
有關您可以使用的所有字段的列表,請參閱LinkedIn https://developer.linkedin.com/documents/profile-fields上的文檔。
#Gemfile
gem 'linkedin-oauth2', '~> 1.0.0'
# Other file
api = LinkedIn::API.new(linkedin.token)
profile = api.profile(
fields: [
:headline,
:first_name,
:last_name,
:email_address,
:phone_numbers,
:im_accounts,
:industry,
:main_address,
:primary_twitter_account,
:picture_url,
:public_profile_url,
:positions
]
)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.