Reputation: 259
I am trying to get company details and academic details using Linkedin JavaScript API call.
This is the code:
IN.API.Profile("me")
.fields([
"firstName","lastName","headline","positions:(company)","industry",
"location:(name)","pictureUrl","publicProfileUrl","emailAddress",
"educations","dateOfBirth"])
.result(function(result) {
console.log('inside onLinkedInLogin=============>');
console.log(result);
setLoginBadge(result.values[0]);
})
.error(function(err) {
alert(err);
});
The got full details for education including degree,endDate,fieldOFStudey,id,schoolname, startDate etc...
But for Positions i only got company with id and name.
I would like to fetch more details from positions like position name like "consultant" and startDate,endDate,current position etc...
Any help will be highly appreciated.
Upvotes: 1
Views: 2403
Reputation: 259
i found it myself with a few more research and hope this may help someone..
IN.API.Profile("me")
.fields([
"firstName","lastName","headline","positions:(company,title,summary,startDate,endDate,isCurrent)","industry",
"location:(name,country:(code))","pictureUrl","publicProfileUrl","emailAddress",
"educations","dateOfBirth"])
.result(function(result) {
console.log('inside onLinkedInLogin=============>');
console.log(result);
setLoginBadge(result.values[0]);
})
.error(function(err) {
alert(err);
});
Upvotes: 6