简体   繁体   English

使用JavaScript API从LinkedIn获得个人资料详细信息

[英]Geting Profile Details from LinkedIn using JavaScript API

I'm trying to get details of a user from his/her LinkedIn profile using JavaScript API. 我正在尝试使用JavaScript API从他/她的LinkedIn个人资料中获取用户的详细信息。 but the problem is i only getting the details such as firstName, lastName, headline and profile picture. 但问题是我只得到诸如firstName,lastName,标题和个人资料图片之类的详细信息。 other than that i'm not able to get anything. 除此之外,我什么也得不到。 I have followed the tutorial in Linkedin Developer and i want to add fields like industry , network , date-of-birth , main-address , 我已按照Linkedin Developer中的教程进行操作,并且想添加行业网络生日主要地址

They are right here: https://developer.linkedin.com/documents/profile-fields 它们就在这里: https : //developer.linkedin.com/documents/profile-fields

But the point is accessing those fields for another account (not yours or your API key) might be not possible due to policies. 但是重点是由于政策原因,可能无法访问其他帐户的这些字段(而不是您的帐户或您的API密钥)。

Update for comment: 更新评论:

I assume you are following the guide in the link you provided first and you are already getting the results you want (name, picture etc...). 我认为您正在遵循首先提供的链接中的指南,并且已经获得了想要的结果(名称,图片等)。 For the other fileds just provide the field name in the link I pasted above and see what happens. 对于其他文件,只需在我上面粘贴的链接中提供字段名称,然后看看会发生什么。 for example change the field line to: 例如将字段线更改为:

IN.API.Profile("me")  .fields(["industry", "network", "date-of-birth"])

That is use the field names in that link and do wathever you want with the returned data. 那就是使用该链接中的字段名称,并对返回的数据进行任何处理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM