Last active
July 15, 2019 20:05
-
-
Save anthonybudd/24a12e2df8298a997a94a4cdbb00c396 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const TPS = require('3ps-js'); | |
var tps = new TPS('a2ba8bdf52b64f42e6ade726d50b669902d0ab964755c68d8ac2bb11ae022332'); | |
var componentID = 'f16f83ca-31f1-49d0-add5-016cb251f3a5' // T-Rex | |
// var componentID = '84a4ce43-f145-45a6-8260-b96fc109fd85' // Skull | |
// var componentID = '945da150-79f7-4f07-bdbe-429e81b2e7cc' // Moai | |
var job = { | |
group_id: YOUR_GROUP_ID, | |
component_id: componentID, | |
color: 'silver', // blue, black, white, gray, silver, red, orange, yellow, glow-in-the-dark | |
address_line_1: '', | |
address_line_2: '', | |
zipcode: '', | |
city: '', | |
state: '', | |
country: 'United States of America', | |
delivery_instructions: '', | |
} | |
tps.job.demoPrint(job) | |
.then(response => console.log(response)) | |
.catch(err => console.error(err)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment