-
Notifications
You must be signed in to change notification settings - Fork 146
/
Copy pathflights.py
40 lines (39 loc) · 1.92 KB
/
flights.py
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
35
36
37
38
39
40
"""
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the license found in the
LICENSE file in the root directory of this source tree.
"""
def get_flights():
return [{
"flight_id": 1,
"document": 'https://github.com/fbsamples/whatsapp-api-examples/blob/main/send-messages-flight-app-python/FlightConfirmation.pdf',
"thumbnail": 'https://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/Aerial_view_of_Bajra_Sandhi_Monument_Denpasar_Bali_Indonesia.jpg/250px-Aerial_view_of_Bajra_Sandhi_Monument_Denpasar_Bali_Indonesia.jpg',
"origin": 'Singapore (SIN)',
"destination": 'Denpasar (DPS)',
"time": 'June 24, 2022 - 8:25 PM'
},
{
"flight_id": 2,
"document": 'https://github.com/fbsamples/whatsapp-api-examples/blob/main/send-messages-flight-app-python/FlightConfirmation.pdf',
"thumbnail": 'https://upload.wikimedia.org/wikipedia/commons/thumb/7/75/Parliament_at_Sunset.JPG/275px-Parliament_at_Sunset.JPG',
"origin": 'New York (JFK)',
"destination": 'London (LHR)',
"time": 'June 25, 2022 - 9:15 PM'
},
{
"flight_id": 3,
"document": 'https://github.com/fbsamples/whatsapp-api-examples/blob/main/send-messages-flight-app-python/FlightConfirmation.pdf',
"thumbnail": 'https://upload.wikimedia.org/wikipedia/commons/thumb/a/a0/Sydney_Australia._%2821339175489%29.jpg/250px-Sydney_Australia._%2821339175489%29.jpg',
"origin": 'Beijing (PEK)',
"destination": 'Sydney (SYD)',
"time": 'June 25, 2022 - 5:30 AM'
},
{
"flight_id": 4,
"document": 'https://github.com/fbsamples/whatsapp-api-examples/blob/main/send-messages-flight-app-python/FlightConfirmation.pdf',
"thumbnail": 'https://upload.wikimedia.org/wikipedia/commons/thumb/a/a5/Mouth_of_Miami_River_20100211.jpg/220px-Mouth_of_Miami_River_20100211.jpg',
"origin": 'São Paulo (GRU)',
"destination": 'Miami (MIA)',
"time": 'June 25, 2022 - 9:25 AM'
}]