ProductsClient (hubspot3/products.py)

hubspot3 · hubspot3/products.py · python · MIT
crm, CRM / Leads

Python client for HubSpot products API with CRUD operations.

# Source: https://github.com/jpetrucciani/hubspot3 | License: MIT | Copyright 2023 Jacobi Petrucciani
# Provided via justclaw.it.com; keep this notice with the code.
"""
hubspot products api
"""

from typing import Dict, List, Optional
from hubspot3.base import BaseClient
from hubspot3.utils import prettify, get_log, ordered_dict


PRODUCTS_API_VERSION = "1"


class ProductsClient(BaseClient):
    """
    Products extension for products API endpoint
    :see: https://developers.hubspot.com/docs/methods/products/products-overview
    """

    def __init__(self, *args, **kwargs) -> None:
        """initialize a products client"""
        super(ProductsClient, self).__init__(*args, **kwargs)
        self.log = get_log("hubspot3.products")

    def get_product(
        self, product_id: str, p

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key