Skip to content

Instantly share code, notes, and snippets.

@anthonybudd
Last active September 30, 2020 22:42
Show Gist options
  • Save anthonybudd/d7868dae9babc671d5c8c1002c0cd2c8 to your computer and use it in GitHub Desktop.
Save anthonybudd/d7868dae9babc671d5c8c1002c0cd2c8 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',
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