module FullContact::Client::Company

Public Instance Methods

company(options={}, faraday_options={}) click to toggle source

Returns extended information for a given company (email, phone, twitter or facebook)

# File lib/fullcontact/client/company.rb, line 6
def company(options={}, faraday_options={})
  url = "company/lookup"
  if options[:companyName]
    url = "company/search"
  end
  response = get(url, options, false, faraday_options)
  format.to_s.downcase == 'xml' ? response['response'] : response
end