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:
- Set the
CREATESEND_CLIENT_ID
andCREATESEND_CLIENT_SECRET
environment variables for your registered OAuth application. bundle install
foreman start
orruby app.rb