简体   繁体   English

Rails LinkedIn API宝石

[英]Rails LinkedIn API gem

I am using the Rails LinkedIn API gem. 我正在使用Rails LinkedIn API gem。 https://github.com/pengwynn/linkedin/issues/141 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"? 我有一个问题,“:first_name”是否可以用作参数“ 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" 我希望这些结果可以按连接进行组织,就像我上面尝试使用: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用作参数。

first-name will not work ! 名将不起作用!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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