printful-client-ts
v0.0.6
Published
Printful API client
Downloads
6
Readme
Printful Client
A fully typed, fully featured Node.JS Client written for https://printful.com/
Getting Started
Typescript Highly Recommended
This library mirrors the API 1:1 (with exception of the Ecommerce Sync API, Reports API comming soon)
import PrintfulClient, { PrintfulConfig } from "printful-client-ts"
const config = new PrintfulConfig("<API_KEY>")
const printful = new PrintfulClient(config)
const { fault, code, result, error } = await printful.products.getSyncProducts()
if (code == 200) {
console.log(result)
}
Faults
A fault occurs whenever the Printful API returns an unexpected error
Docs
WIP 🚧
2023 Imaginewear