LinkedIn二度连接API(Linkedin second degree connections

2019-08-06 03:15发布

我得到了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']);
        }

不过,虽然获取的第二度连接有像“拒绝访问连接”的错误消息。

Answer 1:

引自 LinkedIn开发者论坛 :

API是在什么是API返回的条款更加明确。 只有一阶的连接是由连接API返回。 虽然r_network成员权限不授予两个第一和第二度连接您的应用程序访问( 该成员的权限需要两个连接API和人员搜索API),它只有通过人民搜索API,它允许您访问二度连接。连接API向来只被限制在1度的连接。

所以,这几乎是你的问题。



文章来源: Linkedin second degree connections API