使用LinkedIn API,无法获得其他(用户签名)LinkedIn成员从其电子邮件ID中获得基本数据的其他内容



我想根据他们的邮件ID获取所有LinkedIn成员的基本配置文件详细信息,但我无法在他们的文档中获取相关信息。

我尝试创建一个应用程序,初始化JavaScript SDK,经过身份验证并尝试访问Basic_Profile数据,但只能在用户基本配置文件中签名,而不是其他LinkedIn成员的基本配置文件:

>
<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>

,就是这样。您将需要成为合作伙伴,并批准您的申请才能访问签名用户以外的详细数据。

编辑回复评论:检查https://developer.linkedin.com/docs/guide/v2/people/profile-api#me

专利,出版物等条目将具有其他ID。

请注意,您将无法在LinkedIn中获取所有用户ID的列表,但是您可以适合授予AUTH的用户及其配置文件中的用户。

相关内容

最新更新