linkedin-api icon indicating copy to clipboard operation
linkedin-api copied to clipboard

Get publicIdentifier

Open lukemaxwell opened this issue 6 years ago • 3 comments

I cannot find a method that returns publicIdentifier for the user profile. Does it exist somewhere?

The get_profile() method strips out the miniProfile field (and in fact it seems that Linkedin does not reliably populate the publicIdentifier field in miniProfile).

If not, perhaps a get_user_identifiers() method would be useful? It looks as though this data is available at /voyager/api/me. Happy to submit a pull request if helpful.

lukemaxwell avatar Jan 21 '20 10:01 lukemaxwell

Thanks for all your hard work on this project, its great!

lukemaxwell avatar Jan 21 '20 10:01 lukemaxwell

Thanks @lukemaxwell!

Great question. I'm looking now are you are correct, I don't think it exists on the get_profile() method.

I'd be happy to accept a pull request!

BTW: I get the public ID from running a search - each of the profiles returned in a search will contain a public_id which can be used

tomquirk avatar Feb 16 '20 21:02 tomquirk

@tomquirk Can you explain this a bit more with an example?

bevenky avatar Aug 23 '20 14:08 bevenky