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")
Metadata
Release files for mitol-django-hubspot-api 2026.7.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mitol_django_hubspot_api-2026.7.9.tar.gz | 10.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mitol_django_hubspot_api-2026.7.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.2 kB
Release files / mitol_django_hubspot_api-2026.7.9.tar.gz
| Download URL | mitol_django_hubspot_api-2026.7.9.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
412ad54663d739d9975769a215f08159bd0060c93050b1236f60853847a8c07e
|
|
BLAKE2b-256 checksum How to use checksums |
a752f0157b2263f933c49f93c76aae62c64b374e4d1217eb479e6c5ee019e7a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Release files / mitol_django_hubspot_api-2026.7.9-py3-none-any.whl
| Download URL | mitol_django_hubspot_api-2026.7.9-py3-none-any.whl |
|---|---|
| Size | 14.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8dc715a5f409701fa3b87eee73402e127153edca48c63cc8cbf363ce7ad24314
|
|
BLAKE2b-256 checksum How to use checksums |
1461ec525a8a99fe7903732b485d416aaf725a61e618abd21487fb4aa4c6a7b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|