Skip to content

Instantly share code, notes, and snippets.

View ryleysevier's full-sized avatar
🐫

Ryley Sevier ryleysevier

🐫
  • Rubi Works
  • Denver
View GitHub Profile
@ryleysevier
ryleysevier / hubspot_deals_line_item_sample.py
Created January 3, 2024 17:01
Sample on how to efficiently query line items with python
import os, logging
from hubspot import HubSpot
from hubspot.crm.line_items import BatchReadInputSimplePublicObjectId
from hubspot.crm.associations import BatchInputPublicObjectId
def main():
# Initialize the API client
api_client = HubSpot(access_token='pat-na1-')