Search people with Linkedin API

余生颓废 提交于 2019-12-12 08:35:54

问题


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)

1st REST url request:

http://api.linkedin.com/v1/people-search:(people:(id))?first-name=bill&last-name=gates

returns 110 results

2nd REST url request:

http://api.linkedin.com/v1/people-search:(people:(id))?keywords=bill%20gates

returns 0 result

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?

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


回答1:


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.

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.



来源:https://stackoverflow.com/questions/12191798/search-people-with-linkedin-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!