Skip to content

jasonwbarnett/closeio-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Close.io API

A convenient Python wrapper for the Close.io API.

See the developer docs at http://developer.close.io. For any questions or issues, please contact support(at)close(dot)io.

Sample Usage

from closeio_api import Client
import urllib

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', data={'_order_by': '-date_updated', '_limit': 5})

# fetch multiple leads (using search syntax)
lead_results = api.get('lead', data={
    '_limit': 10,
    '_fields': 'id,display_name,status_label',
    'query': 'custom.my_custom_field:"some_value" status:"Potential" sort:updated'
})

Check out scripts/ for more detailed examples.

Running a script

$ git clone git@github.com:closeio/closeio-api.git
$ cd closeio-api
$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ python script/merge_leads.py -k MYAPIKEY 
...

Other Languages

Thanks to our awesome users, other languages are supported, too:

About

Python API Client & Examples for Close.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%