take-a-break
Number of APIs: 3
Given a date range, this is a Qodex collection allows you to find the best possible dates for a break so that a minimum number of leaves are taken. It is accessible directly from slack via /take-a-break
command.
Environment Variables
airtable_api_key
, goibibo_app_id
, goibibo_app_key
, Qodex_api_key
, slack_webhook
Command Parameters
from_date
: starting dateto_date
: ending datenum_of_days
: number of days in the breaksrc
: source airport IATA code(for searching flights)dest
: destination airport IATA code(for searching flights)
-
Get List of Holidays GET {{airtable_url}}?sort%5B0%5D%5Bfield%5D=date&sort%5B0%5D%5Bdirection%5D=asc&filterByFormula=AND(IS_AFTER(%7Bdate%7D%2C+DATETIME_PARSE('{{from_date}}'))%2C+IS_BEFORE(%7Bdate%7D%2C+DATETIME_PARSE('{{to_date}}')))
-
Search Available Flights GET http://developer.goibibo.com/api/search/?app_id={{goibibio_app_id}}&app_key={{goibibio_app_key}}&source={{src}}&destination={{dest}}&dateofdeparture={{flight_dep_date}}&seatingclass=E&adults=1&children=0&infants=0&counter=100
-
Handle Error POST {{response_url}}