README
__ _______ .___________..______ ___ _______ ___ .______
| | | ____|| || _ \ / \ | \ / \ | _ \
| | | |__ `---| |----`| |_) | / ^ \ | .--. | / ^ \ | |_) |
.--. | | | __| | | | / / /_\ \ | | | | / /_\ \ | /
| `--' | | |____ | | | |\ \----./ _____ \ | '--' | / _____ \ | |\ \----.
\______/ |_______| |__| | _| `._____/__/ \__\ |_______/ /__/ \__\ | _| `._____|
Setup
npm install --python=python2.7
python is necessary to install zopfli
Deploy
npm install -g flightplan
fly staging
or
fly staging --branch=test
How to send request
RT
D.send('start_search', { params: { "segments": [{ "origin": "LED", "destination": "HKT", "date": "2015-03-20" }, { "origin": "HKT", "destination": "LED", "date": "2015-03-28" }], "passengers": { "adults": 1, "children": 0, "infants": 0 }, "trip_class": "Y", "locale": "ru", "host": "search.aviasales.ru", "marker": "12491", "currency": "rub" }, sort_order: 'price' }, 'console')
OW
D.send('start_search', { params: { "segments": [{ "origin": "LED", "destination": "HKT", "date": "2015-03-20" }], "passengers": { "adults": 1, "children": 0, "infants": 0 }, "trip_class": "Y", "locale": "ru", "host": "search.aviasales.ru", "marker": "12491", "currency": "rub" }, sort_order: 'price' }, 'console')