Skip to content

Instantly share code, notes, and snippets.

@mager
Last active January 18, 2016 18:28
Show Gist options
  • Save mager/af369a322753849dfce1 to your computer and use it in GitHub Desktop.
Save mager/af369a322753849dfce1 to your computer and use it in GitHub Desktop.
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)
delivery.create()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment