hirday / linkedin-j

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

which id to use in getProfileById(String id) method #66

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
using the method 
 Person profile = client.getProfileById("<my primary email id>"); 

i get the following error:

Fetching access token from LinkedIn...
Access token: xxxxxxxxxxxxxxxxxxxxxx
Token secret: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Fetching profile for user.
Exception in thread "main" 
com.google.code.linkedinapi.client.LinkedInApiClientException: Could not find 
person based on: id=<my primary email id>
    at com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.createLinkedInApiClientException(BaseLinkedInApiClient.java:3906)
    at com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.callApiMethod(BaseLinkedInApiClient.java:3781)
    at com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.callApiMethod(BaseLinkedInApiClient.java:3725)
    at com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.getProfileById(BaseLinkedInApiClient.java:1044)
    at link.main(link.java:53)

Could you help me which id to use in this method.

What version of the product are you using? On what operating system?
i'm using linkedin-j-1.0.410 jars in eclipse helios on windows 7.

Please provide any additional information below.
Using the client.getProfileForCurrentUser() method runs perfectly though.

Original issue reported on code.google.com by LuckyAga...@gmail.com on 25 Aug 2011 at 10:18