Wie erhalte ich Linkedin-Benutzerdaten?

Ich benutzeLinkedin API um Benutzerinhalte in @ abzurufRoR project. Ich folgeDie blog. Hier ist der Controller-Code:

Basic Profil (was gut funktioniert)

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"])

Erfahrung und Positionen:

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

Für Ausbildungen:

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

Wohingegenget_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

Für den Bereich, den ich festgelegt habe:

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

Ich kann grundlegende Profilinformationen abrufen, andere jedoch nicht. Für andere Felder werde ich leer[]. Was mache ich hier falsch?

Antworten auf die Frage(2)

Ihre Antwort auf die Frage