sunil
sunil

Reputation: 45

LinkedIn connection search by first name and last name

Is there way to search first name and last name for linkedin connection filter using LinkedIn API?

Suppose I am authenticated by linkedIn and show connection in popup.LinkedIn connection response only 500 connection one time request. So I do paging 500 connection. But I want to send invitations to two persons, so I want to give search widget by first name and last name from my LinkedIn connections.

Upvotes: 0

Views: 3175

Answers (1)

Unpossible
Unpossible

Reputation: 10697

You could use the People Search API to search on first and last name, restricting the search to just your connections:

http://api.linkedin.com/v1/people-search?first-name=Clair&last-name=Smith&facet=network,F

Update:

In terms of 'filtering' the returned values to remove the current user making the call from the result set, you should check for the returned user's relationship to the viewer:

http://api.linkedin.com/v1/people-search:(people:(id,first-name,last-name,relation-to-viewer:(distance)))?first-name=Clair&last-name=Smith&facet=network,F

Then check the results, and remove the users that have a relation-to-user of 0.

Upvotes: 2

Related Questions