如何使用Linkedin API获取个人资料详细信息到网站

How to get profile details to a website using Linkedin API?

本文关键字:详细信息 网站 个人资料 获取 何使用 Linkedin API      更新时间:2023-09-26

如何使用最新的LinkedIn javascript API与Oauth 2.0获得我自己的个人资料详细信息到网站?

目标是使用链接配置文件使网站保持最新

试下,

api_key: YOUR_API_KEY_HERE
authorize: true
onLoad: onLinkedInLoad
// Setup an event listener to make an API call once auth is complete
function onLinkedInLoad() {
    IN.Event.on(IN, "auth", getProfileData);
}
// Handle the successful return from the API call
function onSuccess(data) {
    console.log(data);
}
// Handle an error response from the API call
function onError(error) {
    console.log(error);
}
// Use the API call wrapper to request the member's profile data
function getProfileData() {
    IN.API.Raw("/people/~:(id, first-name, skills, educations, 
           languages, twitter-accounts)").result(onSuccess).error(onError);
}
https://developer.linkedin.com/docs/apply-with-linkedin

我不知道该怎么做,谁能给我点建议吗?谢谢!

我不太了解JavaScript包装器的实现,因为我已经在Java中完成了它。但是这里有一个很好的教程,使用JQuery使用基本的REST实现来获取用户数据。希望这对你有所帮助,并让你开始。http://www.kunal-chowdhury.com/2012/08/how-to-fetch-twitter-profile-information-using-jQuery-plugin-as-json-object.html?m=1