Git Product home page Git Product logo

italo-api's Introduction

*drops down from ceiling*

Well hello there

italo-api's People

Contributors

simodax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

italo-api's Issues

errore GetAvailableTrains

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 su login

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

Codici stazioni italiane

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

Update login

Errore del tipo: Your app is obsolete quando il login viene effettuato con SourceSystem: 2, con SourceSystem: 1 funziona.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.