Last active
May 18, 2016 09:33
-
-
Save tapanpandita/1c69d90eaabca4b07332bafc62be57ec 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
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