yangboz / linkedin-j

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

Getting null in Get getProfileForCurrentUser() #58

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Authentication : Successful
2. Retrieval of AccessToken AccessSecret: Successful
3. GetProfileForCurrentUser - Problem- Giving only name and headline rest of 
the values are null.

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

Person profile = client.getProfileForCurrentUser();
out.println("<h3>Welcome to LinkedIn</h3>");
out.println("<b>" + profile.getFirstName() + " " + 
profile.getLastName()+"</b>");
out.println("<br>" + profile.getHeadline());
out.println("<br>" + profile.getIndustry());
out.println("<br>" + profile.getId());

is my code, I am getting the name properly but for industry,id and all other 
things its showing me null.

What version of the product are you using? On what operating system?
j-1.0.335 /Windows Vista

Please provide any additional information below.

Original issue reported on code.google.com by phpwala....@gmail.com on 14 Jul 2011 at 12:08

GoogleCodeExporter commented 8 years ago
You will have to use field selectors for other fields.
Person profile = 
client.getProfileForCurrentUser(EnumSet.of(ProfileField.FIRST_NAME, 
ProfileField.LAST_NAME));

Original comment by nabeelmukhtar on 22 Jul 2011 at 9:27

GoogleCodeExporter commented 8 years ago
i am having the same trouble with the "skills" i have selected the skills at 
the tile of fetching as well but still no luck.

any idea?

Original comment by qumberka...@gmail.com on 20 Nov 2012 at 4:44