Example app using Uber’s API with Ruby. This demo app simple shows available products based on location. Uber also has more endpoints here.
Clone the repo.
$ git clone https://github.com/stursby/ruber.git
Install packages. Make sure you have Bundler installed first. gem install bundler
$ bundle install
Visit the Uber API Registration page and sign up. Once you have an app created, set your Server Token as an environment variable.
$ export SERVER_TOKEN='mytokenhere'
Run the following, and you should have a working app on http://localhost:4567/
.
$ ruby app.rb