2016-02-21 41 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