from amadeus import Client, ResponseError, Location
import json

amadeus = Client(
    client_id='GhqPAO6xT4P7Et2qKrWrsH0Xakr4Kavb',
    client_secret='3KREJOyBX8SAzXAM'
    # http=ssl_disabled_urlopen
)
try:
    response = amadeus.shopping.flight_offers_search.get(
        originLocationCode='MAD',
        destinationLocationCode='ATH',
        departureDate='2024-01-26',
        adults = 1
        )
    resp = json.dumps(response.data, indent=4)
    resp = json.loads(resp)
    # print(resp)
    # print(resp)
except ResponseError as error:
    print(error)