You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
224 B
9 lines
224 B
4 years ago
|
#!/bin/bash
|
||
|
|
||
|
USERNAME='<EMAIL ADRESS>'
|
||
|
PASSWORD='<Your password>'
|
||
|
START='Amsterdam'
|
||
|
EIND='Utrecht'
|
||
|
|
||
|
curl "http://$USERNAME:$PASSWORD@webservices.ns.nl/ns-api-treinplanner?fromStation=$START\&toStation=$EIND\&departure=true"
|