I have implemented login with LinkedIn and I am getting access token
after successful login by session.getAccessToken().toString()
. Now I need complete user profile and his connection list in account. But I am unable to retrieve that information from LinkedIn.
I am calling its REST client API call that was stated in official document like this
https://api.linkedin.com/v1/people/~
In this I am passing my access token as oauth2_access_token
that I got after login. But in response i am getting
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<error>
<status>401</status>
<timestamp>1440998578838</timestamp>
<request-id>P6GDCHJ13P</request-id>
<error-code>0</error-code>
<message>Unable to verify access token</message>
</error>
I have already tried various solutions like stated here:
LinkedIn OAuth2: "Unable to verify access token"
https://github.com/lepture/flask-oauthlib/issues/35
How to Retrieve all possible information about a LinkedIn Account ? (API using C#)