LinkedIn profile API returning 403

2019-08-24 03:54发布

问题:

I'm not a LinkedIn partner - so I got an access token with r_basicprofile scope (and not r_fullprofile which is not available to me). According to the docs - this api requires either r_basicprofile or r_fullprofile. However, I cannot get any of my calls to go through without returning a 403. Any ideas?

https://api.linkedin.com/v2/me

or (all basic profile fields) https://api.linkedin.com/v2/people/(id:{profile ID})?projection=(id,firstName,lastName,industryId~)

Thanks, Mike

回答1:

If you are not a current LinkedIn Partner, you do not have access to our v2 API just yet! Try making a similar request using our v1 API:

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

See https://developer.linkedin.com/docs/v1/people/profile-api for more information about the Profile API.



回答2:

Use this below sample project which can get all the profile details.just replace clientid and secret key in the config object. and run the project. may be this helps you somewhere, let me know if see any issues. https://github.com/kittucando/Get-member-profile-data-from-LinkedIn-Rest-Api