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,944 stars 440 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
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category