View
 

Download Ruby example application

Get the example application from Github

(git clone git://github.com/2performant/ruby-api-demo.git)

 

This is the Ruby Skeleton for a 2Performant App that works via OAuth and is compatible with the 2Performant App Store (http://apps.2performant.com). You can use it as the building block for your App.

 

Installation

 

Requirements

To get this up and running you'll need a bunch of gems installed:

  • sinatra
  • 2Performant
  • datamapper
  • data_objects
  • do_sqlite3
  • haml
  • oauth
 

Making it work

  1. Go to http://apps.2performant.com and create a developer account. Once you do that create your first application.

  2. At the Integration URLs section fill in the addresses where the script is located.

    • Init URL is /init
    • Support URL is /support
    • Embed URL is /embed
  3. Add your settings

    You can find the oauth settings in testapp.rb at likes 11 and 12.

    site_token, site_secret are given to you when you create a new app at http://apps.2performant.com

 

After these steps are complete add the application to the 2Performant Sandbox (on the app page option 'add to sandbox').