Module: FullContact::Client::Company

Included in:
FullContact::Client
Defined in:
lib/fullcontact/client/company.rb

Instance Method Summary collapse

Instance Method Details

#company(options = {}, faraday_options = {}) ⇒ Object

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



6
7
8
9
10
11
12
13
# 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