我正在尝试通过LinkedIn SDK查找来自用户的所有信息,例如个人资料图片等,我目前得到以下内容,但我有点卡在如何从中获取更多信息..任何想法?
$('.btn_linkedin').click(function(e){
e.preventDefault();
console.log('Apply');
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 basic profile data
function getProfileData() {
IN.API.Raw("/people/~").result(onSuccess).error(onError);
}
答案 0 :(得分:0)
找到它,添加更多参数诀窍:)。要获取aditional字段,您可以将它们添加为查询参数。离。
https://api.linkedin.com/v1/people/~:(id,num-connections,picture-url)?format=json