LinkedIn JS API - cannot get education object through JS

I have a problem with the LinkedIn JS API. Everything is configured and works fine when I run the application, and I have access to:

IN.API.Connections("me") .fields("id", "firstName", "lastName", "pictureUrl", "publicProfileUrl") .result(function(result, metadata) { console.log(result); }); 

but when I try to get an education, languages ​​or other collections I cannot get .

The following code returns an empty object to me:

 IN.API.Connections("me") .fields("educations") .result(function(result, metadata) { console.log(result); }); 

I have tried everything. Please help me.

Ps. When I use apigee.com or the JavaScript API Developer Console is not a problem.

+4
source share
1 answer

Since you are trying to get information about your connections, you can only get Basic Profile fields for 1st degree connections.

Here is a list of profile fields: https://developer.linkedin.com/documents/profile-fields#profile . Training is not one of the main fields of the profile.

0
source

Source: https://habr.com/ru/post/1447749/


All Articles