GithubHelp home page GithubHelp logo

liftforward / fullcontact-api-ruby Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fullcontact/fullcontact-api-ruby

0.0 4.0 1.0 4.41 MB

A Ruby wrapper for the FullContact API

License: MIT License

Ruby 100.00%

fullcontact-api-ruby's Introduction

FullContact Ruby Gem

A Ruby wrapper for the FullContact API

Build Status Gem Version Code Climate Test Coverage

Changes

  • 0.10.0 - Support for FullContact Company API
  • 0.9.0 - Removed Rash gem and replaced with Mashify + Plisskin
  • 0.8.2 - Fix for 0.8.0 constant resolution issue.
  • 0.8.0
    • Hashie now allowed from [2.2, 4.0) to support a wide range of other applications
    • Default useragent includes version number for our own information
    • Useless XML mode and dep on multi_xml removed
    • Code reformatting & basic code hygiene, prep for new features in 0.9.0
  • 0.7.0 - Faraday 0.9.0
  • 0.6.0 - Removal of timeoutSeconds parameter. This parameter is automatically stripped from your request if included.

Installation

gem install fullcontact

Documentation

http://rdoc.info/gems/fullcontact

Usage Examples

    require "fullcontact"

    # This could go in an initializer
    FullContact.configure do |config|
        config.api_key = "fullcontact_api_key_goes_here"
    end
	
    # Get information about an email address
    person = FullContact.person(email: "[email protected]")
    
    # Get information about an email address, organized by hashes vs. lists
    person2 = FullContact.person(email: "[email protected]", style: "dictionary")
    
    # You can pass in any arbitrary parameters the Person API supports
    person3 = FullContact.person(email: "[email protected]", style: "dictionary", webhookUrl: "https://...")
    
    # Get information about a twitter handle
    person4 = FullContact.person(twitter: "brawest")

    # Get information about a facebook username
    person5 = FullContact.person(facebookUsername: "bart.lorang")
    
    # Get information from a phone number
    person6 = FullContact.person(phone:13037170414)

    # Get information about a company
    company1 = FullContact.company(domain: 'fullcontact.com')
    
    # Get information about a twitter and ensure a 30s socket open timeout and a 15s socket read timeout
    # Can throw a Faraday::Error::TimeoutError if timeouts are exceeded
    person7 = FullContact.person({:twitter => "brawest"}, {:request => {:timeout => 15, :open_timeout => 30}})

    # Get person's family_name
    puts person.contact_info.family_name

Contributions

  • Michael Rose (Xorlev)
  • Brandon West (bwest)
  • Ian Fisher (i-taptera)
  • Scott Watermasysk (scottwater)
  • Stefano Fontanelli (stefanofontanelli)
  • John Bachir (jjb)

License

Copyright (c) 2014 FullContact Inc. and contributors

See LICENSE for details.

fullcontact-api-ruby's People

Contributors

ajglover avatar brandonmwest avatar drewnichols avatar i-taptera avatar jjb avatar oagr avatar scottwater avatar stefanofontanelli avatar xorlev avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

acpk

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.