linkedin.github.com icon indicating copy to clipboard operation
linkedin.github.com copied to clipboard

LinkedIn Public API Access

Open karan-bhatt opened this issue 5 years ago • 1 comments

I need help in accessing API to get other member profile. Here is the process I have done.

From LinkedIn API
https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=YOUR_CLIENT_ID&scope=r_liteprofile&state=123456&redirect_uri=http://localhost:3001

I have genereated auth-token which comes as parameter in code='...***...' then passed in into this API https://www.linkedin.com/oauth/v2/accessToken?grant_type=authorization_code&client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET&code=YOUR_AUTHORIZATION_CODE&redirect_uri=YOUR_REDIRECT_URI

It gave me access token. Now to access other members details from LinkedIn profile I have used API https://api.linkedin.com/v2/people/(id:{}) with Authorization : Bearer Access_Token but in response I got this

{ "serviceErrorCode": 100, "message": "Not enough permissions to access: GET /people/(id:%7Bvirti-shah-6a578b165%7D)", "status": 403 }

karan-bhatt avatar Jan 08 '21 09:01 karan-bhatt

@karan-bhatt would be able to achieve this somehow

SarthakGz avatar Nov 18 '21 05:11 SarthakGz