Go library for the JcDecaux self-service bikes api
go get github.com/nodvos/go-jcdecaux.ssb/jcdecauxssb/
Create a new client this way:
client := jcdecauxssb.New(APIKEY,nil)
With the client set, you can query the api this way:
// Get the list of contracts:
contracts := client.Contracts()
// Get all the station of a specific contract (in this case Paris)
parisStations := client.Stations("Paris")
// Retrieve my specific station
myStation := parisStations[42]
// Update it
myStation = client.StationData("Paris",myStation.Number)
The full JcDecaux API is documented at https://developer.jcdecaux.com/#/opendata/vls?page=dynamic.
Simply run 'go test -key APIKEY'
(See the official go test doc for more information)