Sha256: 2d04eb7812a5c514364c00bbea8a26dde1cda8174feb723b2b59c47f9d5975c7

Contents?: true

Size: 825 Bytes

Versions: 5

Compression:

Stored size: 825 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)
          warn "[DEPRECATION] supplying an email address directly is deprecated. Please use {email: #{options}} instead. This will be removed in 0.9.0."
          options = {:email => options}
        end

        if options.has_key?(:timeoutSeconds)
          options.delete(:timeoutSeconds)
          warn '[DEPRECATION] timeoutSeconds is no longer a supported parameter. It has been removed from your request.'
        end

        response = get('person', options, false, faraday_options)
        format.to_s.downcase == 'xml' ? response['person'] : response
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fullcontact-0.12.0 lib/fullcontact/client/person.rb
fullcontact-0.11.0 lib/fullcontact/client/person.rb
fullcontact-0.10.0 lib/fullcontact/client/person.rb
fullcontact-0.9.0 lib/fullcontact/client/person.rb
fullcontact-0.8.2 lib/fullcontact/client/person.rb