问题
I got the Access Token (with scope: r_basicprofile r_emailaddress w_share) try with r_fullprofile too.
i'm based on this docs to authorize: https://developer.linkedin.com/docs/oauth2
Next i make request to the https://api.linkedin.com/v2/me endpoint
curl -H "Authorization: Bearer ACCESS_TOKEN"
-H "Accept: application/json"
-H "Content-Type: application/json"
Get response:
{
"serviceErrorCode": 100,
"message": "Not enough permissions to access /me GET ",
"status": 403
}
Realy dont know why?
回答1:
LinkedIn API is private. You need to request authorisation from them: https://business.linkedin.com/marketing-solutions/marketing-partners/become-a-partner/marketing-developer-program
回答2:
Turns out that with the new v2 of the API you need to use the r_liteprofile
and r_emailaddress
scopes.
https://docs.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin
来源:https://stackoverflow.com/questions/50363237/not-enough-permissions-to-access-me-get