Releases: errornil/mta
Releases · errornil/mta
v2.0.0
- Changed organization
chuhlomin→errornil, so importgithub.com/errornil/mta/v2 SubwayTimeClientrenamed toFeedsClient.NewBusTimeClient,NewFeedsClient,NewLIRRClientnow accepthttp.ClientandUser-Agentand return error along with client.- Clients check that response status code is 200.
BusTimeClienthandles any errors returned from API (likeAPI key is not authorized.).- Added errors
ErrAPIKeyRequired,ErrAPIKeyNotAuthorizedandErrClientRequired. - Added unit tests.
- Fixed typo in
Departuresstruct field name:Tranis→Trains