salesloft-upgrade-migration

Featured

Migrate between SalesLoft API versions and handle breaking changes. Use when SalesLoft announces API deprecations, upgrading OAuth flows, or transitioning from legacy endpoints. Trigger: "upgrade salesloft", "salesloft migration", "salesloft API version".

AI & Automation 2,926 stars 433 forks Updated yesterday 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 Upgrade & Migration ## Overview SalesLoft REST API is versioned at v2 with no official SDK -- migrations involve endpoint changes, auth flow updates, and response schema changes. The Cadence Import/Export API was a major addition. Key migration: SalesLoft rebranded some endpoints and added OAuth client credentials flow. ## Migration Scenarios ### Legacy API Key to OAuth 2.0 ```typescript // BEFORE: Static API key (being deprecated for partner apps) const api = axios.create({ headers: { Authorization: `Bearer ${process.env.SALESLOFT_API_KEY}` }, }); // AFTER: OAuth 2.0 with token refresh class SalesloftOAuthClient { private tokenStore: { access: string; refresh: string; expiresAt: number }; async getClient() { if (Date.now() > this.tokenStore.expiresAt * 1000 - 300_000) { await this.refreshToken(); } return axios.create({ baseURL: 'https://api.salesloft.com/v2', headers: { Authorization: `Bearer ${this.tokenStore.access}` }, }); } private async refreshToken() { const { data } = await axios.post('https://accounts.salesloft.com/oauth/token', { grant_type: 'refresh_token', refresh_token: this.tokenStore.refresh, client_id: process.env.SALESLOFT_CLIENT_ID, client_secret: process.env.SALESLOFT_CLIENT_SECRET, }); this.tokenStore = { access: data.access_token, refresh: data.refresh_token, expiresAt: Math.floor(Date.now() / 1000) + data.expires_in, }; } } ``` ##...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category