0

我是这个linkedin api的新手。我做了一个小例子,当我使用以下网址使用关键字搜索时,它正在工作:

https://api.linkedin.com/v1/company-search:(companies:(id,name,universal-name,website-url,industries,status,logo-url,blog-rss-url,twitter-id,employee-count-range,specialties,locations,description,stock-exchange,founded-year,end-year,num-followers))?keywords={IBM}&oauth2_access_token=<access Token>

但是当我使用电子邮件域搜索搜索任何公司信息时,它会给我 403 错误:

<error>
  <status>403</status>
  <timestamp>1432820120642</timestamp>
  <request-id>XLWN5Y7T7R</request-id>
  <error-code>0</error-code>
  <message>Member 385883298 does not have permission to get company 66028</message>
</error>

我为此使用以下网址:

https://api.linkedin.com/v1/company-search:(companies:(id,name,universal-name,website-url,industries,status,logo-url,blog-rss-url,twitter-id,employee-count-range,specialties,locations,description,stock-exchange,founded-year,end-year,num-followers))?email-domain=ibm.com&oauth2_access_token=<acess Token>

因此,当您发布与此问题相关的答案时,我猜您是说我必须成为我正在搜索的公司页面的管理员。就像我上面的网址一样email-domain=ibm.com。如果我错了或没有得到东西,请指导我。

谢谢

4

1 回答 1

0

作为最近对 LinkedIn API 进行更改的一部分 - 您必须是您代表进行 API 调用的公司的管理员。因此,公司搜索电话不再公开可用。

您可以拨打电话以检查经过身份验证的用户是否是给定公司的管理员,如下所示:

https://api.linkedin.com/v1/companies/{Insert CompanyID here}/relation-to-viewer/is-company-share-enabled?format=json

这将返回一个布尔值。如果是真的,你很高兴。如果为 false,您需要让现有的公司管理员使用 www.linkedin.com 上提供的工具授予用户公司管理员身份

于 2015-05-28T17:22:54.187 回答