Skip to content

Commit 16a7305

Browse files
committed
update api
1 parent 58676c4 commit 16a7305

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FlightDealsStart/flight_search.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
class FlightSearch:
55
# This class is responsible for talking to the Flight Search API.
66
# https://tequila.kiwi.com/
7-
# https://api.tequila.kiwi.com/v2/search?
7+
# Docu -> https://tequila.kiwi.com/portal/docs/tequila_api/search_api
88

99
def __init__(self, api_key: str):
10-
self.__API_URL = ""
10+
self.__API_URL = f"https://api.tequila.kiwi.com/v2/search?fly_from={departure}&fly_to={arrival}"
1111
self.__HEADERS = {
1212
'Authorization': f'Basic {api_key}'
1313
}

0 commit comments

Comments
 (0)