A ruby client for the Streetline API. Currently only supporting the bulk /ParkingDestinations
endpoint.
Single token usage:
Streetline.api_token = "1234"
Multiple tokens or multithreaded usage:
client = Streetline::Client.new(api_token: "1234")
Returns all parking destinations:
destinations = client.destinations
# => #<Array: ...>
destinations.first
# => { "DestinationID" => "...", "DestinationName" => "...", "Latitude" => "...", "Longitude" => "...", "TimeZone" => "...", "PaymentMethodsAccepted" => {}, "RateHighest" => "...", "RateLowest" => "....", "CurrencySymbol" => "..." }
- Fork it
- Create a topic branch
- Add specs for your unimplemented modifications
- Run
bundle exec rspec
. If specs pass, return to step 3. - Implement your modifications
- Run
bundle exec rspec
. If specs fail, return to step 5. - Commit your changes and push
- Submit a pull request
- Thank you!
See LICENSE