Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LinkedIn V2 version API "Not enough permissions to access /me GET"

Need Help Folks,

Does anyone able make call to LinkedIn V2/me version. I'm able to make successful API call to V1 version got response as member required information.

https://api.linkedin.com/v1/people/~:(id,first-name,last-name,email-address,headline,location,industry,picture-url,summary,positions,public-profile-url,site-standard-profile-request,last-modified-timestamp)?format=json

When calling https://api.linkedin.com/v2/me?format=json ,method :GET in postman by access token in header as part of Authorization.It is throwing below error

Response :

{

    "serviceErrorCode": 100,

    "message": "Not enough permissions to access: GET /me",

    "status": 403

}

I used the same OAuth2.0 access token for both V1 & V2 version. Since August 10 2015 have r_basicprofile permission for V1 version in LinkedIn consumer application platform.

There is no issue with V1 API calls from our application. Linkedin will be sunset V1 version so need to use public API's only as per restriction from LinkedIn side for X application DLP.

What are the LinkedIn public API endpoints & required API access permission ?

How to get r_liteprofile permission ?

I want basic member profile information like first-name, last-name, email-address, headline, location, industry, picture-url, summary, positions.

Which API have to call to get the above data ?

Thanks you in advance ):-

like image 398
Sravan Avatar asked Jan 07 '19 14:01

Sravan


1 Answers

If you are using V2 and you did not taken permission to use r_basicprofile then either apply for permission to use r_basicprofile to linkedin or use r_liteprofile + r_emailaddress

r_liteprofile for firstName,lastName,profilePicture,id r_emailaddress for getting emailAddress

Check this : https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/migration-faq?context=linkedin/consumer/context

like image 152
KPSingh Avatar answered Nov 14 '22 22:11

KPSingh