Skip to main content

OAuth API

OAuth API allows receiving data for token.

PrintfulStoreClient.oauth

Printful API Reference

Source


Get scopes for token

Printful API Reference

Returns a list of scopes associated with the token.

Method

PrintfulStoreClient.oauth.getScopes()

Arguments

None

Example Usage:

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, error, code} = await client.oauth.getScopes();