apollo-sdk-patterns

Featured

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".

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

# Apollo SDK Patterns ## Overview Production-ready patterns for Apollo.io API integration. Apollo has no official SDK — these patterns wrap the REST API (`https://api.apollo.io/api/v1/`) with type safety, retry logic, pagination, and bulk operations. All requests use the `x-api-key` header. ## Prerequisites - Completed `apollo-install-auth` setup - TypeScript 5+ with strict mode ## Instructions ### Step 1: Type-Safe Client with Zod Validation ```typescript // src/apollo/client.ts import axios, { AxiosInstance } from 'axios'; import { z } from 'zod'; const ConfigSchema = z.object({ apiKey: z.string().min(10, 'API key too short'), baseURL: z.string().url().default('https://api.apollo.io/api/v1'), timeout: z.number().default(30_000), }); let instance: AxiosInstance | null = null; export function getApolloClient(config?: Partial<z.input<typeof ConfigSchema>>): AxiosInstance { if (instance) return instance; const parsed = ConfigSchema.parse({ apiKey: config?.apiKey ?? process.env.APOLLO_API_KEY, ...config, }); instance = axios.create({ baseURL: parsed.baseURL, timeout: parsed.timeout, headers: { 'Content-Type': 'application/json', 'x-api-key': parsed.apiKey, }, }); return instance; } // Reset for testing export function resetClient() { instance = null; } ``` ### Step 2: Custom Error Classes ```typescript // src/apollo/errors.ts import { AxiosError } from 'axios'; export class ApolloApiError extends Error { constr...

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

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

abridge-sdk-patterns

Apply production-ready patterns for Abridge clinical AI integration. Use when building reusable Abridge client wrappers, implementing HIPAA-compliant error handling, or establishing team coding standards for healthcare AI. Trigger: "abridge SDK patterns", "abridge best practices", "abridge code patterns".

2,266 Updated today
jeremylongshore
AI & Automation Featured

hubspot-sdk-patterns

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".

2,266 Updated today
jeremylongshore
AI & Automation Featured

appfolio-sdk-patterns

Apply production-ready patterns for AppFolio REST API integration. Trigger: "appfolio patterns".

2,266 Updated today
jeremylongshore
AI & Automation Featured

apify-sdk-patterns

Production-ready patterns for Apify SDK and apify-client in TypeScript. Use when building Actors with Crawlee, managing datasets/KV stores, or implementing robust client wrappers with retry and validation. Trigger: "apify SDK patterns", "apify best practices", "apify client wrapper", "crawlee patterns", "idiomatic apify".

2,266 Updated today
jeremylongshore