Code examples

One call in the languages most used in travel. Replace the key with yours and keep it on your server.

curl --max-time 5 "https://api.dondoo.com/v1/donts?iata=DXB&limit=5" \
  -H "X-API-Key: $DONDOO_KEY"

# The PDF, ready to attach to an email:
curl --max-time 15 "https://api.dondoo.com/v1/donts?iata=DXB&format=pdf" \
  -H "X-API-Key: $DONDOO_KEY" -o dondoo-donts-DXB.pdf

Good to know