Closed MikieK-DH closed 4 years ago
Same here, api key works in other platform.
You're using the old API:
You need an API key for this one: https://apiportal.ns.nl/Products/NsApp
It should show up as "Ns-App" in your profile:
Feel free to re-open if it still won't work.
My new api, on the new portal, was created yesterday.
Problem found, wrong api key. Thanks!
Hi,
Can you please help me? The screen keeps saying "Error fetching NS info: invalid API key"
I've got an API-key for "Public-Travel-Information" on https://apiportal.ns.nl/. Tried both primaire and secondaire key and also generated new ones. Do I have the wrong API?
The code is the one from the readme file:
` { module: "nstreinen" , position: " top_right" , header: " Treinen vanaf Schiphol Airport" , config: { apiKey: "xxxxxxxxxxxxxxxxxxxxxx", fromStation: "SHL" } },
Thank you, Mike