Skip to content

Instantly share code, notes, and snippets.

@morgz
Created October 18, 2019 12:55
Show Gist options
  • Save morgz/7bc6823912ce04902f0905bf577c4c8e to your computer and use it in GitHub Desktop.
Save morgz/7bc6823912ce04902f0905bf577c4c8e to your computer and use it in GitHub Desktop.
Allmyles API Example
curl --include \
--request POST \
--header "Content-Type: application/json" \
--header "X-Auth-Token: INSERT_TOKEN" \
--header "Cookie: asdsadsafasasdasd" \
--data-binary "{
\"fromLocation\": \"BUD\",
\"toLocation\": \"LON\",
\"departureDate\": \"2014-05-15T00:00:00\",
\"returnDate\": \"2014-05-20T00:00:00\",
\"preferredAirlines\": [\"BA\"],
\"persons\":[
{
\"passengerType\":\"ADT\",
\"quantity\": 2
},
{
\"passengerType\":\"CHD\",
\"quantity\": 1
}
],
\"userData\": {
\"ip\": \"89.134.155.92\",
\"browser_agent\": \"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0\"
}
}" \
'https://dev.allmyles.com/v2.0/flights'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment