Module: FullContact::Client::Person
- Included in:
- FullContact::Client
- Defined in:
- lib/fullcontact/client/person.rb
Instance Method Summary collapse
-
#person(options = {}, faraday_options = {}) ⇒ Object
Returns extended information for a given person (email, phone, twitter or facebook).
Instance Method Details
#person(options = {}, faraday_options = {}) ⇒ Object
Returns extended information for a given person (email, phone, twitter or facebook)
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/fullcontact/client/person.rb', line 6 def person(={}, ={}) if .is_a?(String) raise ArgumentError, "Supplying an email address directly is not supported. Please use {email: #{}} instead." end if .has_key?(:facebookUsername) || .has_key?(:facebookId) raise ArgumentError, "Querying by Facebook ID or username is no longer supported. Please contact [email protected] for more information." end response = get('person', , false, ) format.to_s.downcase == 'xml' ? response['person'] : response end |