我得到了LinkedIn身份验证的用户的个人信息和连接细节,按照笨/ LinkedIn的API method.But我最终需要的是让我的connections.The LinkedIn文档的连接说,如果我们有'r_network的许可,我们将得到第一和第二度的连接,但我不能。 请提出一个解决方案用于提取后的二度connections.The是我的代码。
$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']);
}
不过,虽然获取的第二度连接有像“拒绝访问连接”的错误消息。