2016-02-21 46 views
0

我试图通过LinkedIn SDK找到用户的所有信息,如个人资料图片等,我目前得到以下,但我有点卡住如何获得更多信息它的任何想法?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

发现它,增加更多的参数做的伎俩:)。要获得aditional字段,可以将它们添加为查询参数。恩。

https://api.linkedin.com/v1/people/~:(id,num-connections,picture-url)?format=json