OAuth API
OAuth API allows receiving data for token.
PrintfulStoreClient.oauth
Get scopes for token
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();