3
我得到了linkedin認證用戶的個人資料信息和連接細節,按codeigniter/linkedin api method.But我最終的需要是獲得連接我的connections.The linkedin文件說如果我們有'r_network'的權限,我們將獲得第一和第二學位的聯繫,但我不能。請提出解決方案,以獲取第二學位連接。以下是我的代碼。Linkedin二度連接API
$profile_connections = $this->linkedin->profile('~/connections:(id,first-name,last-name,picture-url,industry,location,public-profile-url,positions:(company:(name)))');
$profile_connections = json_decode($profile_connections['linkedin']);
foreach ($profile_connections->values as $connections){
$sub_connections = $this->linkedin->profile("url=".urlencode($connections->publicProfileUrl)."/connections:(id,first-name,last-name,picture-url,industry,location)");
$sub_connections = json_decode($sub_connections['linkedin']);
}
但是,當獲取2nd度連接時出現了「訪問連接被拒絕」的錯誤信息。
你可以舉個例子用人民搜索Api, – Elby
看看[這裏](http://developer.linkedin.com/documents/sample-code-people-search) 和for codeigniter [here](http ://thinkdiff.net/linkedin/integrate-linkedin-api-in-your-site/)是另一個例子 –
你的鏈接「linkedin developer forum」不起作用。 – anivaler