Sha256: d4ab888bca4a2d6b2513fafd6cae123a6f61d30311aba22cc13664a5577dff2b
Contents?: true
Size: 785 Bytes
Versions: 7
Compression:
Stored size: 785 Bytes
Contents
module FullContact class Client module Person # Returns extended information for a given person (email, phone, twitter or facebook) # def person(options={}, faraday_options={}) if options.is_a?(String) raise ArgumentError, "Supplying an email address directly is not supported. Please use {email: #{options}} instead." end if options.has_key?(:facebookUsername) || options.has_key?(:facebookId) raise ArgumentError, "Querying by Facebook ID or username is no longer supported. Please contact support@fullcontact.com for more information." end response = get('person', options, false, faraday_options) format.to_s.downcase == 'xml' ? response['person'] : response end end end end
Version data entries
7 entries across 7 versions & 2 rubygems