SeviBus
SeviBus copied to clipboard
Tussam API has changed
It seems like tussam people have just released a brand new REST API, making this app and others using the old API stop working. Me and a friend already have already done some research about the new API and how it works. If you want further info or need some help for making the required changes in the APP in order to make it work again, just ask for it.
Hi @alesanmed! Thanks for the heads up :)
Turns out the API is wrapped in a middleware server, so it can be fixed without updating the app. More precisely, the API parsing is done here https://github.com/Sloy/sevibus-api-spring/blob/master/src/main/java/com/sloydev/sevibus/api/data/arrivals/AppTussamArrivalTimesRepository.java
I know about the new JSON API, but didn't find time to migrate it. I might try to do it during the weekend, but if you have knowledge about Java and Spring feel free to open a PR ;)
I'm also facing this problem with the Alexa skill (https://www.amazon.es/Antonio-G%C3%A1mez-Autobuses-de-Sevilla/dp/B07G19L52X). Currently I'm modeling the new Tussam REST API using OpenAPI, so that it is easier to automatically consume the API. As soon as I finish, I'll share it with you guys.
Here you have an initial draft of the API docs: https://app.swaggerhub.com/apis/antgamdia/tussam-rest/1.0 :)
Hello @antgamdia, I'm trying to consume the REST API but I need to authenticate myself and I'm not able to find where to obtain some credentials, would you help me?
Hello all. I would like to know how to use the rest api? Anyone can to help me?
Greeting.
AFAIK, the API still works as in the documentation I posted some time ago. To authenticate, due to recent changes in the authentication system, you need to: either create an account in Tussam (via the phone app, for example) and use these credentials or reach out to [email protected]
and let them know your use case.
Thank you, antgamdia.
I tried with app credentials but I didn't get, so I have written them, I am waiting a response.
Greetings.