Releases: spencerlepine/printify-sdk-js
Releases · spencerlepine/printify-sdk-js
v1.3.0
What's Changed
- Added support for V2 endpoints.
- Removed verbose stack trace from errors.
Full Changelog: v1.2.0...v1.3.0
v1.2.0
What's Changed
- fix typescript exports (#29, #28) by @spencerlepine in #31
Full Changelog: v1.1.0...v1.2.0
Usage with TypeScript
npm i [email protected]
import Printify from 'printify-sdk-js'; // >= v1.2.0
import type { ListWebhooksResponse, Webhook, Product } from 'printify-sdk-js'; // new
const printify = new Printify({ shopId: '123456', accessToken: process.env.PRINTIFY_API_TOKEN });
const result: ListWebhooksResponse = await printify.webhooks.list();
const webhook: Webhook = result[0];
console.log(webhook); // { "topic": "order:created", "url": "https://example.com/webhooks/order/created", "shop_id": "1", "id": "5cb87a8cd490a2ccb256cec4" }
v1.1.0
v1.0.2
v1.0.1
[1.0.1] - 2024-07-29
Documentation update for TypeScript support
v1.0.0
[1.0.0] - 2024-07-26
Initial release for Printify API v1