OAuth2Client (hubspot3/oauth2.py)

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

OAuth2 client for HubSpot API interactions.

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

from typing import Optional
from urllib.parse import urlencode
from hubspot3.base import BaseClient
from hubspot3.utils import get_log


OAUTH2_API_VERSION = "1"


class OAuth2Client(BaseClient):
    """
    The hubspot3 OAuth2 client uses the _make_request method to call the
    API for data.  It returns a python object translated from the json returned
    """

    def __init__(self, *args, **kwargs):
        """initialize a contacts client"""
        # Since this client is used to generate tokens for authentication, it does not require
        # authentication itself.
        kwargs["disable_auth

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

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

Get a free API key