我得到了访问令牌(范围:r_basicprofile r_emailaddress w_share)也尝试使用r_fullprofile。
我根据这个文档授权:https://developer.linkedin.com/docs/oauth2
接下来我向https://api.linkedin.com/v2/me终点
curl -H "Authorization: Bearer ACCESS_TOKEN"
-H "Accept: application/json"
-H "Content-Type: application/json"
得到回复:
{
"serviceErrorCode": 100,
"message": "Not enough permissions to access /me GET ",
"status": 403
}
实在不知道为什么?
事实证明,对于新的 API v2,您需要使用r_liteprofile
and r_emailaddress
scopes.
https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)