/createsendoauthtest

:email: Sinatra app to demonstrate the recommended way of authenticating with the Campaign Monitor API from a Ruby environment.

Primary LanguageRubyMIT LicenseMIT

Campaign Monitor OAuth Demo

A very simple Sinatra app to demonstrate the recommended way of authenticating with the Campaign Monitor API from a Ruby environment.

This app makes use of the omniauth-createsend OmniAuth strategy for authentication, as well as the createsend gem for making API calls.

To run:

  1. Set the CREATESEND_CLIENT_ID and CREATESEND_CLIENT_SECRET environment variables for your registered OAuth application.
  2. bundle install
  3. foreman start or ruby app.rb