2
votes

I am trying to get data using API provided by LinkedIn. I have got the API key, API secret, and the access key as well. After going through the documentation I got to know that now they perform authentication with OAuth 2.0. I am trying to access the following API :

https://api.linkedin.com/v2/me?oauth2_access_token= my access token

The response returns the follwing:

{"serviceErrorCode":100,"message":"Not enough permissions to access: GET /me","status":403}

I have also sought permission for the API.

Why is this happening?

Note: The "Default Application Permissions" of my app is set to "r_basicprofile".

2

2 Answers

0
votes

Please wait for about 2 hours after registration to get the permissions. Sometimes it take time to register for access.

0
votes

if i am correct, for the V2 you need a linkedin partnership : https://developer.linkedin.com/partner-programs

if you do not need the partnership program. use the v1 api.

https://api.linkedin.com/v1/people/~

this will work with your current permissions.