Linkedin二级连接API [英] Linkedin second degree connections API

查看:242
本文介绍了Linkedin二级连接API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据codeigniter / linkedin api方法,我得到了linkedin验证的用户的配置文件信息和连接详细信息。但我最终需要是获取我的连接的连接。linkedin文档说如果我们有'r_network'权限,将获得第一和第二学位连接,但我不能。请建议一个解决方案获取第二级连接。以下是我的代码。

I got the linkedin authenticated user's profile information and connection details as per the codeigniter/linkedin api method.But my final need is to get the connections of my connections.The linkedin documentation says that if we have the 'r_network' permission we will get the 1st and 2nd degree connections,but I couldn't. Please suggest a solution for fetching the second degree connections.The following is my code.

$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']);
        }

但是获取第二级连接时会收到一条错误消息, 开发人员程序中的

But while fetching the 2nd degree connection got an error message like "Access to connections denied".

推荐答案

linkedin.com/comment/19128#comment-19128rel =nofollow> linkedin开发人员论坛:

Quoted from linkedin developer forum:

API 在API返回的内容方面更加明确。
只有一级连接 Connections API 返回。
虽然 r_network 成员权限授予您的应用访问
一级和二级连接(两者都需要此成员权限) Connections API和People Search API ),
只有通过 People Search API ,您才能访问二级联系。

API to be more explicit in terms of what is returned by the API. Only 1st degree connections are returned by the Connections API. While the r_network member permissions does grant your application access to both 1st and 2nd degree connections (this member permissions is required for both Connections API and People Search API), it's only through the People Search API which allows you access to 2nd degree connections. The Connections API has always only been restricted to 1st degree connections.

因此,这是你的问题。

这篇关于Linkedin二级连接API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆