LinkedIn profile API returning 403

2019-08-24 04:05发布

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

2条回答
Root(大扎)
2楼-- · 2019-08-24 04:42

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.

查看更多
成全新的幸福
3楼-- · 2019-08-24 04:43

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

查看更多
登录 后发表回答