简体   繁体   English

Linkedin API获得公司的关注者名单

[英]Linkedin API get company's follower list

So I need to get my company's followers details. 所以我需要得到我公司的粉丝详情。

I tried this : 我试过这个:

public function getCompanyFollowers($company_id=""){
    if(!$company_id)return false;
    $params['url'] = "https://api.linkedin.com/v1/companies/".$company_id.":(num-followers)";
    $params['method']='get';
    $params['args']['format']='json';
    $result =  $this->makeRequest($params);
    return json_decode($result,true);
}   

but that only returns the count of followers. 但这只会返回追随者的数量。

On the Linkedin Company page if you click on that number of followers link we can see a list of detailed followers. 在Linkedin公司页面上,如果您点击该关注者数量链接,我们可以看到详细关注者列表。 How can I get that list of detailed followers with Linkedin API ? 如何使用Linkedin API获取详细关注者列表?

Thank you. 谢谢。

I ran into this question myself today. 我今天遇到了这个问题。

At the time of writing this response, accessing a detailed list of followers for a LinkedIn company page is not an option in the company API endpoint. 在撰写此回复时,访问LinkedIn公司页面的详细关注者列表不是公司API端点中的选项。

For a full list of supported company API fields such as num-followers used in your example, see this page . 有关受支持的公司API字段的完整列表,例如示例中使用的num-followers ,请参阅此页面

It's possible to list companies that the current logged-in user follows via the people endpoint: 可以通过人员端点列出当前登录用户遵循的公司:

http://api.linkedin.com/v1/people/~/following/companies

It's not possible to list people that follow a company via the people or companies endpoints. 不可能通过人员或公司端点列出关注公司的人员。

https://github.com/criexe/api/wiki/Social-Networks-Page-Stats-API https://github.com/criexe/api/wiki/Social-Networks-Page-Stats-API

GET https://api.criexe.com/social/pageStats?linkedin=1035 获取https://api.criexe.com/social/pageStats?linkedin=1035

Result (JSON) 结果(JSON)

{
   "linkedin":{
      "company":"1035",
      "followers":4342231
   },
   "total":4342231
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM