Search code examples
phpapirestlinkedin-api

LinkedIn PHP api issues


Today, after we migrated to the new members permissions api, everything goes wrong. Im using the cosumer key and secret that i've got from the linkedin api dashboard itself with the oauth token and secret as well.

There is 3 kind of problems that keeps on coming: first one:

{"errorCode": 0,"message": "Could not find person based on: ~","requestId": "7GPT96SW3C","status": 404,"timestamp": 1369827647671}

second:

<error><status>401</status><timestamp>1369826490661</timestamp><request-id>ZYWPUD43G3</request-id><error-code>0</error-code><message>[unauthorized]. The token used in the OAuth request is not valid. ******</message></error>

third:

com.linkedin.anet.auth.pub.ANetAuthException: other: anetID=*****

has anyone got some of these too? if yes, so how did you solved them? thanks!


Solution

  • Once you have authenticated the user, you no longer need to make the access token calls - simply store the access token and reuse that for the subsequent requests.