akhil2909 / linkedin-j

Automatically exported from code.google.com/p/linkedin-j
0 stars 0 forks source link

Searching by Company ID? #62

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I wish to execute a search according to Company ID,
however, SearchParameter enum has only "COMPANY_NAME" / "HEADQUARTER", which 
are not sufficient for my needs, as I need to search for people in the entire 
company, but I wish to identify each Company uniquely and not by name..

Am I missing a different method of searching by Company ID? And if not, can 
"COMPANY_ID" be added to the SearchParameter enum?

Thanks you.

Original issue reported on code.google.com by cre...@gmail.com on 4 Aug 2011 at 4:24

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thanks, but what I'm actually trying to do is extract the people of a
certain company (whose ID I got).
getCompanyById can get me the company, but not the workers..
I saw I could search for people and use the search parameter "Company Name"
but I'm afraid to receive results of a wrong company with the same or
similar name..

Is there any way to search for people in a specific company by the company's
ID?
Thanks again.
Ran.

Original comment by cre...@gmail.com on 5 Aug 2011 at 4:20

GoogleCodeExporter commented 9 years ago
Yes. You can use people search API and use below url -
https://api.linkedin.com/v1/people-search:(people:(id,distance,first-name,last-n
ame,positions:(title,company:(id,name))))?facet=current-company,COMPANYID&facet=
current-company,COMPANYID

To achieve this, u might need to extend LinkedInApiJaxbClient and then
Construct the url using above parameters for people search and then
People search = readResponse(PeopleSearch.class, 
callApiMethod(url)).getPeople();

Original comment by amit.muj...@gmail.com on 18 Nov 2013 at 8:49