Skip to main content

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.companieslist, get, create, iter, contacts, iter_contacts
  • ah.leadslist, get, create, iter
  • ah.opportunitieslist, get, iter (status="open" | "won" | "lost" | "all")
  • ah.activitieslist, iter
  • ah.taskslist, get, iter (active_only=True|False)
  • ah.pipelineslist, 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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

askhinton-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

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

Hashes for askhinton-0.1.0.tar.gz
Algorithm Hash digest
SHA256 af087135d2516b6d3fc98386315b2b13e9959e20c7ce32a8ed4e45a5a762cb2a
MD5 27dcab208e1a72e648a1b80adf2e2315
BLAKE2b-256 c538b58fa9becd4ac84232d0b4777384a457d0e590800ae411fdaa16e0bd5e21

See more details on using hashes here.

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

Hashes for askhinton-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c2116dc58a444177c793a8e4f2baac6f19fbbdd2f4d5e81fe98ff0724e65e42
MD5 02075bd110645447b775f50815c4d9aa
BLAKE2b-256 afdecd1e81cbf26fd94a84f2b0e3003b02f62f70cd60a21fdd8eb85b8f22097f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page