简体   繁体   中英

How can I find a different user profile using the LinkedIn API

What I want to do is use the LinkedIn API to access a arbitrary user profile, get the image (if there is a public one) and use that image. If a user is authenticated, I can get their image using:

https://api.linkedin.com/v1/people/~:(picture-url)?format=json

But I cannot figure out what to replace the tilda ( ~ ) with to find an arbitrary user (ie using an email address). If I simply put in the email address, it won't find the user.

Is it possible to get info from an arbitrary user profile (assuming that it is public)?

Thanks, Scott

It is not possible getting an arbitrary user informations by using LinkedIn API. The user must authenticate the application by his or her username and password.

However, this answer gives a working example how to access a profile by url. I suppose that adding picture-url will work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM