salesloft-sdk-patterns

Featured

Apply production-ready SalesLoft API patterns for TypeScript and Python. Use when building SalesLoft integrations, implementing pagination, or wrapping the REST API v2 with typed clients. Trigger: "salesloft SDK patterns", "salesloft best practices", "salesloft 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

# SalesLoft SDK Patterns ## Overview Production-ready patterns for the SalesLoft REST API v2. There is no official TypeScript/Python SDK -- build a typed wrapper around `https://api.salesloft.com/v2/` with automatic pagination, retry, and error normalization. ## Prerequisites - Completed `salesloft-install-auth` setup - `axios` or `node-fetch` installed - Familiarity with async/await and generics ## Instructions ### Step 1: Typed API Client Singleton ```typescript // src/salesloft/client.ts import axios, { AxiosInstance, AxiosError } from 'axios'; interface SalesloftPaging { per_page: number; current_page: number; total_pages: number; total_count: number; } interface SalesloftListResponse<T> { data: T[]; metadata: { paging: SalesloftPaging }; } interface SalesloftSingleResponse<T> { data: T; } let instance: AxiosInstance | null = null; export function getSalesloftClient(): AxiosInstance { if (!instance) { instance = axios.create({ baseURL: process.env.SALESLOFT_BASE_URL || 'https://api.salesloft.com/v2', headers: { Authorization: `Bearer ${process.env.SALESLOFT_API_KEY}` }, timeout: 30_000, }); // Add response interceptor for rate-limit headers instance.interceptors.response.use(undefined, handleRateLimitError); } return instance; } ``` ### Step 2: Automatic Pagination Iterator ```typescript // SalesLoft paginates with page/per_page params, max 100 per page async function* paginate<T>( endpoint: string, p...

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

salesforce-sdk-patterns

Apply production-ready Salesforce jsforce patterns for TypeScript and Python. Use when implementing Salesforce integrations, refactoring SDK usage, or establishing team coding standards for Salesforce. Trigger with phrases like "salesforce SDK patterns", "jsforce best practices", "salesforce code patterns", "idiomatic salesforce", "salesforce typescript".

2,266 Updated today
jeremylongshore
AI & Automation Featured

flexport-sdk-patterns

Apply production-ready Flexport API patterns for TypeScript and Python. Use when building typed HTTP clients, implementing pagination, or establishing team coding standards for Flexport logistics integration. Trigger: "flexport SDK patterns", "flexport best practices", "flexport client 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

appfolio-sdk-patterns

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

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