没有得到公司信息 [英] Not getting company info

查看:141
本文介绍了没有得到公司信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是这个linkedin API的新手.我已经举了一个小例子,当我通过使用以下网址使用关键字搜索时,该例子起作用了:

I am new to this linkedin api. I have made a small example which is working when I am using the keyword search by using the following url:

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错误:

But when I am searching any company info by using the email-domain search then it is giving me 403 error:

<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>

我为此使用了以下网址:

I am using the following url for this:

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.如果我错了或者没弄清楚东西,请指导我.

So as you have posted your answer which is related to this problem I guess you are saying that I have to be the administrator for the company page for which I am searching. As like in my above url i.e. email-domain=ibm.com. If I am wrong or not getting the things, please guide me.

谢谢

推荐答案

作为对LinkedIn API的最新更改的一部分-您必须成为代表进行API调用的公司的管理员.结果,公司搜索电话不再公开可用.

As part of the recent changes to the LinkedIn API - you are required to be the administrator of the company you are making API calls on behalf of. As a result, the company search calls are no longer openly available.

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

You can make a call to check whether the authenticated user is an Administrator of a given company like this:

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

这将返回一个布尔值.如果为真,那么您就很好.如果为假,则需要使用www.linkedin.com

This will return a boolean value. If true, you're good to go. If false, you'll need to get an existing company admin to grant the user company administrator status using the tools available on www.linkedin.com

这篇关于没有得到公司信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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