A convenient Python wrapper for the Close API.
- API docs: http://developer.close.com
- Support: support@close.com
pip install closeio
from closeio_api import Client
api = Client('YOUR_API_KEY')
# post a lead
lead = api.post('lead', data={'name': 'New Lead'})
# get 5 most recently updated opportunities
opportunities = api.get('opportunity', params={'_order_by': '-date_updated', '_limit': 5})
# fetch multiple leads (using search syntax)
lead_results = api.get('lead', params={
'_limit': 10,
'_fields': 'id,display_name,status_label',
'query': 'custom.my_custom_field:"some_value" status:"Potential" sort:updated'
})
Check out https://github.com/closeio/closeio-api-scripts for helpful scripts already written to accomplish some common tasks.
There are unofficial API clients available in other languages too, thanks to some awesome contributors:
- Ruby: simple example that uses RestClient, or use taylorbrook's gem
- PHP: simple example or https://github.com/loopline-systems/closeio-api-wrapper or https://github.com/TheDeveloper/closeio-php-sdk or one for use in Laravel
- Node.js: https://github.com/closeio/closeio-node
- C#: https://github.com/MoreThanRewards/CloseIoDotNet
- Elixir: https://github.com/nested-tech/closex or https://github.com/taylorbrooks/ex_closeio
- Go: https://github.com/veyo-care/closeio-golang-client or https://github.com/AnalyticalFlavorSystems/closeio-go