File Library API
You can use this API to directly add files to the library, and later use File IDs when creating orders.
PrintfulStoreClient.fileLibrary
Add a new file
Adds a new File to the library by providing URL of the file.
Method
PrintfulStoreClient.fileLibrary.addFile(fileData: File)
Arguments
fileData
- Information about file being added
Example Usage:
//Soon to be added
Get file
Returns information about the given file.
Method
PrintfulStoreClient.fileLibrary.getFile(id: number | string)
Arguments
id
- File ID.
Example Usage:
//Soon to be added
Return available thread colors from provided image URL
Returns colors in hexadecimal format.
Returned thread colors are matched as closely as possible to provided image colors.
Method
PrintfulStoreClient.fileLibrary.getThreadColors(file_url: string)
Arguments
file_url
- URL to file
Example Usage:
//Soon to be added