Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search for linkedin users by first and last name in network #141

Open
masterkrang opened this issue Dec 5, 2012 · 5 comments
Open

search for linkedin users by first and last name in network #141

masterkrang opened this issue Dec 5, 2012 · 5 comments
Labels

Comments

@masterkrang
Copy link

I am trying to search linked in users by first and last name and so far I've come up with this:

@profiles = linkedin_client.search(:first_name => fname, :last_name => lname, :sort => "connections", :fields => %w(id first-name last-name headline industry location api-standard-profile-request picture_url public_profile_url summary));

One question I have is, will ":first_name" work as the parameter "first-name"? What is mean is the underscore a good substitute for the dash ("-")?

The problem is that it will not return any results, even when I know the user's name exists. Thanks for the help!

@mmahalwy
Copy link

Did you get this to work? When i specify fields, it doesnt work.

@hexgnu
Copy link
Owner

hexgnu commented Nov 13, 2013

When I try and use search all I get is a 403 from linkedin even though my client is authorized for r_network. I'll keep messing around with it and see what I can find.

@hundredwatt
Copy link
Collaborator

@mmahalwy @hexgnu Is this possibly related to the notice on http://developer.linkedin.com/documents/people-search-api ?:

People Search API is a part of our Vetted API Access Program. You must apply here and
get LinkedIn's approval before using this API.

@hundredwatt
Copy link
Collaborator

Just tried this and got an exception: 'lib/linked_in/helpers/request.rb:49:in `raise_errors': (400): Unknown field {id} in resource {PeopleSearch} (LinkedIn::Errors::GeneralError'

The call succeeds and returns results if I don't specify fields as an argument

@hundredwatt
Copy link
Collaborator

This may be fixed by #186

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants