This repository has been archived by the owner on Aug 9, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
need to remove d1p1:type since campaign monitor will not be processin…
…g it and it confuses the the api method to think there are actual data to process
- Loading branch information
Andy Shen
committed
Jul 30, 2008
1 parent
5ab3c0b
commit c6e39b5
Showing
2 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env ruby | ||
|
||
require 'rubygems' | ||
require 'xmlsimple' | ||
require "pp" | ||
require "date" | ||
# require 'aws/s3' | ||
|
||
require 'lib/campaign_monitor.rb' | ||
|
||
CAMPAIGN_MONITOR_API_KEY = '37c8763721d8e2d4805a1fd6d8260d3830eaffe5' | ||
current_date = Time.now | ||
|
||
cm = CampaignMonitor.new | ||
pivot = cm.clients.find { |c| c.name == 'Pivot' } | ||
lists = pivot.lists | ||
|
||
# lists.each { |l| pp l.active_subscribers(Date.today) } | ||
|
||
|
||
# pivot's [{"ClientID"=>87554}] | ||
|
||
# pivot_cm = pivot.cm_client | ||
# lists = pivot.lists | ||
# pp lists | ||
# | ||
l = lists.first | ||
# | ||
pp l.active_subscribers(current_date) |