Unable to access Linkedin profile with valid oauth2 access token

徘徊边缘 提交于 2019-12-05 20:02:43

Looks like you have oath2_access_token there instead of oauth_access_token ? Not sure if this is a hand-paste failure or the actual issue.

curl "https://api.linkedin.com/v1/people/~?format=json&oath2_access_token=############"

Try this it work for me

get('https://api.linkedin.com/v1/people/~?oauth2_access_token=*******&format=json');

Hope that help some one

This seems to be caused by triggering a security watchdog, i.e. after an invalid request or after requesting several access tokens without using them linkedin seems to stop validating tokens and responds 401 instead.

in fact you need to add the two following header : Authorization : Bearear #ACCESS TOKEN# x-li-src : msdk regards

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