SeviBus icon indicating copy to clipboard operation
SeviBus copied to clipboard

Tussam API has changed

Open alesanmed opened this issue 5 years ago • 7 comments

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.

alesanmed avatar Dec 20 '18 12:12 alesanmed

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 ;)

Sloy avatar Dec 20 '18 12:12 Sloy

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.

antgamdia avatar Dec 20 '18 12:12 antgamdia

Here you have an initial draft of the API docs: https://app.swaggerhub.com/apis/antgamdia/tussam-rest/1.0 :)

antgamdia avatar Dec 20 '18 17:12 antgamdia

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?

JaviToro avatar Jun 17 '22 08:06 JaviToro

Hello all. I would like to know how to use the rest api? Anyone can to help me?

Greeting.

torvicv avatar Jul 15 '22 16:07 torvicv

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.

antgamdia avatar Jul 15 '22 23:07 antgamdia

Thank you, antgamdia.

I tried with app credentials but I didn't get, so I have written them, I am waiting a response.

Greetings.

torvicv avatar Jul 16 '22 07:07 torvicv