A proxy server for Public Transport Data eXchange
Features:
- Authorization
- In memory cache
- Authorization token for 5 min
- Each api endpoint for 30 seconds
- Deployment with now.sh
For more information & guide:
- ptx-api-documentation in Traditional Chinese
Deploy example:
# With now.sh
$now -e APP_ID="YOUR_APP_ID" -e APP_KEY="YOUR_APP_KEY"
# Without now.sh
$APP_ID="YOUR_APP_ID" APP_KEY="YOUR_APP_KEY" node index.js
# Test
$http "localhost:$PORT/MOTC/v2/Rail/TRA/Station?$top=10&$format=JSON"
$curl "localhost:$PORT/MOTC/v2/Rail/TRA/Station?$top=10&$format=JSON"