Is there a way to access LinkedIn API without a user

故事扮演 提交于 2019-12-08 19:24:58

问题


I'm building an application that gets data from LinkedIn using the REST API. When my user has a LinkedIn account, I use OAuth to authenticate and access the data on the user's behalf.

My problem is when the user doesn't have LinkedIn account. In such a case, I'd like to fallback to anonymous access and get very basic (and public) information from LinkedIn.

I saw in some other questions and discussions that in general, LinkedIn does not permit anonymous access to its API, but I also saw some hints about some APIs available also anonymously.

Is there absolutely no way to get any type of data out of LinkedIn API anonymously? Even the most basic data anyone could see in a user's public profile without logging in?


回答1:


Per the Terms of Use, it is not permitted to display API data to a non-authenticated user (section III(A)(1), III(A)(2)(g)). All data pulled from the API should be pulled by an authenticated user, using their OAuth credentials.

In terms of showing basic profile data anonymously, the Member Profile plugin was designed to do this.




回答2:


//Rest API to fetch loggedin user details

var lkdURL = "https://api.linkedin.com/v1/people/~:(id,location:(name),email-address,first-name,last-name)?oauth2_access_token="+LinkedSecurityKey+"&callback=yourfunction";

AJAX(lkdURL); // ajax call



来源:https://stackoverflow.com/questions/12353950/is-there-a-way-to-access-linkedin-api-without-a-user

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