Last active
September 30, 2020 22:42
-
-
Save anthonybudd/d7868dae9babc671d5c8c1002c0cd2c8 to your computer and use it in GitHub Desktop.
This file contains 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 Teleport = require('@ideea-inc/teleport-js'); | |
const teleport = new Teleport('API_KEY'); | |
teleport.create({ | |
group_id: 'c0f37b77-d7e3-428d-953a-3ace386762be', | |
data: '{arbitrary: "string"}', | |
pickup_name: 'Anthony Budd', | |
pickup_phone: '512-xxx-xxx', | |
pickup_address_line_1: '300 Bowie Street', | |
pickup_zipcode: '78703', | |
delivery_name: 'John Smith', | |
delivery_phone: '512-xxx-xxx', | |
delivery_address_line_1: '401 Brazos Street', | |
delivery_zipcode: '78701' | |
}).then(function (teleport) { | |
console.log(`New Teleport ID: ${teleport.id}`); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment