akhil2909 / linkedin-j

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

Some field always return null when search for profile #60

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Search for a profile by firstName = "Taj" and lastName ="Olatunji", and use 
EnumSet.allOf(ProfileField.class) to get all fields.
2. After result is returned

What is the expected output? What do you see instead?

Some fields are successfully appears, like 

"Title","Position","Location","ImageUrl" etc,however, some of fields are always 
null, for example: "THREE_PAST_POSITIONS", "EDUCATIONS"(some times has values, 
but most of time, it is null).

But if you login LinkedIn, and open profile of "Taj Olatunji", it has content 
for "Past positions" and "Educations".

What version of the product are you using? On what operating system?
I am using linkedin-j-1.0.389 which is latest version, my OS is windowsXP.

Please provide any additional information below.

N/A

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

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I had the same issue but then realized that this seems to be expected 
behaviour. Only a few fields are returned by default, to get others, they must 
be explicitly requested, as below:

    Set<ProfileField> fields = new HashSet<ProfileField>();
      fields.add(ProfileField.SUMMARY);

  Person profile = client.getProfileByUrl(profileUrl, ProfileType.STANDARD, fields);

This would return the summary field, note that by explicitly requesting fields 
in this way it overrides the default fields (such as firstName), so these must 
also be requested, if desired.

Original comment by r.dane1...@gmail.com on 9 Jun 2013 at 7:05