1.0.7 • Published 10 months ago

printful-sdk-js v1.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

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...

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago