Skip to content

Instantly share code, notes, and snippets.

Last active Jan 18, 2016
What would you like to do?
Seattle delivery
from postmates import PostmatesAPI, DeliveryQuote, Delivery, Location, PostmatesAPIException
key = '[redacted]'
customer_id = '[redacted]'
api = PostmatesAPI(key, customer_id)
pickup = Location('Gather Food LLC', '1440 S. Jackson Street, Seattle, WA', '574-551-2847')
dropoff = Location('Bob', '1040 S. Jackson Street, Seattle, WA', '415-777-9999')
quote = DeliveryQuote(api, pickup.address, dropoff.address)
delivery = Delivery(api, 'a manifest', pickup, dropoff)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment