O'Reilly logo

Heroku Cookbook by Mike Coutermarsh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting started with the Platform API gem

Heroku has created a Ruby gem that makes it easy for us to take full advantage of the Platform API from Ruby. In this recipe, we'll learn how to get up and running with the gem and on our way to integrating the Heroku API with our own Ruby applications. We'll also be introduced to Pry, a super-powerful Ruby shell to execute and explore code. It will help us get up to speed and learn the Heroku API gem quickly.

Getting ready

To start, let's download some sample code to get familiar with the Platform API gem.

  1. Let's open up a terminal and use Git to clone the sample code:
    $ git clone https://github.com/mscoutermarsh/heroku-api-examples.git
    $ cd heroku-api-examples
    
  2. We'll need Ruby 2.1.2 to run these examples. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required