How can I verify a LinkedIn access token?

不想你离开。 提交于 2019-11-29 09:10:55

问题


How can I verify a LinkedIn access token?

I need to check if an access token is valid or not?

ex: in Facebook

https://graph.facebook.com/me?access_token=access_token

Is there a similar way to do it in LinkedIn?


回答1:


I found that it can be done like this:

https://api.linkedin.com/v1/people/~?oauth2_access_token=YOUR-ACCESS-TOKEN

and that's it :).




回答2:


Additionally, you can filter the values:

https://api.linkedin.com/v1/people/~:(id,first-name,last-name,headline,picture-url,location,industry,current-share,num-connections,summary,specialties,positions)?format=json&oauth2_access_token={0}


来源:https://stackoverflow.com/questions/37115035/how-can-i-verify-a-linkedin-access-token

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