tomquirk / linkedin-api

👨‍💼 LinkedIn API for Python (2024)
MIT License
1.82k stars 412 forks source link

Get publicIdentifier #80

Open lukemaxwell opened 4 years ago

lukemaxwell commented 4 years ago

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 commented 4 years ago

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

tomquirk commented 4 years ago

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

bevenky commented 4 years ago

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