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_IDandCREATESEND_CLIENT_SECRETenvironment variables for your registered OAuth application. bundle installforeman startorruby app.rb