omit / linkedin-j

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

Support search company by "Company Name" #59

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I saw version 1.0.389 is released and it supports new Company and Job API, 
which is really great!!
However, I need function to search companies by "Company Name", but I can not 
find it at anywhere. 
After check out the source, it seems 1.0.389 only support searching by 
"headquarters location".

Is it possible to add other searching condition for "Company"?

Original issue reported on code.google.com by xingwei...@gmail.com on 2 Aug 2011 at 8:35

GoogleCodeExporter commented 9 years ago
There are two ways to do that in the API.
You can search for name as a keyword. Or you can get a company by its exact 
universal name. e.g.
Map<SearchParameter, String> searchParameters = new EnumMap<SearchParameter, 
String>(SearchParameter.class);
searchParameters.put(SearchParameter.KEYWORDS, "linkedin");
Companies companies = client.searchCompanies(searchParameters);
Company company = client.getCompanyByUniversalName("linkedin", 
EnumSet.allOf(CompanyField.class));

Original comment by nabeelmukhtar on 5 Aug 2011 at 2:52