Skip to content

Instantly share code, notes, and snippets.

@tapanpandita
Created June 22, 2016 05:30
Show Gist options
  • Save tapanpandita/36696578227ace719ab06f01cafd6d35 to your computer and use it in GitHub Desktop.
Save tapanpandita/36696578227ace719ab06f01cafd6d35 to your computer and use it in GitHub Desktop.
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