Skip to content

Instantly share code, notes, and snippets.

@anthonybudd
Created June 21, 2020 12:16
Show Gist options
  • Save anthonybudd/13169172286dbd3cbe2e7c60134bc0cd to your computer and use it in GitHub Desktop.
Save anthonybudd/13169172286dbd3cbe2e7c60134bc0cd to your computer and use it in GitHub Desktop.
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',
pickup_city: "Austin",
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