【发布时间】:2018-08-15 22:41:26
【问题描述】:
到目前为止,我可以获得名字和姓氏、电子邮件、职位等,但我找不到获取链接到配置文件的 url 的命令。我正在尝试通过我的网络应用程序发送linkedin 个人资料网址。这是我获取用户数据的方法
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
});
}
【问题讨论】:
标签: javascript json web linkedin linkedin-api