Not enough permissions to access /me GET

2020-04-11 06:49发布

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?

2条回答
ゆ 、 Hurt°
2楼-- · 2020-04-11 07:09
不美不萌又怎样
3楼-- · 2020-04-11 07:18

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

查看更多
登录 后发表回答