Learn about the Closeio API at http://developer.close.io.
I ❤️ Close.io, so if you have problems using the gem or would like to see support for new endpoints, please open a GitHub issue -- I'll get it resolved as quick as I can.
Add this line to your application's Gemfile:
# in your Gemfile
gem 'closeio', '~> 2.0'
# then...
bundle install
client = Closeio::Client.new("api key")
# Find a specific lead
client.find_lead('lead_xxxxxxxxxxxx')
# See some data about the lead
lead.data.addresses
lead.data.contacts
lead.data.opportunities
# Find leads that match fields
client.list_leads('custom.favorite_color:"cornflower blue"')
# Create a lead
client.create_lead(
name: "Bluth Company",
contacts: [{
name: "Buster Bluth",
emails: [{type: "office", email: "[email protected]"}]
}]
)
# Saved Search (SmartView)
smart_view = client.list_smart_views
smart_views.leads
View the changelog This gem follows Semantic Versioning
Everyone is encouraged to help improve this project. Here are a few ways you can help:
- Report bugs
- Fix bugs and submit pull requests
- Write, clarify, or fix documentation
- Suggest or add new features
Copyright (c) 2015 Taylor Brooks. See LICENSE for details.