I am looking at this documentation page for LinkedIn API:https://developer.linkedin.com/documents/profile-api
They have an example there: https://developer.linkedin.com/documents/profile-api
I am trying to send them a url like this:
/people/id=297823:(connections)
because they seem to recommend that under the "Selecting the amount of detail returned" section, but it gives this error:
LinkedIn::Errors::NotFoundError: (404): Not Found
Any idea what I am doing wrong with the url?
Thanks!
It returns NOT FOUND because 297823
is not a valid profile id. Try with a valid id,
e.g.
nbqwYraDfd
is linked id of my linkedin profile, so below code works for me.
https://api.linkedin.com/v1/people/id=nbqwYraDfd:(connections)
p.s. notice that you need to authenticate in order to get this work.
Edit: (after comment)
To know your id, do this,
https://api.linkedin.com/v1/people/~:(id)
Use this to play with linkedin api,