Open source Campaign Monitor widget for the Dashing framework using the Campaign Monitor Ruby API.
Add it to dashing's gemfile:
gem 'createsend'
And run
bundle install
To use this widget:
-
create a new folder in
/widgets/
and name itcampaign_monitor
-
copy
campaign_monitor.coffee
,campaign_monitor.html
, andcampaign_monitor.scss
into the/widgets/campaign_monitor
directory of your Dashing app. -
Copy the
campaign_monitor.rb
file into your/jobs
folder. -
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>