mercredi 15 août 2018

How can I get the url of a profile on linkedin using the linkedin API

So far, I can get the first and last name, email, positions, etc. but I can't find the command to get the url to the linkedin profile. I'm trying to send linkedin profile urls through my web app. Here is what I have for getting user data

 function grabUserData() {
    let profile = {};
  IN.API.Profile('me').fields([
    'first-name', 'last-name', // Add these to get the name
    'industry', 'date-of-birth', 'educations:(id,school-name)',
    'positions', // Add this one to get the job history
    'picture-url',//gets image
    'email-address'
  ]).result(function(profiles) {
    console.log(profiles.values[0]);//gives me profile info
    profile = profiles.values[0];
    updateWithInfo(profile);//just displays it on my site
  });
}




Aucun commentaire:

Enregistrer un commentaire