Ir para o conteúdo

hubspot

module wittgenstein_crm_client.adapters.hubspot

Classes

wittgenstein_crm_client.adapters.hubspot.HubSpotAdapter

class HubSpotAdapter()

Bases : BaseAsyncCRMClient

HubSpot CRM v3/v4 Client Adapter.

Methods

  • get_lead — Fetch a single lead company by ID and populate its associated contacts and deals.

  • list_leads — List companies matching a specific lifecycle/funnel stage.

  • update_stage — Update lifecyclestage in HubSpot and add a note explaining the transition reason.

  • add_activity — Create a HubSpot note associated with the company (lead).

  • create_task — Create a HubSpot task and assign it.

  • create_contact — Create a contact in HubSpot.

  • enroll_sequence — Enroll a contact into an automated HubSpot Sequence.

  • get_engagements — Fetch HubSpot engagement events (emails, meetings, calls) associated with a company.

wittgenstein_crm_client.adapters.hubspot.HubSpotAdapter.get_lead

async method HubSpotAdapter.get_lead(self, lead_id: str) → LeadRecord

Fetch a single lead company by ID and populate its associated contacts and deals.

wittgenstein_crm_client.adapters.hubspot.HubSpotAdapter.list_leads

async method HubSpotAdapter.list_leads(self, stage: FunnelStage, **filters) → List[LeadRecord]

List companies matching a specific lifecycle/funnel stage.

wittgenstein_crm_client.adapters.hubspot.HubSpotAdapter.update_stage

async method HubSpotAdapter.update_stage(self, lead_id: str, stage: FunnelStage, reason: str) → None

Update lifecyclestage in HubSpot and add a note explaining the transition reason.

wittgenstein_crm_client.adapters.hubspot.HubSpotAdapter.add_activity

async method HubSpotAdapter.add_activity(self, lead_id: str, activity: CRMActivity) → None

Create a HubSpot note associated with the company (lead).

wittgenstein_crm_client.adapters.hubspot.HubSpotAdapter.create_task

async method HubSpotAdapter.create_task(self, lead_id: str, assignee: str, briefing: str) → None

Create a HubSpot task and assign it.

wittgenstein_crm_client.adapters.hubspot.HubSpotAdapter.create_contact

async method HubSpotAdapter.create_contact(self, contact: ContactRecord) → str

Create a contact in HubSpot.

wittgenstein_crm_client.adapters.hubspot.HubSpotAdapter.enroll_sequence

async method HubSpotAdapter.enroll_sequence(self, contact_id: str, sequence_id: str) → None

Enroll a contact into an automated HubSpot Sequence.

wittgenstein_crm_client.adapters.hubspot.HubSpotAdapter.get_engagements

async method HubSpotAdapter.get_engagements(self, company_id: str, since: datetime) → List[EngagementEvent]

Fetch HubSpot engagement events (emails, meetings, calls) associated with a company.