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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for mitol-django-hubspot-api-2023.5.22.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0da4970e476ca42e0f01efc0195f39dd46498b49f001a9781a55e1a8cbf8764d |
|
MD5 | 2859d9a77ce67de80dea608c628e9e45 |
|
BLAKE2b-256 | 0c3798b1010ae10e6bcc80967ef8c4f9c6235a909d0217bd0e068b37ed1cb2e8 |
Close
Hashes for mitol_django_hubspot_api-2023.5.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4409431da202d6015add744b3d9e79d50b3838ca5b11fcd052785c390f5c7828 |
|
MD5 | 556850ad384b7c197ba6378c1109dc78 |
|
BLAKE2b-256 | e1a35674488353c1b79c419b7ede343f744e23bc24f1756a21e2c04b0f0a346a |