I have successfully retrieved the first and last name, email, positions, etc., but I am having trouble finding the command to fetch the URL for the linkedin profile. My goal is to send linkedin profile URLs through my web app. Below is the code snippet I currently have for obtaining user data:
function grabUserData() {
let profile = {};
IN.API.Profile('me').fields([
'first-name', 'last-name', // Include these to retrieve the name
'industry', 'date-of-birth', 'educations:(id,school-name)',
'positions', // Add this one to access job history
'picture-url',// gets image
'email-address'
]).result(function(profiles) {
console.log(profiles.values[0]);// provides me with profile info
profile = profiles.values[0];
updateWithInfo(profile);// simply displays it on my site
});
}