Пример #1
0
def nearest_airport(token, latitude, longitude):
    parameters = {
        'latitude': latitude,
        'longitude': longitude,
        'token': token
    }
    return get_response('flight_api/getNearestAirport', parameters)
Пример #2
0
def search(token, origin, destination, date, **kwargs):
    parameters = {
        'd': origin,
        'a': destination,
        'date': date,
        'token': token
    }
    return get_response('search/flight', parameters)
Пример #3
0
def search(token, origin, destination, date):
    parameters = {
        'd': origin,
        'a': destination,
        'date': date,
        'token': token
    }
    return get_response('search/train', parameters)
Пример #4
0
def search(token, keyword, startdate, night, adult=1):
    parameters = {
        'q': keyword,
        'startdate': startdate,
        'night': night,
        'adult': adult,
        'token': token
    }
    return get_response('search/hotel', parameters)
Пример #5
0
def nearest_airport(token, latitude, longitude):
    parameters = {'latitude': latitude, 'longitude': longitude, 'token': token}
    return get_response('flight_api/getNearestAirport', parameters)
Пример #6
0
def search(token, origin, destination, date, **kwargs):
    parameters = {'d': origin, 'a': destination, 'date': date, 'token': token}
    return get_response('search/flight', parameters)
Пример #7
0
def search(token, origin, destination, date):
    parameters = {'d': origin, 'a': destination, 'date': date, 'token': token}
    return get_response('search/train', parameters)