简体   繁体   中英

Rails LinkedIn API gem

I am using the Rails LinkedIn API gem. https://github.com/pengwynn/linkedin/issues/141

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 I mean is will the underscore be a good substitute for the dash "-"?

I'm hoping these results would be organized by connection, as I've tried to do above with :sort => "connections"

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

Use :first_name only as the parameter.

first-name will not work !

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM