Not enough permissions to access /me GET

一个人想着一个人 提交于 2019-12-20 02:31:04

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!