问题描述
我注意到在我的应用程序中使用 LinkedIn REST API,我有一个奇怪的行为
I noticed that using LinkedIn REST API in my application, i have a strange behaviour
(我以比尔盖茨为例,但每个名字都是这样的)
(I'm using Bill Gates as example, but it works like this for every name)
第一个 REST 网址请求:
1st REST url request:
http://api.linkedin.com/v1/people-search:(people:(id))?first-name=bill&last-name=gates
返回 110 个结果
第二个 REST 网址请求:
2nd REST url request:
http://api.linkedin.com/v1/people-search:(people:(id))?keywords=bill%20gates
返回 0 个结果
但是,根据 API 文档 (https://developer.linkedin.com/documents/people-search-api),第二次搜索应该返回至少返回的 110 个比尔盖茨"与前一个请求,加上最终其他人在他们的个人资料中包含一些比尔盖茨"字符串(行业或学校名称中的比尔盖茨"等)
But, according to API documentation (https://developer.linkedin.com/documents/people-search-api), the second search should return at least the 110 "bill gates" returned with the former request, plus eventually other people with some "Bill Gates" string inside their profile ("bill gates" in industry or school name, etc.)
我的第二个请求有什么问题吗?
Am i doing something wrong with my second request or what?
更新:这是第二个请求的屏幕截图,通过使用LinkedIn REST 控制台.我想知道除了我之外是否还有其他人通过复制该请求获得了 110 个结果......
UPDATE:Here is a screenshot of the 2nd request, done by using the LinkedIn REST Console. I would like to know if anyone but me is getting 110 results by replicating that request ...
推荐答案
我发现 0 个结果与我的网络有关:我与一个名叫比尔盖茨的人没有任何一级或二级联系.
I have found out the 0 results is related to my network: I don't have any first or second degree connection with someone named Bill Gates.
关键字搜索在您的网络内部进行,搜索一级和二级连接,同时在其外部进行名字/姓氏搜索,因此我的结果与后者不为 0.
The keyword search works inside your network, searching for first and second degree connections, meanwhile the first-name/last-name search works outside it, so my results are not 0 with the latter.
这篇关于使用 Linkedin API 搜索人员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!