Skip to main content

Django application for Hubspot API integration

Project description

mitol-django-hubspot-api

This is the Open Learning Hubspot API integration app. It provides helper functions for Hubspot CRM API calls:

  • CRUD functions for custom properties and property groups
  • CRUD functions for deals, line items, products, and contacts
  • Search/retrieve specific objects or lists of objects of a certain type

Getting started

pip install mitol-django-hubspot-api

Add the hubspot app:

INSTALLED_APPS = [
    ...
    "mitol.hubspot_api.apps.HubspotApp",
]

Settings

Hubspot app settings

All settings for the mitol-django-hubspot-api app are namespaced in django settings with MITOL_HUBSPOT_API prefix.

  • MITOL_HUBSPOT_API_PRIVATE_TOKEN - the private app token to be used for authentication (required)
  • MITOL_HUBSPOT_API_RETRIES - the number of times to retry API calls on failures (default=3)
  • MITOL_HUBSPOT_API_ID_PREFIX - a prefix used for generating custom unique object ids (default="app")

Usage

Instantiate an API client to make custom hubspot requests

from mitol.hubspot_api.api import HubspotApi, HubspotObjectType

client = HubspotApi()
client.crm.objects.basic_api.update(
    simple_public_object_input=input_body,
    object_id=123,
    object_type=HubspotObjectType.DEALS.value,
)

Use helper functions to make common hubspot requests

from mitol.hubspot_api.api import find_product

hubspot_product = find_product("Product #1", price="123.99")

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

mitol_django_hubspot_api-2026.4.29.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

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

mitol_django_hubspot_api-2026.4.29-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file mitol_django_hubspot_api-2026.4.29.tar.gz.

File metadata

File hashes

Hashes for mitol_django_hubspot_api-2026.4.29.tar.gz
Algorithm Hash digest
SHA256 8200deb262f0de5919ec53d4cc619d146d46c631e922099aad37de8065639a20
MD5 4801b3844adc8997190cd604667c57f0
BLAKE2b-256 defa70cae73f978781cde891019a46e7d35ec06e7adeda4a2d0f2afd5944e4e7

See more details on using hashes here.

File details

Details for the file mitol_django_hubspot_api-2026.4.29-py3-none-any.whl.

File metadata

File hashes

Hashes for mitol_django_hubspot_api-2026.4.29-py3-none-any.whl
Algorithm Hash digest
SHA256 ac5db6e463ec92c44f579f0db231cb5bc21bb94547db1bd6f1dd02df6149ee30
MD5 ece3a3c5cfd645ffdecd91689fd742f6
BLAKE2b-256 de3aed404aadc1237b6bf01c742899765bff0973555f3796360d393a22d4d257

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