--- http_interactions: - request: method: get uri: https://api.emailcampaigns.net/2/REST/?campaignName=factory%20campaign&content%5Btext%5D=This%20is%20a%20good%20message!%20%7BCOMPANY_ADDRESS%7D&key=%{API_KEY}&method=Campaign_Create_Transactional&senderEmail=sender@example.com&senderName=Sender%20Example&subject=Factory%20Campaign%20Message&testContact%5Bemail%5D=test-contact@example.com&testReplacements%5Bfirst_name%5D=John body: encoding: US-ASCII string: '' headers: Accept: - application/json User-Agent: - contactology/0.1.2 (Rubygems; Ruby 1.9.3 x86_64-darwin12.2.0) response: status: code: 200 message: OK headers: X-Powered-By: - PHP/5.2.10 Set-Cookie: - PHPSESSID=888e25aa21460b8ba3c2fb1a23221aef; 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 Connection: - close Transfer-Encoding: - chunked Date: - Wed, 20 Feb 2013 05:16:43 GMT Server: - lighttpd/1.4.28 body: encoding: US-ASCII string: '113' http_version: recorded_at: Wed, 20 Feb 2013 05:16:44 GMT - request: method: get uri: https://api.emailcampaigns.net/2/REST/?campaignId=113&key=%{API_KEY}&method=Campaign_Delete body: encoding: US-ASCII string: '' headers: Accept: - application/json User-Agent: - contactology/0.1.2 (Rubygems; Ruby 1.9.3 x86_64-darwin12.2.0) response: status: code: 200 message: OK headers: X-Powered-By: - PHP/5.2.10 Set-Cookie: - PHPSESSID=4cde875d1957d22dfb68cb078a7cca79; 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 Connection: - close Transfer-Encoding: - chunked Date: - Wed, 20 Feb 2013 05:16:44 GMT Server: - lighttpd/1.4.28 body: encoding: US-ASCII string: 'true' http_version: recorded_at: Wed, 20 Feb 2013 05:16:44 GMT - request: method: get uri: https://api.emailcampaigns.net/2/REST/?email=factory-contact@example.com&key=%{API_KEY}&method=Contact_Add&optionalParameters%5BupdateCustomFields%5D=true body: encoding: US-ASCII string: '' headers: Accept: - application/json User-Agent: - contactology/0.1.2 (Rubygems; Ruby 1.9.3 x86_64-darwin12.2.0) response: status: code: 200 message: OK headers: X-Powered-By: - PHP/5.2.10 Set-Cookie: - PHPSESSID=130ab2130b1a8e6898da27b09053e3b8; 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 Connection: - close Transfer-Encoding: - chunked Date: - Wed, 20 Feb 2013 05:16:44 GMT Server: - lighttpd/1.4.28 body: encoding: US-ASCII string: 'true' http_version: recorded_at: Wed, 20 Feb 2013 05:16:44 GMT - request: method: get uri: https://api.emailcampaigns.net/2/REST/?campaignId=113&contact%5Bemail%5D=factory-contact@example.com&contact%5Bstatus%5D=active&key=%{API_KEY}&method=Campaign_Send_Transactional&replacements%5B_contactology%5D=Contactology&source=Factory%20Created body: encoding: US-ASCII string: '' headers: Accept: - application/json User-Agent: - contactology/0.1.2 (Rubygems; Ruby 1.9.3 x86_64-darwin12.2.0) response: status: code: 200 message: OK headers: X-Powered-By: - PHP/5.2.10 Set-Cookie: - PHPSESSID=54a15750932612bd31f92ccc189b46cf; 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 Connection: - close Transfer-Encoding: - chunked Date: - Wed, 20 Feb 2013 05:16:45 GMT Server: - lighttpd/1.4.28 body: encoding: US-ASCII string: ! '{"result":"error","message":"Input Error: Campaign 113 has the wrong status","code":601}' http_version: recorded_at: Wed, 20 Feb 2013 05:16:45 GMT - request: method: get uri: https://api.emailcampaigns.net/2/REST/?email=factory-contact@example.com&key=%{API_KEY}&method=Contact_Delete body: encoding: US-ASCII string: '' headers: Accept: - application/json User-Agent: - contactology/0.1.2 (Rubygems; Ruby 1.9.3 x86_64-darwin12.2.0) response: status: code: 200 message: OK headers: X-Powered-By: - PHP/5.2.10 Set-Cookie: - PHPSESSID=ed2387c9e653f52980e28cf2e9481c08; 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 Connection: - close Transfer-Encoding: - chunked Date: - Wed, 20 Feb 2013 05:16:45 GMT Server: - lighttpd/1.4.28 body: encoding: US-ASCII string: 'true' http_version: recorded_at: Wed, 20 Feb 2013 05:16:45 GMT recorded_with: VCR 2.4.0