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.5.6.tar.gz (9.7 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.5.6-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for mitol_django_hubspot_api-2026.5.6.tar.gz
Algorithm Hash digest
SHA256 0611eb4b655cf67f47f017736dc2dfd35ad525be835f4b343dd7d65f82a82a43
MD5 27459443b122adfc35cee7628d000bd6
BLAKE2b-256 f6a8fd40549336983c7c3c7b9fce1368e8a6be4ce69f97a5ca23f60d485e8eaa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mitol_django_hubspot_api-2026.5.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3ea91911f131b5dc8edaa342f7366f1e51c98c3a550dc8504bd5c80f9bb772b1
MD5 331b664d7758282169395dee5a49d01b
BLAKE2b-256 b274cbaf4816ae1ef5cf7e1ec94312b31f7ec6f5e804aa1b2564079eaeb61d21

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