如何使用 linkedin API 获取 linkedin 上个人资料的 url
How can I get the url of a profile on linkedin using the linkedin API
到目前为止,我可以获取名字和姓氏、电子邮件、职位等,但我找不到将 url 获取到 linkedin 个人资料的命令。我正在尝试通过我的网络应用程序发送 linkedin 个人资料 urls。这是我获取用户数据的方法
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
});
}
有一个字段:vanityName
.
会员的虚名。虚名表示为用于 public 配置文件 URL 的字符串:www.linkedin.com/in/{vanityName}。 Basic Profile Fields
到目前为止,我可以获取名字和姓氏、电子邮件、职位等,但我找不到将 url 获取到 linkedin 个人资料的命令。我正在尝试通过我的网络应用程序发送 linkedin 个人资料 urls。这是我获取用户数据的方法
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
});
}
有一个字段:vanityName
.
会员的虚名。虚名表示为用于 public 配置文件 URL 的字符串:www.linkedin.com/in/{vanityName}。 Basic Profile Fields