Use the JavaScript, React, or Node SDK for type-safe integration.
@shippulse/sdk-js)Universal SDK for browser and Node.js:
npm install @shippulse/sdk-js
import { ShipPulse } from '@shippulse/sdk-js';
const sp = new ShipPulse({ apiKey: 'sp_your_key' });
const testimonials = await sp.testimonials.list({ limit: 10 });
@shippulse/sdk-react)React hooks and components:
npm install @shippulse/sdk-react
import { useTestimonials } from '@shippulse/sdk-react';
function Wall() {
const { data, isLoading } = useTestimonials({ limit: 10 });
// render...
}
@shippulse/sdk-node)Server-side SDK with a CLI for scripting:
npm install -g @shippulse/sdk-node
shippulse testimonials list --project proj_xxx
See the full SDK Reference for all available methods and options.
Was this helpful?
If you have more questions, email us at [email protected]