Как получить данные пользователя Linkedin?

я используюLinkedin API извлекать пользовательский контент вRoR проект. Я следуюэтот блог. Вот код контроллера:

Базовый профиль (который отлично работает)

client = get_client
profile = client.profile(:fields => ["first-name", "last-name", "maiden-name", "formatted-name" ,:headline, :location, :industry, :summary, :specialties, "picture-url", "public-profile-url"])

Опыт и должности:

client = get_client
positions = client.profile(:fields => [:positions]).positions.all

Для образования:

client = get_client
educations = client.profile(:fields => [:educations]).educations.all

В то время какget_client

def get_client
linkedin_oauth_setting = LinkedinOauthSetting.find_by_user_id(current_user.id)
client = LinkedIn::Client.new('aaadad', 'dadada', @@config)
client.authorize_from_access(linkedin_oauth_setting.atoken, linkedin_oauth_setting.asecret)
client
end

Для сферы я установил:

:request_token_path => '/uas/oauth/requestToken?scope=r_fullprofile'

Я могу получить основную информацию о профиле, но не другие. Для других полей я получаю пустым[], Что я здесь не так делаю?

Ответы на вопрос(1)

Ваш ответ на вопрос