TicketsClient (hubspot3/tickets.py)

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

Client for HubSpot CRM tickets API to create, update, and retrieve tickets programmatically.

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

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


TICKETS_API_VERSION = "1"


class TicketsClient(BaseClient):
    """
    hubspot3 Tickets client
    :see: https://developers.hubspot.com/docs/methods/tickets/tickets-overview
    """

    def __init__(self, *args, **kwargs):
        """initialize a tickets client"""
        super(TicketsClient, self).__init__(*args, **kwargs)
        self.log = get_log("hubspot3.tickets")

    def _get_path(self, subpath):
        """tickets subpath generator"""
        return f"crm-objects/v{TICKETS_A

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

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

Get a free API key