hubspot-sdk-patterns

Featured

Apply production-ready @hubspot/api-client SDK patterns for TypeScript. Use when implementing HubSpot integrations, building typed wrappers, or establishing team standards for HubSpot CRM operations. Trigger with phrases like "hubspot SDK patterns", "hubspot best practices", "hubspot typed client", "hubspot api-client wrapper", "idiomatic hubspot".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# HubSpot SDK Patterns ## Overview Production-ready patterns for the `@hubspot/api-client` SDK covering typed wrappers, error handling, batch operations, and pagination. ## Prerequisites - `@hubspot/api-client` v13+ installed - TypeScript 5+ with strict mode - Understanding of HubSpot CRM object model ## Instructions ### Step 1: Typed Client Wrapper ```typescript // src/hubspot/client.ts import * as hubspot from '@hubspot/api-client'; import type { SimplePublicObjectInputForCreate, SimplePublicObject, PublicObjectSearchRequest, } from '@hubspot/api-client/lib/codegen/crm/contacts'; interface HubSpotConfig { accessToken: string; retries?: number; } let instance: hubspot.Client | null = null; export function getClient(config?: HubSpotConfig): hubspot.Client { if (!instance) { instance = new hubspot.Client({ accessToken: config?.accessToken || process.env.HUBSPOT_ACCESS_TOKEN!, numberOfApiCallRetries: config?.retries ?? 3, }); } return instance; } ``` ### Step 2: Error Classification ```typescript // src/hubspot/errors.ts export class HubSpotApiError extends Error { constructor( message: string, public readonly statusCode: number, public readonly category: string, public readonly correlationId: string, public readonly retryable: boolean ) { super(message); this.name = 'HubSpotApiError'; } } export function classifyError(error: any): HubSpotApiError { const status = error?.code || error?.statusCo...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

apollo-sdk-patterns

Apply production-ready Apollo.io SDK patterns. Use when implementing Apollo integrations, refactoring API usage, or establishing team coding standards. Trigger with phrases like "apollo sdk patterns", "apollo best practices", "apollo code patterns", "idiomatic apollo", "apollo client wrapper".

2,266 Updated today
jeremylongshore
AI & Automation Featured

klaviyo-sdk-patterns

Apply production-ready Klaviyo SDK patterns for the klaviyo-api package. Use when implementing Klaviyo integrations, refactoring SDK usage, or establishing team coding standards for Klaviyo API calls. Trigger with phrases like "klaviyo SDK patterns", "klaviyo best practices", "klaviyo code patterns", "idiomatic klaviyo", "klaviyo wrapper".

2,266 Updated today
jeremylongshore
AI & Automation Featured

instantly-sdk-patterns

Apply production-ready Instantly.ai API client patterns for TypeScript and Python. Use when building reusable API wrappers, implementing retry logic, or establishing coding standards for Instantly integrations. Trigger with phrases like "instantly SDK patterns", "instantly best practices", "instantly client wrapper", "instantly code patterns", "idiomatic instantly".

2,266 Updated today
jeremylongshore
AI & Automation Featured

clickup-sdk-patterns

Production-ready ClickUp API v2 client patterns with typed wrappers, error handling, caching, and multi-tenant support. Trigger: "clickup client wrapper", "clickup SDK patterns", "clickup best practices", "clickup typescript client", "clickup API wrapper", "production clickup code".

2,266 Updated today
jeremylongshore
AI & Automation Featured

hubspot-integration

Expert patterns for HubSpot CRM integration including OAuth authentication, CRM objects, associations, batch operations, webhooks, and custom objects. Covers Node.js and Python SDKs.

39,227 Updated today
sickn33