Browse files

Initial import

  • Loading branch information...
0 parents commit 327221734ee2510129faade1f47890b0cf9625ac jordanbrock committed Jun 23, 2008
Showing with 6,172 additions and 0 deletions.
  1. +3 −0 trunk/CHANGELOG
  2. +20 −0 trunk/MIT-LICENSE
  3. +30 −0 trunk/README
  4. +3 −0 trunk/TODO
  5. +31 −0 trunk/campaign_monitor.gemspec
  6. +170 −0 trunk/doc/classes/CMCampaignSummary.html
  7. +22 −0 trunk/doc/classes/CMCampaignSummary.src/M000003.html
  8. +111 −0 trunk/doc/classes/CMClient.html
  9. +155 −0 trunk/doc/classes/CMResult.html
  10. +19 −0 trunk/doc/classes/CMResult.src/M000004.html
  11. +355 −0 trunk/doc/classes/CampaignMonitor.html
  12. +20 −0 trunk/doc/classes/CampaignMonitor.src/M000001.html
  13. +20 −0 trunk/doc/classes/CampaignMonitor.src/M000002.html
  14. +19 −0 trunk/doc/classes/CampaignMonitor.src/M000003.html
  15. +20 −0 trunk/doc/classes/CampaignMonitor.src/M000004.html
  16. +18 −0 trunk/doc/classes/CampaignMonitor.src/M000005.html
  17. +18 −0 trunk/doc/classes/CampaignMonitor.src/M000006.html
  18. +23 −0 trunk/doc/classes/CampaignMonitor.src/M000007.html
  19. +23 −0 trunk/doc/classes/CampaignMonitor.src/M000008.html
  20. +23 −0 trunk/doc/classes/CampaignMonitor.src/M000009.html
  21. +19 −0 trunk/doc/classes/CampaignMonitor.src/M000010.html
  22. +19 −0 trunk/doc/classes/CampaignMonitor.src/M000011.html
  23. +18 −0 trunk/doc/classes/CampaignMonitor.src/M000012.html
  24. +18 −0 trunk/doc/classes/CampaignMonitor.src/M000013.html
  25. +18 −0 trunk/doc/classes/CampaignMonitor.src/M000014.html
  26. +19 −0 trunk/doc/classes/CampaignMonitor.src/M000015.html
  27. +18 −0 trunk/doc/classes/CampaignMonitor.src/M000016.html
  28. +18 −0 trunk/doc/classes/CampaignMonitor.src/M000017.html
  29. +18 −0 trunk/doc/classes/CampaignMonitor.src/M000018.html
  30. +18 −0 trunk/doc/classes/CampaignMonitor.src/M000019.html
  31. +18 −0 trunk/doc/classes/CampaignMonitor.src/M000020.html
  32. +18 −0 trunk/doc/classes/CampaignMonitor.src/M000021.html
  33. +18 −0 trunk/doc/classes/CampaignMonitor.src/M000022.html
  34. +18 −0 trunk/doc/classes/CampaignMonitor.src/M000023.html
  35. +29 −0 trunk/doc/classes/CampaignMonitor.src/M000024.html
  36. +19 −0 trunk/doc/classes/CampaignMonitor.src/M000025.html
  37. +21 −0 trunk/doc/classes/CampaignMonitor.src/M000026.html
  38. +20 −0 trunk/doc/classes/CampaignMonitor.src/M000027.html
  39. +19 −0 trunk/doc/classes/CampaignMonitor.src/M000028.html
  40. +20 −0 trunk/doc/classes/CampaignMonitor.src/M000029.html
  41. +18 −0 trunk/doc/classes/CampaignMonitor.src/M000030.html
  42. +18 −0 trunk/doc/classes/CampaignMonitor.src/M000031.html
  43. +23 −0 trunk/doc/classes/CampaignMonitor.src/M000032.html
  44. +23 −0 trunk/doc/classes/CampaignMonitor.src/M000033.html
  45. +23 −0 trunk/doc/classes/CampaignMonitor.src/M000034.html
  46. +19 −0 trunk/doc/classes/CampaignMonitor.src/M000035.html
  47. +387 −0 trunk/doc/classes/CampaignMonitor/Campaign.html
  48. +22 −0 trunk/doc/classes/CampaignMonitor/Campaign.src/M000027.html
  49. +22 −0 trunk/doc/classes/CampaignMonitor/Campaign.src/M000028.html
  50. +23 −0 trunk/doc/classes/CampaignMonitor/Campaign.src/M000029.html
  51. +23 −0 trunk/doc/classes/CampaignMonitor/Campaign.src/M000030.html
  52. +23 −0 trunk/doc/classes/CampaignMonitor/Campaign.src/M000031.html
  53. +23 −0 trunk/doc/classes/CampaignMonitor/Campaign.src/M000032.html
  54. +18 −0 trunk/doc/classes/CampaignMonitor/Campaign.src/M000033.html
  55. +18 −0 trunk/doc/classes/CampaignMonitor/Campaign.src/M000034.html
  56. +18 −0 trunk/doc/classes/CampaignMonitor/Campaign.src/M000035.html
  57. +18 −0 trunk/doc/classes/CampaignMonitor/Campaign.src/M000036.html
  58. +22 −0 trunk/doc/classes/CampaignMonitor/Campaign.src/M000053.html
  59. +23 −0 trunk/doc/classes/CampaignMonitor/Campaign.src/M000054.html
  60. +23 −0 trunk/doc/classes/CampaignMonitor/Campaign.src/M000055.html
  61. +23 −0 trunk/doc/classes/CampaignMonitor/Campaign.src/M000056.html
  62. +23 −0 trunk/doc/classes/CampaignMonitor/Campaign.src/M000057.html
  63. +18 −0 trunk/doc/classes/CampaignMonitor/Campaign.src/M000058.html
  64. +18 −0 trunk/doc/classes/CampaignMonitor/Campaign.src/M000059.html
  65. +18 −0 trunk/doc/classes/CampaignMonitor/Campaign.src/M000060.html
  66. +18 −0 trunk/doc/classes/CampaignMonitor/Campaign.src/M000061.html
  67. +18 −0 trunk/doc/classes/CampaignMonitor/Campaign.src/M000062.html
  68. +226 −0 trunk/doc/classes/CampaignMonitor/Client.html
  69. +20 −0 trunk/doc/classes/CampaignMonitor/Client.src/M000016.html
  70. +20 −0 trunk/doc/classes/CampaignMonitor/Client.src/M000017.html
  71. +23 −0 trunk/doc/classes/CampaignMonitor/Client.src/M000018.html
  72. +20 −0 trunk/doc/classes/CampaignMonitor/Client.src/M000042.html
  73. +23 −0 trunk/doc/classes/CampaignMonitor/Client.src/M000043.html
  74. +23 −0 trunk/doc/classes/CampaignMonitor/Client.src/M000044.html
  75. +308 −0 trunk/doc/classes/CampaignMonitor/List.html
  76. +20 −0 trunk/doc/classes/CampaignMonitor/List.src/M000021.html
  77. +20 −0 trunk/doc/classes/CampaignMonitor/List.src/M000022.html
  78. +19 −0 trunk/doc/classes/CampaignMonitor/List.src/M000023.html
  79. +19 −0 trunk/doc/classes/CampaignMonitor/List.src/M000024.html
  80. +23 −0 trunk/doc/classes/CampaignMonitor/List.src/M000025.html
  81. +23 −0 trunk/doc/classes/CampaignMonitor/List.src/M000026.html
  82. +20 −0 trunk/doc/classes/CampaignMonitor/List.src/M000047.html
  83. +19 −0 trunk/doc/classes/CampaignMonitor/List.src/M000048.html
  84. +19 −0 trunk/doc/classes/CampaignMonitor/List.src/M000049.html
  85. +23 −0 trunk/doc/classes/CampaignMonitor/List.src/M000050.html
  86. +23 −0 trunk/doc/classes/CampaignMonitor/List.src/M000051.html
  87. +23 −0 trunk/doc/classes/CampaignMonitor/List.src/M000052.html
  88. +162 −0 trunk/doc/classes/CampaignMonitor/Result.html
  89. +19 −0 trunk/doc/classes/CampaignMonitor/Result.src/M000020.html
  90. +19 −0 trunk/doc/classes/CampaignMonitor/Result.src/M000046.html
  91. +212 −0 trunk/doc/classes/CampaignMonitor/Subscriber.html
  92. +21 −0 trunk/doc/classes/CampaignMonitor/Subscriber.src/M000012.html
  93. +21 −0 trunk/doc/classes/CampaignMonitor/Subscriber.src/M000013.html
  94. +19 −0 trunk/doc/classes/CampaignMonitor/Subscriber.src/M000014.html
  95. +21 −0 trunk/doc/classes/CampaignMonitor/Subscriber.src/M000038.html
  96. +19 −0 trunk/doc/classes/CampaignMonitor/Subscriber.src/M000039.html
  97. +19 −0 trunk/doc/classes/CampaignMonitor/Subscriber.src/M000040.html
  98. +166 −0 trunk/doc/classes/CampaignMonitor/SubscriberBounce.html
  99. +20 −0 trunk/doc/classes/CampaignMonitor/SubscriberBounce.src/M000019.html
  100. +20 −0 trunk/doc/classes/CampaignMonitor/SubscriberBounce.src/M000045.html
  101. +166 −0 trunk/doc/classes/CampaignMonitor/SubscriberClick.html
  102. +20 −0 trunk/doc/classes/CampaignMonitor/SubscriberClick.src/M000010.html
  103. +20 −0 trunk/doc/classes/CampaignMonitor/SubscriberClick.src/M000036.html
  104. +166 −0 trunk/doc/classes/CampaignMonitor/SubscriberOpen.html
  105. +20 −0 trunk/doc/classes/CampaignMonitor/SubscriberOpen.src/M000011.html
  106. +20 −0 trunk/doc/classes/CampaignMonitor/SubscriberOpen.src/M000037.html
  107. +161 −0 trunk/doc/classes/CampaignMonitor/SubscriberUnsubscribe.html
  108. +19 −0 trunk/doc/classes/CampaignMonitor/SubscriberUnsubscribe.src/M000015.html
  109. +19 −0 trunk/doc/classes/CampaignMonitor/SubscriberUnsubscribe.src/M000041.html
  110. +137 −0 trunk/doc/classes/Hash.html
  111. +18 −0 trunk/doc/classes/Hash.src/M000002.html
  112. +143 −0 trunk/doc/classes/Symbol.html
  113. +18 −0 trunk/doc/classes/Symbol.src/M000001.html
  114. +1 −0 trunk/doc/created.rid
  115. +119 −0 trunk/doc/files/campaign_monitor_old_rb.html
  116. +184 −0 trunk/doc/files/lib/campaign_monitor_rb.html
  117. +37 −0 trunk/doc/fr_class_index.html
  118. +30 −0 trunk/doc/fr_file_index.html
  119. +63 −0 trunk/doc/fr_method_index.html
  120. +24 −0 trunk/doc/index.html
  121. +208 −0 trunk/doc/rdoc-style.css
  122. +1 −0 trunk/init.rb
  123. 0 trunk/install.rb
  124. +511 −0 trunk/lib/campaign_monitor.rb
  125. +6 −0 trunk/test/campaign_monitor_test.rb
3 trunk/CHANGELOG
@@ -0,0 +1,3 @@
+*0.1.0*
+
+* Initial Release
20 trunk/MIT-LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2006 Jordan Brock
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 trunk/README
@@ -0,0 +1,30 @@
+= campaign_monitor
+
+This library provides access to the Campaign Monitor API (http://www.campaignmonitor.com/api)
+
+== Pre-requisites
+
+An account with Campaign Monitor and the API Key. Accounts are free and can be obtained from
+http://www.campaignmonitor.com
+
+== Resources
+
+Install
+
+* gem install campaign_monitor
+
+Bugtracking
+
+* http://trac.spintech.com.au/plugins/campaign_monitor
+
+Rubyforge project
+
+* http://rubyforge.org/projects/campaignmonitor
+
+RDocs
+
+* http://campaignmonitor.rubyforge.org
+
+Subversion
+
+* svn://spintech.com.au/svn/plugins/campaign_monitor
3 trunk/TODO
@@ -0,0 +1,3 @@
+10th May, 2006
+ * Add tests
+ * Add ability to have multiple user-defined fields.
31 trunk/campaign_monitor.gemspec
@@ -0,0 +1,31 @@
+
+$__cm_source_patterns = [
+ '[A-Z]*', 'campaign_monitor', 'lib/**/*', 'test/**/*', 'doc/**/*', 'init.rb', 'install.rb'
+]
+
+spec = Gem::Specification.new do |s|
+ s.platform = Gem::Platform::RUBY
+ s.name = 'campaign_monitor'
+ s.version = "0.1.1"
+ s.summary = 'Provides access to the Campaign Monitor API'
+ s.description = <<-EOF
+ A simple wrapper class that provides basic access to the Campaign Monitor API
+ EOF
+ s.author = 'Jordan Brock'
+ s.email = 'jordan@spintech.com.au'
+ s.rubyforge_project = 'campaignmonitor'
+ s.homepage = 'http://spintech.com.au/projects/plugins/campaign_monitor'
+
+ s.has_rdoc = true
+
+ s.requirements << 'none'
+ s.require_path = 'lib'
+
+ s.files = $__cm_source_patterns.inject([]) { |list, glob|
+ list << Dir[glob].delete_if { |path|
+ File.directory?(path) or
+ path.include?('.svn/')
+ }
+ }.flatten
+
+end
170 trunk/doc/classes/CMCampaignSummary.html
@@ -0,0 +1,170 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Class: CMCampaignSummary</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Class</strong></td>
+ <td class="class-name-in-header">CMCampaignSummary</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../files/campaign_monitor_old_rb.html">
+ campaign_monitor_old.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ <tr class="top-aligned-row">
+ <td><strong>Parent:</strong></td>
+ <td>
+ Object
+ </td>
+ </tr>
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+
+
+ </div>
+
+ <div id="method-list">
+ <h3 class="section-bar">Methods</h3>
+
+ <div class="name-list">
+ <a href="#M000003">new</a>&nbsp;&nbsp;
+ </div>
+ </div>
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+ <div id="attribute-list">
+ <h3 class="section-bar">Attributes</h3>
+
+ <div class="name-list">
+ <table>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">bounced</td>
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
+ <td class="context-item-desc"></td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">clicks</td>
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
+ <td class="context-item-desc"></td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">recipients</td>
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
+ <td class="context-item-desc"></td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">total_opened</td>
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
+ <td class="context-item-desc"></td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">unsubscribed</td>
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
+ <td class="context-item-desc"></td>
+ </tr>
+ </table>
+ </div>
+ </div>
+
+
+
+ <!-- if method_list -->
+ <div id="methods">
+ <h3 class="section-bar">Public Class methods</h3>
+
+ <div id="method-M000003" class="method-detail">
+ <a name="M000003"></a>
+
+ <div class="method-heading">
+ <a href="CMCampaignSummary.src/M000003.html" target="Code" class="method-signature"
+ onclick="popupCode('CMCampaignSummary.src/M000003.html');return false;">
+ <span class="method-name">new</span><span class="method-args">(recipients, total_opened, clicks, unsubscribed, bounced)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+
+ </div>
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
22 trunk/doc/classes/CMCampaignSummary.src/M000003.html
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>new (CMCampaignSummary)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 318</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">recipients</span>, <span class="ruby-identifier">total_opened</span>, <span class="ruby-identifier">clicks</span>, <span class="ruby-identifier">unsubscribed</span>, <span class="ruby-identifier">bounced</span>)
+ <span class="ruby-ivar">@recipients</span> = <span class="ruby-identifier">recipients</span>
+ <span class="ruby-ivar">@total_opened</span> = <span class="ruby-identifier">total_opened</span>
+ <span class="ruby-ivar">@clicks</span> = <span class="ruby-identifier">clicks</span>
+ <span class="ruby-ivar">@unsubscribed</span> = <span class="ruby-identifier">unsubscribed</span>
+ <span class="ruby-ivar">@bounced</span> = <span class="ruby-identifier">bounced</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
111 trunk/doc/classes/CMClient.html
@@ -0,0 +1,111 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Class: CMClient</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Class</strong></td>
+ <td class="class-name-in-header">CMClient</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../files/campaign_monitor_old_rb.html">
+ campaign_monitor_old.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ <tr class="top-aligned-row">
+ <td><strong>Parent:</strong></td>
+ <td>
+ Object
+ </td>
+ </tr>
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+
+
+ </div>
+
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+
+
+
+ <!-- if method_list -->
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
155 trunk/doc/classes/CMResult.html
@@ -0,0 +1,155 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Class: CMResult</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Class</strong></td>
+ <td class="class-name-in-header">CMResult</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../files/campaign_monitor_old_rb.html">
+ campaign_monitor_old.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ <tr class="top-aligned-row">
+ <td><strong>Parent:</strong></td>
+ <td>
+ Object
+ </td>
+ </tr>
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+
+
+ </div>
+
+ <div id="method-list">
+ <h3 class="section-bar">Methods</h3>
+
+ <div class="name-list">
+ <a href="#M000004">new</a>&nbsp;&nbsp;
+ </div>
+ </div>
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+ <div id="attribute-list">
+ <h3 class="section-bar">Attributes</h3>
+
+ <div class="name-list">
+ <table>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">code</td>
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
+ <td class="context-item-desc"></td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">message</td>
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
+ <td class="context-item-desc"></td>
+ </tr>
+ </table>
+ </div>
+ </div>
+
+
+
+ <!-- if method_list -->
+ <div id="methods">
+ <h3 class="section-bar">Public Class methods</h3>
+
+ <div id="method-M000004" class="method-detail">
+ <a name="M000004"></a>
+
+ <div class="method-heading">
+ <a href="CMResult.src/M000004.html" target="Code" class="method-signature"
+ onclick="popupCode('CMResult.src/M000004.html');return false;">
+ <span class="method-name">new</span><span class="method-args">(message, code)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+
+ </div>
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
19 trunk/doc/classes/CMResult.src/M000004.html
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>new (CMResult)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 308</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">code</span>)
+ <span class="ruby-ivar">@message</span> = <span class="ruby-identifier">message</span>
+ <span class="ruby-ivar">@code</span> = <span class="ruby-identifier">code</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
355 trunk/doc/classes/CampaignMonitor.html
@@ -0,0 +1,355 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Class: CampaignMonitor</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Class</strong></td>
+ <td class="class-name-in-header">CampaignMonitor</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../files/lib/campaign_monitor_rb.html">
+ lib/campaign_monitor.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ <tr class="top-aligned-row">
+ <td><strong>Parent:</strong></td>
+ <td>
+ Object
+ </td>
+ </tr>
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+
+
+ </div>
+
+ <div id="method-list">
+ <h3 class="section-bar">Methods</h3>
+
+ <div class="name-list">
+ <a href="#M000010">add_subscriber</a>&nbsp;&nbsp;
+ <a href="#M000008">campaigns</a>&nbsp;&nbsp;
+ <a href="#M000007">clients</a>&nbsp;&nbsp;
+ <a href="#M000005">http_get</a>&nbsp;&nbsp;
+ <a href="#M000009">lists</a>&nbsp;&nbsp;
+ <a href="#M000006">method_missing</a>&nbsp;&nbsp;
+ <a href="#M000002">new</a>&nbsp;&nbsp;
+ <a href="#M000003">request</a>&nbsp;&nbsp;
+ <a href="#M000004">request_url</a>&nbsp;&nbsp;
+ </div>
+ </div>
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+ <div id="class-list">
+ <h3 class="section-bar">Classes and Modules</h3>
+
+ Class <a href="CampaignMonitor/Campaign.html" class="link">CampaignMonitor::Campaign</a><br />
+Class <a href="CampaignMonitor/Client.html" class="link">CampaignMonitor::Client</a><br />
+Class <a href="CampaignMonitor/List.html" class="link">CampaignMonitor::List</a><br />
+Class <a href="CampaignMonitor/Result.html" class="link">CampaignMonitor::Result</a><br />
+Class <a href="CampaignMonitor/Subscriber.html" class="link">CampaignMonitor::Subscriber</a><br />
+Class <a href="CampaignMonitor/SubscriberBounce.html" class="link">CampaignMonitor::SubscriberBounce</a><br />
+Class <a href="CampaignMonitor/SubscriberClick.html" class="link">CampaignMonitor::SubscriberClick</a><br />
+Class <a href="CampaignMonitor/SubscriberOpen.html" class="link">CampaignMonitor::SubscriberOpen</a><br />
+Class <a href="CampaignMonitor/SubscriberUnsubscribe.html" class="link">CampaignMonitor::SubscriberUnsubscribe</a><br />
+
+ </div>
+
+
+
+
+
+
+
+ <!-- if method_list -->
+ <div id="methods">
+ <h3 class="section-bar">Public Class methods</h3>
+
+ <div id="method-M000002" class="method-detail">
+ <a name="M000002"></a>
+
+ <div class="method-heading">
+ <a href="CampaignMonitor.src/M000002.html" target="Code" class="method-signature"
+ onclick="popupCode('CampaignMonitor.src/M000002.html');return false;">
+ <span class="method-name">new</span><span class="method-args">(api_key=CAMPAIGN_MONITOR_API_KEY)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Replace this API key with your own (<a
+href="http://www.campaignmonitor.com/api">www.campaignmonitor.com/api</a>/)
+</p>
+ </div>
+ </div>
+
+ <h3 class="section-bar">Public Instance methods</h3>
+
+ <div id="method-M000010" class="method-detail">
+ <a name="M000010"></a>
+
+ <div class="method-heading">
+ <a href="CampaignMonitor.src/M000010.html" target="Code" class="method-signature"
+ onclick="popupCode('CampaignMonitor.src/M000010.html');return false;">
+ <span class="method-name">add_subscriber</span><span class="method-args">(list_id, email, name)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+A quick method of adding a subscriber to a list. Returns a <a
+href="CampaignMonitor/Result.html">Result</a> object
+</p>
+<p>
+Example
+</p>
+<pre>
+ @cm = CampaignMonitor.new()
+ result = @cm.add_subscriber(12345, &quot;ralph.wiggum@simpsons.net&quot;, &quot;Ralph Wiggum&quot;)
+
+ if result.code == 0
+ puts &quot;Subscriber Added to List&quot;
+ end
+</pre>
+ </div>
+ </div>
+
+ <div id="method-M000008" class="method-detail">
+ <a name="M000008"></a>
+
+ <div class="method-heading">
+ <a href="CampaignMonitor.src/M000008.html" target="Code" class="method-signature"
+ onclick="popupCode('CampaignMonitor.src/M000008.html');return false;">
+ <span class="method-name">campaigns</span><span class="method-args">(client_id)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Returns an array of <a href="CampaignMonitor/Campaign.html">Campaign</a>
+objects associated with the specified <a
+href="CampaignMonitor/Client.html">Client</a> ID
+</p>
+<p>
+Example
+</p>
+<pre>
+ @cm = CampaignMonitor.new()
+ @campaigns = @cm.campaigns(12345)
+
+ for campaign in @campaigns
+ puts campaign.subject
+ end
+</pre>
+ </div>
+ </div>
+
+ <div id="method-M000007" class="method-detail">
+ <a name="M000007"></a>
+
+ <div class="method-heading">
+ <a href="CampaignMonitor.src/M000007.html" target="Code" class="method-signature"
+ onclick="popupCode('CampaignMonitor.src/M000007.html');return false;">
+ <span class="method-name">clients</span><span class="method-args">()</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Returns an array of <a href="CampaignMonitor/Client.html">Client</a>
+objects associated with the API Key
+</p>
+<p>
+Example
+</p>
+<pre>
+ @cm = CampaignMonitor.new()
+ @clients = @cm.clients
+
+ for client in @clients
+ puts client.name
+ end
+</pre>
+ </div>
+ </div>
+
+ <div id="method-M000005" class="method-detail">
+ <a name="M000005"></a>
+
+ <div class="method-heading">
+ <a href="CampaignMonitor.src/M000005.html" target="Code" class="method-signature"
+ onclick="popupCode('CampaignMonitor.src/M000005.html');return false;">
+ <span class="method-name">http_get</span><span class="method-args">(url)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Does an HTTP GET on a given URL and returns the response body
+</p>
+ </div>
+ </div>
+
+ <div id="method-M000009" class="method-detail">
+ <a name="M000009"></a>
+
+ <div class="method-heading">
+ <a href="CampaignMonitor.src/M000009.html" target="Code" class="method-signature"
+ onclick="popupCode('CampaignMonitor.src/M000009.html');return false;">
+ <span class="method-name">lists</span><span class="method-args">(client_id)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Returns an array of <a
+href="CampaignMonitor/Subscriber.html">Subscriber</a> Lists for the
+specified <a href="CampaignMonitor/Client.html">Client</a> ID
+</p>
+<p>
+Example
+</p>
+<pre>
+ @cm = CampaignMonitor.new()
+ @lists = @cm.lists(12345)
+
+ for list in @lists
+ puts list.name
+ end
+</pre>
+ </div>
+ </div>
+
+ <div id="method-M000006" class="method-detail">
+ <a name="M000006"></a>
+
+ <div class="method-heading">
+ <a href="CampaignMonitor.src/M000006.html" target="Code" class="method-signature"
+ onclick="popupCode('CampaignMonitor.src/M000006.html');return false;">
+ <span class="method-name">method_missing</span><span class="method-args">(method_id, *params)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+By overriding the <a href="CampaignMonitor.html#M000006">method_missing</a>
+method, it is possible to easily support all of the methods available in
+the API
+</p>
+ </div>
+ </div>
+
+ <div id="method-M000003" class="method-detail">
+ <a name="M000003"></a>
+
+ <div class="method-heading">
+ <a href="CampaignMonitor.src/M000003.html" target="Code" class="method-signature"
+ onclick="popupCode('CampaignMonitor.src/M000003.html');return false;">
+ <span class="method-name">request</span><span class="method-args">(method, *params)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Takes a <a href="CampaignMonitor.html">CampaignMonitor</a> API method name
+and set of parameters; returns an XmlSimple object with the response
+</p>
+ </div>
+ </div>
+
+ <div id="method-M000004" class="method-detail">
+ <a name="M000004"></a>
+
+ <div class="method-heading">
+ <a href="CampaignMonitor.src/M000004.html" target="Code" class="method-signature"
+ onclick="popupCode('CampaignMonitor.src/M000004.html');return false;">
+ <span class="method-name">request_url</span><span class="method-args">(method, *params)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Takes a <a href="CampaignMonitor.html">CampaignMonitor</a> API method name
+and set of parameters; returns the correct URL for the REST API.
+</p>
+ </div>
+ </div>
+
+
+ </div>
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
20 trunk/doc/classes/CampaignMonitor.src/M000001.html
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>new (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 64</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">api_key</span>=<span class="ruby-constant">CAMPAIGN_MONITOR_API_KEY</span>)
+ <span class="ruby-ivar">@api_key</span> = <span class="ruby-identifier">api_key</span>
+ <span class="ruby-ivar">@host</span> = <span class="ruby-value str">'http://app.campaignmonitor.com'</span>
+ <span class="ruby-ivar">@api</span> = <span class="ruby-value str">'/api/api.asmx/'</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
20 trunk/doc/classes/CampaignMonitor.src/M000002.html
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>new (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 65</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">api_key</span>=<span class="ruby-constant">CAMPAIGN_MONITOR_API_KEY</span>)
+ <span class="ruby-ivar">@api_key</span> = <span class="ruby-identifier">api_key</span>
+ <span class="ruby-ivar">@host</span> = <span class="ruby-value str">'http://app.campaignmonitor.com'</span>
+ <span class="ruby-ivar">@api</span> = <span class="ruby-value str">'/api/api.asmx/'</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
19 trunk/doc/classes/CampaignMonitor.src/M000003.html
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>request (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 73</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">request</span>(<span class="ruby-identifier">method</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">params</span>)
+ <span class="ruby-identifier">response</span> = <span class="ruby-constant">XmlSimple</span>.<span class="ruby-identifier">xml_in</span>(<span class="ruby-identifier">http_get</span>(<span class="ruby-identifier">request_url</span>(<span class="ruby-identifier">method</span>, <span class="ruby-identifier">params</span>)), { <span class="ruby-value str">'ForceArray'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>, <span class="ruby-value str">'ForceArray'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-regexp re">%r(List$|Campaign$|Subscriber$|Client$|SubscriberOpen$|SubscriberUnsubscribe$|SubscriberClick$|SubscriberBounce$)</span>, <span class="ruby-value str">'NoAttr'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">true</span> })
+ <span class="ruby-identifier">response</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
20 trunk/doc/classes/CampaignMonitor.src/M000004.html
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>request_url (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 79</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">request_url</span>(<span class="ruby-identifier">method</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">params</span>)
+ <span class="ruby-identifier">url</span> = <span class="ruby-node">&quot;#{@host}#{@api}/#{method}?ApiKey=#{@api_key}&quot;</span>
+ <span class="ruby-identifier">params</span>[<span class="ruby-value">0</span>][<span class="ruby-value">0</span>].<span class="ruby-identifier">each_key</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span><span class="ruby-operator">|</span> <span class="ruby-identifier">url</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;&amp;#{key}=&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-constant">CGI</span><span class="ruby-operator">::</span><span class="ruby-identifier">escape</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">0</span>][<span class="ruby-value">0</span>][<span class="ruby-identifier">key</span>].<span class="ruby-identifier">to_s</span>) <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">params</span>[<span class="ruby-value">0</span>][<span class="ruby-value">0</span>]
+ <span class="ruby-identifier">url</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 trunk/doc/classes/CampaignMonitor.src/M000005.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>http_get (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 86</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">http_get</span>(<span class="ruby-identifier">url</span>)
+ <span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">HTTP</span>.<span class="ruby-identifier">get_response</span>(<span class="ruby-constant">URI</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">url</span>)).<span class="ruby-identifier">body</span>.<span class="ruby-identifier">to_s</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 trunk/doc/classes/CampaignMonitor.src/M000006.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>method_missing (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 92</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">method_id</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">params</span>)
+ <span class="ruby-identifier">request</span>(<span class="ruby-identifier">method_id</span>.<span class="ruby-identifier">id2name</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/_/</span>, <span class="ruby-value str">'.'</span>), <span class="ruby-identifier">params</span>[<span class="ruby-value">0</span>])
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
23 trunk/doc/classes/CampaignMonitor.src/M000007.html
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>clients (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 105</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clients</span>
+ <span class="ruby-identifier">response</span> = <span class="ruby-constant">User_GetClients</span>()
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;Code&quot;</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-operator">!=</span> <span class="ruby-value">0</span>
+ <span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;Client&quot;</span>].<span class="ruby-identifier">collect</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-constant">Client</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">c</span>[<span class="ruby-value str">&quot;ClientID&quot;</span>].<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">c</span>[<span class="ruby-value str">&quot;Name&quot;</span>])}
+ <span class="ruby-keyword kw">else</span>
+ <span class="ruby-identifier">raise</span> <span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;Code&quot;</span>] <span class="ruby-operator">+</span> <span class="ruby-value str">&quot; - &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;Message&quot;</span>]
+ <span class="ruby-keyword kw">end</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
23 trunk/doc/classes/CampaignMonitor.src/M000008.html
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>campaigns (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 123</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">campaigns</span>(<span class="ruby-identifier">client_id</span>)
+ <span class="ruby-identifier">response</span> = <span class="ruby-constant">Client_GetCampaigns</span>(<span class="ruby-value str">&quot;ClientID&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">client_id</span>)
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;Code&quot;</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-operator">!=</span> <span class="ruby-value">0</span>
+ <span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;Campaign&quot;</span>].<span class="ruby-identifier">collect</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-constant">Campaign</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">c</span>[<span class="ruby-value str">&quot;CampaignID&quot;</span>].<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">c</span>[<span class="ruby-value str">&quot;Subject&quot;</span>], <span class="ruby-identifier">c</span>[<span class="ruby-value str">&quot;SentDate&quot;</span>], <span class="ruby-identifier">c</span>[<span class="ruby-value str">&quot;TotalRecipients&quot;</span>].<span class="ruby-identifier">to_i</span>)}
+ <span class="ruby-keyword kw">else</span>
+ <span class="ruby-identifier">raise</span> <span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;Code&quot;</span>] <span class="ruby-operator">+</span> <span class="ruby-value str">&quot; - &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;Message&quot;</span>]
+ <span class="ruby-keyword kw">end</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
23 trunk/doc/classes/CampaignMonitor.src/M000009.html
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>lists (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 141</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lists</span>(<span class="ruby-identifier">client_id</span>)
+ <span class="ruby-identifier">response</span> = <span class="ruby-constant">Client_GetLists</span>(<span class="ruby-value str">&quot;ClientID&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">client_id</span>)
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;Code&quot;</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-operator">!=</span> <span class="ruby-value">0</span>
+ <span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;List&quot;</span>].<span class="ruby-identifier">collect</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">l</span><span class="ruby-operator">|</span> <span class="ruby-constant">List</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">l</span>[<span class="ruby-value str">&quot;ListID&quot;</span>].<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">l</span>[<span class="ruby-value str">&quot;Name&quot;</span>])}
+ <span class="ruby-keyword kw">else</span>
+ <span class="ruby-identifier">raise</span> <span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;Code&quot;</span>] <span class="ruby-operator">+</span> <span class="ruby-value str">&quot; - &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;Message&quot;</span>]
+ <span class="ruby-keyword kw">end</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
19 trunk/doc/classes/CampaignMonitor.src/M000010.html
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>add_subscriber (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 159</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_subscriber</span>(<span class="ruby-identifier">list_id</span>, <span class="ruby-identifier">email</span>, <span class="ruby-identifier">name</span>)
+ <span class="ruby-identifier">response</span> = <span class="ruby-constant">Subscriber_Add</span>(<span class="ruby-value str">&quot;ListID&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">list_id</span>, <span class="ruby-value str">&quot;Email&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">email</span>, <span class="ruby-value str">&quot;Name&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">name</span>)
+ <span class="ruby-constant">Result</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;Message&quot;</span>], <span class="ruby-identifier">response</span>[<span class="ruby-value str">&quot;Code&quot;</span>].<span class="ruby-identifier">to_i</span>)
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
19 trunk/doc/classes/CampaignMonitor.src/M000011.html
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>subscriber_unsubscribe (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 114</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">subscriber_unsubscribe</span>(<span class="ruby-identifier">list_id</span>, <span class="ruby-identifier">email</span>)
+ <span class="ruby-identifier">result</span> = <span class="ruby-identifier">request</span>(<span class="ruby-identifier">get_path</span>(<span class="ruby-value str">'Subscriber.Unsubscribe'</span>) <span class="ruby-operator">+</span> <span class="ruby-node">&quot;&amp;ListID=#{list_id}&amp;Email=#{email}&quot;</span>)
+ <span class="ruby-constant">CMResult</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">result</span>[<span class="ruby-value str">&quot;Result&quot;</span>][<span class="ruby-value str">&quot;Message&quot;</span>], <span class="ruby-identifier">result</span>[<span class="ruby-value str">&quot;Result&quot;</span>][<span class="ruby-value str">&quot;Code&quot;</span>].<span class="ruby-identifier">to_i</span>)
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 trunk/doc/classes/CampaignMonitor.src/M000012.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>subscriber_get_active (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 119</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">subscriber_get_active</span>(<span class="ruby-identifier">list_id</span>, <span class="ruby-identifier">since_date</span>)
+ <span class="ruby-identifier">records</span> <span class="ruby-value str">&quot;Subscriber&quot;</span>, <span class="ruby-identifier">get_path</span>(<span class="ruby-value str">'Subscribers.GetActive'</span>) <span class="ruby-operator">+</span> <span class="ruby-node">&quot;&amp;ListID=#{list_id}&amp;Date=&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-constant">CGI</span><span class="ruby-operator">::</span><span class="ruby-identifier">escape</span>(<span class="ruby-identifier">since_date</span>.<span class="ruby-identifier">strftime</span>(<span class="ruby-value str">&quot;%Y-%m-%d %H:%M:%S&quot;</span>))
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 trunk/doc/classes/CampaignMonitor.src/M000013.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>subscriber_get_unsubscribed (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 123</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">subscriber_get_unsubscribed</span>(<span class="ruby-identifier">list_id</span>, <span class="ruby-identifier">since_date</span>)
+ <span class="ruby-identifier">records</span> <span class="ruby-value str">&quot;Subscriber&quot;</span>, <span class="ruby-identifier">get_path</span>(<span class="ruby-value str">'Subscribers.GetUnsubscribed'</span>) <span class="ruby-operator">+</span> <span class="ruby-node">&quot;&amp;ListID=#{list_id}&amp;Date=&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-constant">CGI</span><span class="ruby-operator">::</span><span class="ruby-identifier">escape</span>(<span class="ruby-identifier">since_date</span>.<span class="ruby-identifier">strftime</span>(<span class="ruby-value str">&quot;%Y-%m-%d %H:%M:%S&quot;</span>))
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 trunk/doc/classes/CampaignMonitor.src/M000014.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>subscriber_get_bounced (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 127</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">subscriber_get_bounced</span>(<span class="ruby-identifier">list_id</span>, <span class="ruby-identifier">since_date</span>)
+ <span class="ruby-identifier">records</span> <span class="ruby-value str">&quot;Subscriber&quot;</span>, <span class="ruby-identifier">get_path</span>(<span class="ruby-value str">'Subscribers.GetBounced'</span>) <span class="ruby-operator">+</span> <span class="ruby-node">&quot;&amp;ListID=#{list_id}&amp;Date=&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-constant">CGI</span><span class="ruby-operator">::</span><span class="ruby-identifier">escape</span>(<span class="ruby-identifier">since_date</span>.<span class="ruby-identifier">strftime</span>(<span class="ruby-value str">&quot;%Y-%m-%d %H:%M:%S&quot;</span>))
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
19 trunk/doc/classes/CampaignMonitor.src/M000015.html
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>campaign_get_summary (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 134</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">campaign_get_summary</span>(<span class="ruby-identifier">campaign_id</span>)
+ <span class="ruby-identifier">result</span> = <span class="ruby-identifier">request</span>(<span class="ruby-identifier">get_path</span>(<span class="ruby-value str">&quot;Campaign.GetSummary&quot;</span>) <span class="ruby-operator">+</span> <span class="ruby-node">&quot;&amp;CampaignID=#{campaign_id}&quot;</span>)
+ <span class="ruby-constant">CMCampaignSummary</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">result</span>[<span class="ruby-value str">&quot;anyType&quot;</span>][<span class="ruby-value str">&quot;Recipients&quot;</span>].<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">result</span>[<span class="ruby-value str">&quot;anyType&quot;</span>][<span class="ruby-value str">&quot;TotalOpened&quot;</span>].<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">result</span>[<span class="ruby-value str">&quot;anyType&quot;</span>][<span class="ruby-value str">&quot;Clicks&quot;</span>].<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">result</span>[<span class="ruby-value str">&quot;anyType&quot;</span>][<span class="ruby-value str">&quot;Unsubscribed&quot;</span>].<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">result</span>[<span class="ruby-value str">&quot;anyType&quot;</span>][<span class="ruby-value str">&quot;Bounced&quot;</span>].<span class="ruby-identifier">to_i</span>)
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 trunk/doc/classes/CampaignMonitor.src/M000016.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>campaign_get_opens (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 139</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">campaign_get_opens</span>(<span class="ruby-identifier">campaign_id</span>)
+ <span class="ruby-identifier">records</span> <span class="ruby-value str">&quot;SubscriberOpen&quot;</span>, <span class="ruby-identifier">get_path</span>(<span class="ruby-value str">&quot;Campaign.GetOpens&quot;</span>) <span class="ruby-operator">+</span> <span class="ruby-node">&quot;&amp;CampaignID=#{campaign_id}&quot;</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 trunk/doc/classes/CampaignMonitor.src/M000017.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>campaign_get_bounces (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 143</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">campaign_get_bounces</span>(<span class="ruby-identifier">campaign_id</span>)
+ <span class="ruby-identifier">records</span> <span class="ruby-value str">&quot;SubscriberBounce&quot;</span>, <span class="ruby-identifier">get_path</span>(<span class="ruby-value str">&quot;Campaign.GetBounces&quot;</span>) <span class="ruby-operator">+</span> <span class="ruby-node">&quot;&amp;CampaignID=#{campaign_id}&quot;</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 trunk/doc/classes/CampaignMonitor.src/M000018.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>campaign_get_subscriber_clicks (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 147</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">campaign_get_subscriber_clicks</span>(<span class="ruby-identifier">campaign_id</span>)
+ <span class="ruby-identifier">records</span> <span class="ruby-value str">&quot;SubscriberClick&quot;</span>, <span class="ruby-identifier">get_path</span>(<span class="ruby-value str">&quot;Campaign.GetClicks&quot;</span>) <span class="ruby-operator">+</span> <span class="ruby-node">&quot;&amp;CampaignID=#{campaign_id}&quot;</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 trunk/doc/classes/CampaignMonitor.src/M000019.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>campaign_get_unsubscribes (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 151</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">campaign_get_unsubscribes</span>(<span class="ruby-identifier">campaign_id</span>)
+ <span class="ruby-identifier">records</span> <span class="ruby-value str">&quot;SubscriberUnsubscribe&quot;</span>, <span class="ruby-identifier">get_path</span>(<span class="ruby-value str">'Campaign.GetUnsubscribes'</span>) <span class="ruby-operator">+</span> <span class="ruby-node">&quot;&amp;CampaignID=#{campaign_id}&quot;</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 trunk/doc/classes/CampaignMonitor.src/M000020.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>client_get_lists (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 157</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">client_get_lists</span>(<span class="ruby-identifier">client_id</span>)
+ <span class="ruby-identifier">records</span> <span class="ruby-value str">&quot;List&quot;</span>, <span class="ruby-identifier">get_path</span>(<span class="ruby-value str">'Client.GetLists'</span>) <span class="ruby-operator">+</span> <span class="ruby-node">&quot;&amp;ClientID=#{client_id}&quot;</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 trunk/doc/classes/CampaignMonitor.src/M000021.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>client_get_campaigns (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 161</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">client_get_campaigns</span>(<span class="ruby-identifier">client_id</span>)
+ <span class="ruby-identifier">records</span> <span class="ruby-value str">&quot;Campaign&quot;</span>, <span class="ruby-identifier">get_path</span>(<span class="ruby-value str">'Client.GetCampaigns'</span>) <span class="ruby-operator">+</span> <span class="ruby-node">&quot;&amp;ClientID=#{client_id}&quot;</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 trunk/doc/classes/CampaignMonitor.src/M000022.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>user_get_clients (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 169</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">user_get_clients</span>
+ <span class="ruby-identifier">records</span> <span class="ruby-value str">&quot;Client&quot;</span>, <span class="ruby-identifier">get_path</span>(<span class="ruby-value str">'User.GetClients'</span>)
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 trunk/doc/classes/CampaignMonitor.src/M000023.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>user_get_system_date (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 173</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">user_get_system_date</span>
+ <span class="ruby-identifier">request</span>(<span class="ruby-identifier">get_path</span>(<span class="ruby-value str">'User.GetSystemDate'</span>))[<span class="ruby-value str">&quot;anyType&quot;</span>]
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
29 trunk/doc/classes/CampaignMonitor.src/M000024.html
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>request (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 180</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">request</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">parameters</span> = {}, <span class="ruby-identifier">second_try</span> = <span class="ruby-keyword kw">false</span>)
+ <span class="ruby-comment cmt">#response = post(path, convert_body(parameters), &quot;Content-Type&quot; =&gt; content_type)</span>
+ <span class="ruby-identifier">response</span> = <span class="ruby-identifier">get</span>(<span class="ruby-identifier">path</span>)
+
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">response</span>.<span class="ruby-identifier">code</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-operator">/</span> <span class="ruby-value">100</span> <span class="ruby-operator">==</span> <span class="ruby-value">2</span>
+ <span class="ruby-identifier">result</span> = <span class="ruby-constant">XmlSimple</span>.<span class="ruby-identifier">xml_in</span>(<span class="ruby-identifier">response</span>.<span class="ruby-identifier">body</span>, <span class="ruby-value str">'keeproot'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">true</span>, <span class="ruby-value str">'NoAttr'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">true</span>, <span class="ruby-value str">'ForceArray'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>)
+ <span class="ruby-comment cmt">#typecast_value(result)</span>
+ <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">response</span>.<span class="ruby-identifier">code</span> <span class="ruby-operator">==</span> <span class="ruby-value str">&quot;302&quot;</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-operator">!</span><span class="ruby-identifier">second_try</span>
+ <span class="ruby-identifier">connect!</span>(<span class="ruby-ivar">@url</span>, <span class="ruby-operator">!</span><span class="ruby-ivar">@use_ssl</span>)
+ <span class="ruby-identifier">request</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">parameters</span>, <span class="ruby-keyword kw">true</span>)
+ <span class="ruby-keyword kw">else</span>
+ <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;#{response.message} (#{response.code})&quot;</span>
+ <span class="ruby-keyword kw">end</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
19 trunk/doc/classes/CampaignMonitor.src/M000025.html
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>record (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 197</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">record</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">parameters</span>={})
+ <span class="ruby-identifier">result</span> = <span class="ruby-identifier">get</span>(<span class="ruby-identifier">path</span>)
+ (<span class="ruby-identifier">result</span>) <span class="ruby-operator">?</span> <span class="ruby-constant">Record</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">result</span>.<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">first</span>, <span class="ruby-identifier">result</span>.<span class="ruby-identifier">values</span>.<span class="ruby-identifier">first</span>) <span class="ruby-operator">:</span> <span class="ruby-keyword kw">nil</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
21 trunk/doc/classes/CampaignMonitor.src/M000026.html
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>records (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File campaign_monitor_old.rb, line 208</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">records</span>(<span class="ruby-identifier">node</span>, <span class="ruby-identifier">path</span>, <span class="ruby-identifier">parameters</span>={})
+ <span class="ruby-identifier">result</span> = <span class="ruby-identifier">request</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">parameters</span>).<span class="ruby-identifier">values</span>.<span class="ruby-identifier">first</span> <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">return</span> []
+ <span class="ruby-identifier">result</span> = <span class="ruby-identifier">result</span>[<span class="ruby-identifier">node</span>] <span class="ruby-keyword kw">or</span> <span class="ruby-keyword kw">return</span> []
+ <span class="ruby-identifier">result</span> = [<span class="ruby-identifier">result</span>] <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">Array</span> <span class="ruby-operator">===</span> <span class="ruby-identifier">result</span>
+ <span class="ruby-identifier">result</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">row</span><span class="ruby-operator">|</span> <span class="ruby-constant">Record</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">node</span>, <span class="ruby-identifier">row</span>) }
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
20 trunk/doc/classes/CampaignMonitor.src/M000027.html
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>new (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 64</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">api_key</span>=<span class="ruby-constant">CAMPAIGN_MONITOR_API_KEY</span>)
+ <span class="ruby-ivar">@api_key</span> = <span class="ruby-identifier">api_key</span>
+ <span class="ruby-ivar">@host</span> = <span class="ruby-value str">'http://app.campaignmonitor.com'</span>
+ <span class="ruby-ivar">@api</span> = <span class="ruby-value str">'/api/api.asmx/'</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
19 trunk/doc/classes/CampaignMonitor.src/M000028.html
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>request (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 72</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">request</span>(<span class="ruby-identifier">method</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">params</span>)
+ <span class="ruby-identifier">response</span> = <span class="ruby-constant">XmlSimple</span>.<span class="ruby-identifier">xml_in</span>(<span class="ruby-identifier">http_get</span>(<span class="ruby-identifier">request_url</span>(<span class="ruby-identifier">method</span>, <span class="ruby-identifier">params</span>)), { <span class="ruby-value str">'ForceArray'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">false</span>, <span class="ruby-value str">'ForceArray'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-regexp re">%r(List$|Campaign$|Subscriber$|Client$|SubscriberOpen$|SubscriberUnsubscribe$|SubscriberClick$|SubscriberBounce$)</span>, <span class="ruby-value str">'NoAttr'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">true</span> })
+ <span class="ruby-identifier">response</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
20 trunk/doc/classes/CampaignMonitor.src/M000029.html
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>request_url (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 78</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">request_url</span>(<span class="ruby-identifier">method</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">params</span>)
+ <span class="ruby-identifier">url</span> = <span class="ruby-node">&quot;#{@host}#{@api}/#{method}?ApiKey=#{@api_key}&quot;</span>
+ <span class="ruby-identifier">params</span>[<span class="ruby-value">0</span>][<span class="ruby-value">0</span>].<span class="ruby-identifier">each_key</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span><span class="ruby-operator">|</span> <span class="ruby-identifier">url</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;&amp;#{key}=&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-constant">CGI</span><span class="ruby-operator">::</span><span class="ruby-identifier">escape</span>(<span class="ruby-identifier">params</span>[<span class="ruby-value">0</span>][<span class="ruby-value">0</span>][<span class="ruby-identifier">key</span>].<span class="ruby-identifier">to_s</span>) <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">params</span>[<span class="ruby-value">0</span>][<span class="ruby-value">0</span>]
+ <span class="ruby-identifier">url</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 trunk/doc/classes/CampaignMonitor.src/M000030.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>http_get (CampaignMonitor)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/campaign_monitor.rb, line 85</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">http_get</span>(<span class="ruby-identifier">url</span>)
+ <span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">HTTP</span>.<span class="ruby-identifier">get_response</span>(<span class="ruby-constant">URI</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">url</span>)).<span class="ruby-identifier">body</span>.<span class="ruby-identifier">to_s</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 trunk/doc/classes/CampaignMonitor.src/M000031.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">