I am struggling to retrieve the basic profile details of Linkedin Members using their email ID. Despite my efforts, I haven't been able to find relevant information in the documentation.
My attempt involved creating an app, initializing the JavaScript SDK, and accessing basic_profile data. However, I could only access the basic profile data of the signed-in user and not that of other Linkedin members:
<script type="text/javascript" src="//platform.linkedin.com/in.js">
api_key: XXXXXXXXXXXXX
onLoad: authorize
authorize: true
</script>
<script>
function authorize(){
console.log("success");
IN.User.authorize(data);
}
function data(){
IN.API.Profile("me").result(ShowProfileData);// Can I use this call to
// get other people details by replacing "me" with the other person mail id.
}
function ShowProfileData(profiles) {
var member = profiles.values[0];
var id=member.id;
var firstName=member.firstName;
var lastName=member.lastName;
var photo=member.pictureUrl;
var headline=member.headline;
console.log(firstName + lastName + photo);
//use information captured above
}
</script>