pulls the departure data
This commit is contained in:
parent
c78e1d501f
commit
ceb7ce72ba
|
@ -10,11 +10,12 @@ airport = 'EBBR'
|
|||
payload = {'max_pages': 2}
|
||||
auth_header = {'x-apikey':config.FLIGHTAWAREKEY}
|
||||
|
||||
response = requests.get(apiUrl + f"airports/{airport}/flights",
|
||||
response = requests.get(apiUrl + f"airports/{airport}/flights/scheduled_departures",
|
||||
params=payload, headers=auth_header)
|
||||
|
||||
if response.status_code == 200:
|
||||
print(response.json())
|
||||
departures = response.json()
|
||||
print(departures)
|
||||
else:
|
||||
print("Error executing request")
|
||||
|
||||
|
|
Loading…
Reference in a new issue