--- - !ruby/struct:VCR::HTTPInteraction request: !ruby/struct:VCR::Request method: :get uri: https://api.emailcampaigns.net:443/2/REST/?campaignName=factory%20campaign&key=%{API_KEY}&method=Campaign_Create_Transactional&senderEmail=sender@example.com&senderName=Sender%20Example&subject=Test%20Creation&content%5Btext%5D=This%20is%20a%20good%20email.%20%7BCOMPANY_ADDRESS%7D&testContact%5Bemail%5D=test-contact@example.com&testReplacements%5Bfirst_name%5D=John body: headers: accept: - application/json user-agent: - contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1) response: !ruby/struct:VCR::Response status: !ruby/struct:VCR::ResponseStatus code: 200 message: OK headers: x-powered-by: - PHP/5.2.10 set-cookie: - PHPSESSID=a7ab7567f3ff2131b7dec2c6026d5f48; path=/ expires: - Thu, 19 Nov 1981 08:52:00 GMT cache-control: - no-store, no-cache, must-revalidate, post-check=0, pre-check=0 pragma: - no-cache content-type: - text/plain;charset=UTF-8 transfer-encoding: - chunked date: - Wed, 03 Aug 2011 18:42:25 GMT server: - lighttpd/1.4.28 body: "41" http_version: "1.1" - !ruby/struct:VCR::HTTPInteraction request: !ruby/struct:VCR::Request method: :get uri: https://api.emailcampaigns.net:443/2/REST/?campaignId=41&key=%{API_KEY}&method=Campaign_Delete body: headers: accept: - application/json user-agent: - contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1) response: !ruby/struct:VCR::Response status: !ruby/struct:VCR::ResponseStatus code: 200 message: OK headers: x-powered-by: - PHP/5.2.10 set-cookie: - PHPSESSID=e3d590776569a8ee5778463d527b6cee; path=/ expires: - Thu, 19 Nov 1981 08:52:00 GMT cache-control: - no-store, no-cache, must-revalidate, post-check=0, pre-check=0 pragma: - no-cache content-type: - text/plain;charset=UTF-8 transfer-encoding: - chunked date: - Wed, 03 Aug 2011 18:42:37 GMT server: - lighttpd/1.4.28 body: "true" http_version: "1.1" - !ruby/struct:VCR::HTTPInteraction request: !ruby/struct:VCR::Request method: :get uri: https://api.emailcampaigns.net:443/2/REST/?email=factory-contact@example.com&key=%{API_KEY}&method=Contact_Add&optionalParameters%5BupdateCustomFields%5D=true body: headers: accept: - application/json user-agent: - contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1) response: !ruby/struct:VCR::Response status: !ruby/struct:VCR::ResponseStatus code: 200 message: OK headers: x-powered-by: - PHP/5.2.10 set-cookie: - PHPSESSID=b621ce46effde38db4e184f9d7696854; path=/ expires: - Thu, 19 Nov 1981 08:52:00 GMT cache-control: - no-store, no-cache, must-revalidate, post-check=0, pre-check=0 pragma: - no-cache content-type: - text/plain;charset=UTF-8 transfer-encoding: - chunked date: - Wed, 03 Aug 2011 18:42:37 GMT server: - lighttpd/1.4.28 body: "true" http_version: "1.1" - !ruby/struct:VCR::HTTPInteraction request: !ruby/struct:VCR::Request method: :get uri: https://api.emailcampaigns.net:443/2/REST/?campaignId=41&key=%{API_KEY}&method=Campaign_Send_Transactional&source=Factory%20Created&contact%5Bemail%5D=factory-contact@example.com&contact%5Bstatus%5D=active&replacements%5B_contactology%5D=Contactology body: headers: accept: - application/json user-agent: - contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1) response: !ruby/struct:VCR::Response status: !ruby/struct:VCR::ResponseStatus code: 200 message: OK headers: x-powered-by: - PHP/5.2.10 set-cookie: - PHPSESSID=5b0f14e37596fa1d352c4c0d30bac45f; path=/ expires: - Thu, 19 Nov 1981 08:52:00 GMT cache-control: - no-store, no-cache, must-revalidate, post-check=0, pre-check=0 pragma: - no-cache content-type: - text/plain;charset=UTF-8 transfer-encoding: - chunked date: - Wed, 03 Aug 2011 18:42:44 GMT server: - lighttpd/1.4.28 body: "{\"result\":\"error\",\"message\":\"Input Error: Campaign 41 has the wrong status\",\"code\":601}" http_version: "1.1" - !ruby/struct:VCR::HTTPInteraction request: !ruby/struct:VCR::Request method: :get uri: https://api.emailcampaigns.net:443/2/REST/?email=factory-contact@example.com&key=%{API_KEY}&method=Contact_Delete body: headers: accept: - application/json user-agent: - contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1) response: !ruby/struct:VCR::Response status: !ruby/struct:VCR::ResponseStatus code: 200 message: OK headers: x-powered-by: - PHP/5.2.10 set-cookie: - PHPSESSID=cff8d4a314315bf7b97448e78c3b5cf5; path=/ expires: - Thu, 19 Nov 1981 08:52:00 GMT cache-control: - no-store, no-cache, must-revalidate, post-check=0, pre-check=0 pragma: - no-cache content-type: - text/plain;charset=UTF-8 transfer-encoding: - chunked date: - Wed, 03 Aug 2011 18:42:45 GMT server: - lighttpd/1.4.28 body: "true" http_version: "1.1"