A tiny ruby wrapper around Lusha API. The Lusha API enables you to enrich and authenticate the business profiles you utilize and offer.
Add this line to your application's Gemfile:
gem 'lushao'
And then execute:
$ bundle
Or install it yourself as:
$ gem install lushao
require 'lushao'
lushao = Lushao.new('Your secret API key')
Your secret API key. You can get it in your dashboard from https://dashboard.lusha.co/api
The person API lets you look up a person data based on his name and the company, or the domain of the company he works for. For example, you can get the person’s location, email and phone number, as well as his or her social network username.
result = lushao.find_person_with_company("intercom","Rob","Taylor")
result = lushao.find_person_with_company("intercom","Rob","Taylor","phoneNumbers")
result = lushao.find_person_with_company("intercom","Rob","Taylor","emailAddresses")
result = lushao.find_person_with_domain("intercom.com","Rob","Taylor")
result = lushao.find_person_with_domain("intercom.com","Rob","Taylor","phoneNumbers")
result = lushao.find_person_with_domain("intercom.com","Rob","Taylor","emailAddresses")
result.data.fetch(:phoneNumbers)
result.data.fetch(:emailAddresses)
The company API provides information about any organization you look for to help you get a complete picture, such as overview, social network presence and location.
result = lushao.find_company_with_name("intercom")
result = lushao.find_company_with_domain("intercom.com")
result.data.fetch(:description)
result.data.fetch(:domain)
result.data.fetch(:employees)
result.data.fetch(:founded)
result.data.fetch(:founders)
result.data.fetch(:logo)
result.data.fetch(:name)
result.data.fetch(:social)
result.data.fetch(:website)
if defined?(result.errors)
puts result.errors[:message]
else
# Accessing response and do some stuff
end
The lushao GEM is released under the MIT License.
- Fork it ( https://github.com/[my-github-username]/lushao/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request