Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1.41 KB

README.md

File metadata and controls

51 lines (32 loc) · 1.41 KB

dashing-CampaignMonitor

Open source Campaign Monitor widget for the Dashing framework using the Campaign Monitor Ruby API.

Dependencies

createsend

Add it to dashing's gemfile:

gem 'createsend'

And run

bundle install

Using the Campaign Monitor widgets

To use this widget:

  1. create a new folder in /widgets/ and name it campaign_monitor

  2. copy campaign_monitor.coffee, campaign_monitor.html, and campaign_monitor.scss into the /widgets/campaign_monitor directory of your Dashing app.

  3. Copy the campaign_monitor.rb file into your /jobs folder.

  4. Change your API Key and list ID in campaign_monitor.rb

:api_key: "Your API Key"
:listID: 'Your ListID'

for help finding your API Key: here and List ID: here

To include the widget in a dashboard, add the following snippet to the dashboard layout file:

<li data-row="2" data-col="2" data-sizex="1" data-sizey="1">
   <div data-id="campaign_monitor" data-view="CampaignMonitor" data-title="subscribers"></div>
</li>