simodax / italo-api Goto Github PK
View Code? Open in Web Editor NEWA documentation of Italo's rest api.
License: GNU General Public License v3.0
A documentation of Italo's rest api.
License: GNU General Public License v3.0
come indicato sto utilizzando l'oggetto
{
"Login":{
"Domain":"WWW",
"Password": "Accenture$1",
"Username": "WWW_Anonymous"
},
"SourceSystem":1
}
con chiamata POST all'indirizzo indicato
https://big.ntvspa.it/BIG/v7/Rest/SessionManager.svc/Login
e questo è l'errore che ricevo
{
"Code":1000,"Type":1000,
"Message":"Generic application error.",
"Details":"There was an error checking start element of object of type NTV.BIG.Messages.Session.Login.LoginRequest. The data at the root level is invalid. Line 1, position 1.",
"Category":100
}
con error code 500
Ciao, sto cercando di usare l'api di italo, sono riuscito a fare il login, quando però effettuo la chiamata per restituire i treni con questo json:
{
"Signature": "BSoPY6uh9Sg=|OdDGPnE8KR68dG890lb7qcg3ab0AeXBzjXSM6+2nAWxrso519JP8y0PKlSw3iR63X75WbOyraSQlI53MWV5RturWc9Dw6LqXxOuw1bbAsbRsi+Ur7JcWNa6d7OnymSwwfIifknAeezM=",
"SourceSystem": 2,
"GetAvailableTrains": {
"DepartureStation": "MC_",
"ArrivalStation": "RMT",
"IntervalStartDateTime": "/Date(1697234400000+0000)/",
"IntervalEndDateTime": "/Date(1697277600000+0000)/",
"AdultNumber": 1,
"ChildNumber": 0,
"InfantNumber": 0,
"SeniorNumber": 0,
"OverrideIntervalTimeRestriction": false,
"CurrencyCode": "EUR",
"IsGuest": true,
"RoundTrip": false
}
}
ottengo questo errore
{
"Code": 1001,
"Type": 1001,
"Message": "Validation on request message has failed.",
"Details": "The GetAvailableTrainsRequest instance contains invalid data.\nKey: IntervalEndDateTime | Message: 14/10/2023 12:00:00 is not a valid value for IntervalEndDateTime. | Target: GetAvailableTrainsData",
"Category": 100
}
il formato data mi sembra corretto non capisco.
Spero tu mi possa dare una dritta su come risolvere.
Grazie
Errore del tipo: Your app is obsolete quando il login viene effettuato con SourceSystem: 2, con SourceSystem: 1 funziona.
Ciao, sarebbe possibile recuperare tutte le stazioni disponibili in Italia? La lista nella documentazione purtroppo contiene solo le stazioni più importanti. Esiste un API che possa tirarle giù con relativi codici?
@SimoDax la lista iniziale da dove sei riuscito a tirarla giù?
Grazie mille
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.