Runscope API Testing and Monitoring    Learn More →

Runscope Heroku Add-on Now in Public Beta

By John Sheehan on .

Running your apps on Heroku means you're probably using a bunch of APIs. Whether that's email through SendGrid , real-time through Pusher, video encoding with Zencoder or using any of the plethora of other Heroku Add-ons, it's never been easier to use an API from your cloud apps.

Today we're making the Runscope Heroku Add-on available in public beta. The add-on gives every app developer the full power of Runscope to debug, test and share their API calls.

Installing the Add-on 

Provisioning the add-on for your app is a simple call from the command line using the Heroku Toolbelt:

$ heroku addons:add runscope

Once provisioned, your app will now have a RUNSCOPE_BUCKET_KEY configuration variable set. Each of your apps gets its own unique bucket key. You can then use these keys in your app to start capturing API traffic.

Capturing your First API Call

With your bucket key in hand you can now make requests using Runscope URLs. Here's an example of using a Runscope URL in a Node.js app using the request module: 

// BEFORE        
var request = require('request');
request.post('https://api.yourapihere.com/post', function (error, response, body) {
if (!error && response.statusCode == 200) {
// ...
}
});

// AFTER - USING RUNSCOPE URL
var request = require('request');
request.post('https://api-yourapihere-com-bucket_key.runscope.net/post', function (error, response, body) {
if (!error && response.statusCode == 200) {
// ...
}
});

For more examples check out the Runscope Guide in the Heroku Dev Center or our own Developer Guide

Accessing the Dashboard

The Runscope Dashboard allows you to view the traffic you’ve sent through Runscope, execute HTTP requests from your browser, and create a publicly-available links that you can share with other people to view the data in a request and response. Access the Dashboard from the 'Resources' view for your app in the Heroku web app.

That's all there is to it! If you run into any issues, feel free to email us any time

Categories: announcements, integrations, community

Everything is going to be 200 OK®