🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

printful-sdk-js

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

printful-sdk-js

Provides an SDK wrapper for JS/TS projects that require Printful Print-On-Demand API.

1.0.7
latest
Source
npm
Version published
Weekly downloads
33
230%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 21 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts