Open GoogleCodeExporter opened 8 years ago
Hi Doug
Sorry for the late reply.
There is another method, getProfileByApiRequest() that will be useful to get
out of network profiles. Here's some example code.
People people = client.searchPeople(searchParameters);
for (Person person : people.getPersonList()) {
person = client.getProfileByApiRequest(person.getApiStandardProfileRequest());
}
Hope this helps.
Regards
Nabeel Mukhtar
Original comment by nabeelmukhtar
on 11 Jun 2010 at 7:16
Hi Nabeel,
That looks like it would be an alternative, but would still need a new method
that takes a Set<ProfileField> so more than the default set of fields would be
returned for the Person?
I also need to be able to requery the data in the future, so would need to
either recreate the ApiStandardProfileRequest object or recreate the list of
headers. Seemed easier to just recreate the header list, but what seems easy
now may not be the best long term decision...
Thanks,
Doug.
Original comment by carrglo...@gmail.com
on 11 Jun 2010 at 4:18
I run the code by getProfileByApiRequest() but it shows the error in the
console:
Exception in thread "main" java.lang.IllegalArgumentException: api request
cannot be null.
at com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.assertNotNull(BaseLinkedInApiClient.java:3981)
at com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.getProfileByApiRequest(BaseLinkedInApiClient.java:1130)
at com.bfs.ibp.spotlight.linkedin.RequiredLinkedinInfo.main(RequiredLinkedinInfo.java:77
)
pls help me in this matter.
Original comment by diptargh...@gmail.com
on 21 Dec 2012 at 4:47
Original issue reported on code.google.com by
carrglo...@gmail.com
on 28 May 2010 at 1:27