Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Old API not available anymore #7

Open
tuukka opened this issue Jun 20, 2017 · 1 comment
Open

Old API not available anymore #7

tuukka opened this issue Jun 20, 2017 · 1 comment

Comments

@tuukka
Copy link
Contributor

tuukka commented Jun 20, 2017

The old API used by this module seems to not be available anymore, but there seems to be a new API used by https://junatkartalla.vr.fi/

@JaniL
Copy link
Owner

JaniL commented Jul 2, 2017

Hi!

Yeah, I noticed some months ago already the announcement of shutting the old API down, but since I haven't really maintained this I didn't care to make any mention about it.

The new API seems to have these endpoints:

[GET] List trains

https://junatkartalla-cal-prod.herokuapp.com/trains/[requestTime]

requestTime - epoch time of when the http request to this endpoint is done.

[GET] Train info

https://junatkartalla-cal-prod.herokuapp.com/train/single/[trainId]

trainId - id of the train

I don't currently have much interest to update to module. It would be a total rewrite anyway, since I made the last version of it when I had no clue about promises or linters. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants