Python client for HubSpot Companies API, providing CRUD and search 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 companies api
"""
from typing import List, Dict, Optional, Union
from hubspot3.base import BaseClient
from hubspot3.utils import prettify, get_log
COMPANIES_API_VERSION = "2"
class CompaniesClient(BaseClient):
"""
hubspot3 Companies client
:see: https://developers.hubspot.com/docs/methods/companies/companies-overview
"""
def __init__(self, *args, **kwargs):
super(CompaniesClient, self).__init__(*args, **kwargs)
self.log = get_log("hubspot3.companies")
def _get_path(self, subpath: str) -> str:
"""get the full api url for the given subpath on this client"""
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key