I am using the library linkedin-j to use the linkedin API in Java. I am testing the search functionality but it seems that only return people near me, and I need to search people who has not relation with me, or people from any university or something like that.
I am using this code:
Map<SearchParameter, String> searchParameters = new EnumMap<SearchParameter, String>(SearchParameter.class);
searchParameters.put(SearchParameter.KEYWORDS, "University of X");
People people = client.searchPeople(searchParameters);
System.out.println("Total search result:" + people.getCount());
for (Person person : people.getPersonList()) {
System.out.println(person.getId() + ":" + person.getFirstName() + " " +
person.getLastName() + ":" + person.getHeadline());
}
It returns me nothing.
However if i put my lastname in the parameters.
searchParameters.put(SearchParameter.LAST_NAME, "MYLASTNAME");
It returns me only me.
Please, how can i search more people with this API?