Skip to content

Instantly share code, notes, and snippets.

@tapanpandita
Last active May 18, 2016 09:33
Show Gist options
  • Save tapanpandita/1c69d90eaabca4b07332bafc62be57ec to your computer and use it in GitHub Desktop.
Save tapanpandita/1c69d90eaabca4b07332bafc62be57ec to your computer and use it in GitHub Desktop.
import hypertrack
hypertrack.secret_key = '<SECRET_KEY>'
# Create a Customer
customer = hypertrack.Customer.create(
name='John Doe',
email='john@customer.com',
phone='+15555555555',
)
# Create a Destination for that customer
destination = hypertrack.Destination.create(
customer_id=customer.id,
address='270 Linden Street',
city='San Francisco',
country='US',
)
print customer, destination
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment