-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
35 lines (30 loc) · 1.5 KB
/
test.py
File metadata and controls
35 lines (30 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
restaurant = {"name": "Lers Ros Thai",
"address": "307 Hayes St, San Francisco, CA 94102",
"long_lat": "37.776997, -122.421683",
"items": [["Jasmine Steamed Rice", 2.00],
["Sticky Rice", 2.50],
["Brown Rice", 2.50],
["Steamed Rice Noodle", 3.00],
["Cucumber Salad", 3.95],
["Sweet Sticky Rice", 4.95],
["Brown Rice & Peanut Sauce", 6.45],
["Jasmine Steamed Rice & Peanut Sauce", 5.95],
["Steamed Rice Noodle & Peanut Sauce", 6.95],
["Pad Kee Moo", 11.95],
["Pad See Ew", 11.95],
["Pad Thai", 11.95]],
"delivery_fee": 3.99
}
# total = calculate_price_with_tax()
# print restaurant
# curl -u a03e8608-cf6b-4441-ade2-696e2c437d6c: \
# -d “manifest=1 Stuffed Puppy” \
# -d “pickup_name=Puppies On-Demand” \
# -d “pickup_address=101 Market St, San Francisco, CA 94105” \
# -d “pickup_phone_number=555–555–5555” \
# -d “pickup_notes=Just come inside, give us order #123” \
# -d “dropoff_name=Alice Customer” \
# -d “dropoff_address=20 McAllister St, San Francisco, CA 94102” \
# -d “dropoff_phone_number=415–555–5555” \
# -d “quote_id=dqt_K7SCxZJzteH9R-” \
# -X POST https://api.postmates.com/v1/customers/cus_abc123/deliveries