Created
June 22, 2016 05:30
-
-
Save tapanpandita/36696578227ace719ab06f01cafd6d35 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 = 'sk_fewbyitestvnl2122032' | |
data = {'name': name, 'vehicle_type': 'car', 'phone': '+16502469293', 'fleet_id': fleet_id, 'photo': open('/tmp/15.jpg')} | |
driver = hypertrack.Driver.create(**data) | |
customer = hypertrack.Customer.create(name='John Doe') | |
destination = hypertrack.Destination.create(customer_id=customer.id, address='Union Square', | |
city='San Francisco', state='California', | |
country='United States of America'}) | |
task = hypertrack.Task.create(destination_id=destination.id, action='delivery') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment