Skip to main content

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")

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.7.9.tar.gz (10.0 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.7.9-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for mitol_django_hubspot_api-2026.7.9.tar.gz
Algorithm Hash digest
SHA256 412ad54663d739d9975769a215f08159bd0060c93050b1236f60853847a8c07e
MD5 11ce912a786145db5b720a83f12ffd1d
BLAKE2b-256 a752f0157b2263f933c49f93c76aae62c64b374e4d1217eb479e6c5ee019e7a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mitol_django_hubspot_api-2026.7.9-py3-none-any.whl
Algorithm Hash digest
SHA256 8dc715a5f409701fa3b87eee73402e127153edca48c63cc8cbf363ce7ad24314
MD5 b8d7988f55deeee2b411f987508e1bd5
BLAKE2b-256 1461ec525a8a99fe7903732b485d416aaf725a61e618abd21487fb4aa4c6a7b1

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 Sentry Error logging StatusPage Status page