Official Python SDK for the AskHinton CRM API.
Project description
askhinton
Official Python SDK for the AskHinton CRM API.
pip install askhinton
Quickstart
from askhinton import AskHinton
ah = AskHinton(api_key="ahk_...")
# Single page
page = ah.companies.list(limit=25)
print(page.count, len(page.items), page.next_cursor)
# Auto-paginated iterator — handles cursors for you
for lead in ah.leads.iter():
print(lead["companyName"])
# Create a record
new = ah.companies.create(name="Acme Corp", industry="SaaS")
print(new["id"])
Reads ASKHINTON_KEY from the environment when api_key isn't passed.
What's covered
ah.companies—list,get,create,iter,contacts,iter_contactsah.leads—list,get,create,iterah.opportunities—list,get,iter(status="open" | "won" | "lost" | "all")ah.activities—list,iterah.tasks—list,get,iter(active_only=True|False)ah.pipelines—list,get,iter
Every iter() paginates automatically with cursors — no manual after/limit bookkeeping.
Errors
from askhinton import AskHinton, AskHintonError
try:
ah.companies.get("not-real")
except AskHintonError as e:
print(e.status, e.body)
License
Apache-2.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
askhinton-0.1.0.tar.gz
(3.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file askhinton-0.1.0.tar.gz.
File metadata
- Download URL: askhinton-0.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af087135d2516b6d3fc98386315b2b13e9959e20c7ce32a8ed4e45a5a762cb2a
|
|
| MD5 |
27dcab208e1a72e648a1b80adf2e2315
|
|
| BLAKE2b-256 |
c538b58fa9becd4ac84232d0b4777384a457d0e590800ae411fdaa16e0bd5e21
|
File details
Details for the file askhinton-0.1.0-py3-none-any.whl.
File metadata
- Download URL: askhinton-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c2116dc58a444177c793a8e4f2baac6f19fbbdd2f4d5e81fe98ff0724e65e42
|
|
| MD5 |
02075bd110645447b775f50815c4d9aa
|
|
| BLAKE2b-256 |
afdecd1e81cbf26fd94a84f2b0e3003b02f62f70cd60a21fdd8eb85b8f22097f
|