printful-sdk-js
v1.0.7
Published
Provides an SDK wrapper for JS/TS projects that require Printful Print-On-Demand API.
Downloads
11
Readme
Printful API SDK for JavaScript Developers
Disclaimer:
This is an unofficial SDK written by community members for the Printful API as described at the following link.
The package and repository are not developed, maintained, nor supported by Printful® Inc or its associates.
The original author of the package developed the SDK to use it in his projects that require Print-On-Demand services. He is merely sharing it with fellow developers who are looking for such a solution.
If you come across any issues while using the package, please submit an issue on GitHub first before checking with Dev Support at Printful.
Installation
npm i printful-sdk-js
Usage
Basic Example in Code
import {createPrintfulStoreClient} from "printful-sdk-js";
const STORE_TOKEN = "YOUR STORE TOKEN";
const client = createPrintfulStoreClient(STORE_TOKEN);
// Must call within an async block
const {result: products, error} = await client.catalog.getAllProducts();
if (error){
console.error(error);
}
else{
console.table(products);
}
QUESTION: But where can I get an access token to the API?
ANSWER: Read the following guide on Prinful API Docs on Authentication.
Documentation
Full Docs 🚧Still WIP🚧
More examples are in the process of being composed. I will provide a link soon.
Testing
WIP Coming soon...
Contribution
WIP Coming soon...
Planned Features
WIP Coming soon...