madmimi 1.0.16 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +2 -0
  3. data/Gemfile +12 -0
  4. data/Gemfile.lock +93 -0
  5. data/README.rdoc +88 -37
  6. data/Rakefile +2 -30
  7. data/VERSION +1 -1
  8. data/config/paths.yml +23 -0
  9. data/lib/madmimi.rb +210 -123
  10. data/madmimi.gemspec +130 -22
  11. data/spec/cassettes/add_to_list/success.yml +54 -0
  12. data/spec/cassettes/add_to_list/user_does_not_exist.yml +165 -0
  13. data/spec/cassettes/add_to_list/user_existed.yml +54 -0
  14. data/spec/cassettes/add_to_list/user_exists.yml +171 -0
  15. data/spec/cassettes/add_to_list/user_updated.yml +174 -0
  16. data/spec/cassettes/add_user/user_did_not_exist.yml +54 -0
  17. data/spec/cassettes/add_user/user_exist.yml +303 -0
  18. data/spec/cassettes/add_user/user_existed.yml +54 -0
  19. data/spec/cassettes/add_user/user_missing.yml +138 -0
  20. data/spec/cassettes/add_user/user_updated.yml +153 -0
  21. data/spec/cassettes/add_users/users_did_not_exist.yml +54 -0
  22. data/spec/cassettes/add_users/users_exist.yml +326 -0
  23. data/spec/cassettes/add_users/users_existed.yml +54 -0
  24. data/spec/cassettes/add_users/users_missing.yml +305 -0
  25. data/spec/cassettes/add_users/users_updated.yml +327 -0
  26. data/spec/cassettes/add_users_to_list/gained_membership.yml +107 -0
  27. data/spec/cassettes/add_users_to_list/missing_membership.yml +174 -0
  28. data/spec/cassettes/add_users_to_list/users_did_not_exist.yml +54 -0
  29. data/spec/cassettes/add_users_to_list/users_exist.yml +365 -0
  30. data/spec/cassettes/add_users_to_list/users_existed.yml +54 -0
  31. data/spec/cassettes/add_users_to_list/users_missing.yml +341 -0
  32. data/spec/cassettes/add_users_to_list/users_updated.yml +365 -0
  33. data/spec/cassettes/audience_search/does_not_include_suppressed_users.yml +76 -0
  34. data/spec/cassettes/audience_search/includes_suppressed_users.yml +86 -0
  35. data/spec/cassettes/csv_import/success.yml +54 -0
  36. data/spec/cassettes/csv_import/users_exist.yml +273 -0
  37. data/spec/cassettes/csv_import/users_missing.yml +381 -0
  38. data/spec/cassettes/delete_list/exists.yml +57 -0
  39. data/spec/cassettes/delete_list/fail.yml +54 -0
  40. data/spec/cassettes/delete_list/not_exists.yml +56 -0
  41. data/spec/cassettes/delete_list/success.yml +54 -0
  42. data/spec/cassettes/delete_list/users_exist.yml +129 -0
  43. data/spec/cassettes/list_members/multiple.yml +68 -0
  44. data/spec/cassettes/list_members/single.yml +68 -0
  45. data/spec/cassettes/lists/multiple.yml +56 -0
  46. data/spec/cassettes/lists/single.yml +55 -0
  47. data/spec/cassettes/mailing_stats/mailing_does_not_exist.yml +50 -0
  48. data/spec/cassettes/mailing_stats/promotion_and_mailing_exist.yml +57 -0
  49. data/spec/cassettes/mailing_stats/promotion_does_not_exist.yml +50 -0
  50. data/spec/cassettes/members/multiple.yml +174 -0
  51. data/spec/cassettes/members/single.yml +61 -0
  52. data/spec/cassettes/memberships/multiple.yml +56 -0
  53. data/spec/cassettes/memberships/single.yml +108 -0
  54. data/spec/cassettes/new_list/exists.yml +57 -0
  55. data/spec/cassettes/new_list/fail.yml +52 -0
  56. data/spec/cassettes/new_list/not_exists.yml +56 -0
  57. data/spec/cassettes/new_list/success.yml +52 -0
  58. data/spec/cassettes/promotions/multiple.yml +63 -0
  59. data/spec/cassettes/promotions/single.yml +61 -0
  60. data/spec/cassettes/remove_from_all_list/user_does_not_have_memberships.yml +60 -0
  61. data/spec/cassettes/remove_from_all_lists/user_has_memberships.yml +113 -0
  62. data/spec/cassettes/remove_from_all_lists/user_with_memberships.yml +49 -0
  63. data/spec/cassettes/remove_from_list/user_does_not_exist.yml +49 -0
  64. data/spec/cassettes/remove_from_list/user_in_list_does_not_exist.yml +62 -0
  65. data/spec/cassettes/remove_from_list/user_in_list_exists.yml +68 -0
  66. data/spec/cassettes/remove_from_list/user_in_the_list.yml +49 -0
  67. data/spec/cassettes/remove_from_list/user_not_in_the_list.yml +49 -0
  68. data/spec/cassettes/save_promotion/only_plain_text.yml +56 -0
  69. data/spec/cassettes/save_promotion/only_raw_html.yml +56 -0
  70. data/spec/cassettes/save_promotion/promotion_exists.yml +65 -0
  71. data/spec/cassettes/save_promotion/promotion_missing.yml +63 -0
  72. data/spec/cassettes/save_promotion/raw_html_and_plain_text.yml +56 -0
  73. data/spec/cassettes/send_html/promotion_does_not_exist.yml +56 -0
  74. data/spec/cassettes/send_html/send_single.yml +53 -0
  75. data/spec/cassettes/send_html/send_to_all.yml +56 -0
  76. data/spec/cassettes/send_html/send_to_list.yml +56 -0
  77. data/spec/cassettes/send_mail/promotion_does_not_exist.yml +54 -0
  78. data/spec/cassettes/send_mail/send_single.yml +53 -0
  79. data/spec/cassettes/send_mail/send_to_all.yml +56 -0
  80. data/spec/cassettes/send_mail/send_to_list.yml +56 -0
  81. data/spec/cassettes/send_plaintext/promotion_does_not_exist.yml +56 -0
  82. data/spec/cassettes/send_plaintext/send_single.yml +53 -0
  83. data/spec/cassettes/send_plaintext/send_to_all.yml +56 -0
  84. data/spec/cassettes/send_plaintext/send_to_list.yml +56 -0
  85. data/spec/cassettes/send_plaintext/tracking_beacon_missing.yml +56 -0
  86. data/spec/cassettes/status/transactional_mail_does_not_exist.yml +51 -0
  87. data/spec/cassettes/status/transactional_mail_exists.yml +53 -0
  88. data/spec/cassettes/suppress_email/already_suppressed.yml +51 -0
  89. data/spec/cassettes/suppress_email/not_suppressed.yml +102 -0
  90. data/spec/cassettes/suppress_email/user_does_not_exist.yml +100 -0
  91. data/spec/cassettes/suppress_email/user_is_now_suppressed.yml +51 -0
  92. data/spec/cassettes/suppress_email/user_not_suppressed.yml +51 -0
  93. data/spec/cassettes/suppressed/member_does_not_exist.yml +49 -0
  94. data/spec/cassettes/suppressed/member_is_not_suppressed.yml +51 -0
  95. data/spec/cassettes/suppressed/member_is_suppressed.yml +51 -0
  96. data/spec/cassettes/suppressed_since/members_exist.yml +56 -0
  97. data/spec/cassettes/suppressed_since/no_members.yml +56 -0
  98. data/spec/cassettes/unsuppress_email/already_suppressed.yml +100 -0
  99. data/spec/cassettes/unsuppress_email/not_suppressed.yml +99 -0
  100. data/spec/cassettes/unsuppress_email/user_does_not_exist.yml +99 -0
  101. data/spec/cassettes/unsuppress_email/user_is_now_unsuppressed.yml +49 -0
  102. data/spec/cassettes/unsuppress_email/user_suppressed.yml +51 -0
  103. data/spec/cassettes/update_email/user_does_not_have_permission.yml +52 -0
  104. data/spec/cassettes/update_email/user_existed.yml +54 -0
  105. data/spec/cassettes/update_email/user_missing.yml +52 -0
  106. data/spec/cassettes/update_email/user_with_new_email.yml +345 -0
  107. data/spec/cassettes/update_email/user_with_old_email.yml +345 -0
  108. data/spec/madmimi_spec.rb +1166 -0
  109. data/spec/spec_helper.rb +15 -0
  110. metadata +210 -96
  111. data/test/fixtures/lists.xml +0 -7
  112. data/test/fixtures/promotions.xml +0 -10
  113. data/test/fixtures/search.xml +0 -38
  114. data/test/helper.rb +0 -43
  115. data/test/test_madmimi.rb +0 -63
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.madmimi.com/audience_lists/list%201/remove
6
+ body:
7
+ encoding: US-ASCII
8
+ string: username=test%40example.com&api_key=TEST_API_KEY&email=test%40example.com
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Date:
16
+ - Sun, 07 Sep 2014 17:56:02 GMT
17
+ Content-Type:
18
+ - text/html
19
+ Transfer-Encoding:
20
+ - chunked
21
+ Connection:
22
+ - keep-alive
23
+ Set-Cookie:
24
+ - __cfduid=d8889651790107d03683650acf6afef561410112562249; expires=Mon, 23-Dec-2019
25
+ 23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
26
+ X-Ua-Compatible:
27
+ - IE=Edge,chrome=1
28
+ Cache-Control:
29
+ - no-cache
30
+ X-Request-Id:
31
+ - 4c8604b84bfa73a730b9442cf2f0f107
32
+ X-Rack-Cache:
33
+ - invalidate, pass
34
+ Status:
35
+ - 200 OK
36
+ P3p:
37
+ - CP="CAO PSA OUR"
38
+ Vary:
39
+ - Accept-Encoding
40
+ Server:
41
+ - cloudflare-nginx
42
+ Cf-Ray:
43
+ - 1664c7da0c220479-FRA
44
+ body:
45
+ encoding: US-ASCII
46
+ string: ''
47
+ http_version:
48
+ recorded_at: Sun, 07 Sep 2014 17:56:01 GMT
49
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,56 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.madmimi.com/promotions/save
6
+ body:
7
+ encoding: US-ASCII
8
+ string: username=test%40example.com&api_key=TEST_API_KEY&promotion_name=Test%20promotion&raw_plain_text=Test%20%5B%5Bopt_out%5D%5D
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Date:
16
+ - Mon, 08 Sep 2014 06:05:06 GMT
17
+ Content-Type:
18
+ - text/html; charset=utf-8
19
+ Transfer-Encoding:
20
+ - chunked
21
+ Connection:
22
+ - keep-alive
23
+ Set-Cookie:
24
+ - __cfduid=d42ab3c85b5b3eb04ab9119a42172a8b51410156306387; expires=Mon, 23-Dec-2019
25
+ 23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
26
+ - _mad_mimi=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTJiYTBiZWM5NDBmZmUzNjk4YTBkOWI0Y2FmMTMwMzY1BjsAVEkiCmNydW1iBjsARkkiEC9wcm9tb3Rpb25zBjsAVA%3D%3D--721475e3926eeca7fa3f1e17fb14c54d3ec0fc1d;
27
+ domain=.madmimi.com; path=/; HttpOnly
28
+ - chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
29
+ GMT
30
+ - non_eu=true; path=/
31
+ X-Ua-Compatible:
32
+ - IE=Edge,chrome=1
33
+ Etag:
34
+ - W/"b9c77cc59179564f23d1f14c3857b80c"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - f002e99b1b4f090310f1ceaa4bee13e1
39
+ X-Rack-Cache:
40
+ - invalidate, pass
41
+ Status:
42
+ - 200 OK
43
+ P3p:
44
+ - CP="CAO PSA OUR"
45
+ Vary:
46
+ - Accept-Encoding
47
+ Server:
48
+ - cloudflare-nginx
49
+ Cf-Ray:
50
+ - 1668f3d2ecf307d9-LAX
51
+ body:
52
+ encoding: US-ASCII
53
+ string: Saved Test promotion (5516645)
54
+ http_version:
55
+ recorded_at: Mon, 08 Sep 2014 06:05:06 GMT
56
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,56 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.madmimi.com/promotions/save
6
+ body:
7
+ encoding: US-ASCII
8
+ string: username=test%40example.com&api_key=TEST_API_KEY&promotion_name=Test%20promotion&raw_html=%3Chtml%3E%3Cbody%3ETest%20%5B%5Btracking_beacon%5D%5D%5B%5Bopt_out%5D%5D%3C%2Fbody%3E%3C%2Fhtml%3E
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Date:
16
+ - Mon, 08 Sep 2014 06:05:05 GMT
17
+ Content-Type:
18
+ - text/html; charset=utf-8
19
+ Transfer-Encoding:
20
+ - chunked
21
+ Connection:
22
+ - keep-alive
23
+ Set-Cookie:
24
+ - __cfduid=dac1306f205fc7bfa01864aed2af391091410156304599; expires=Mon, 23-Dec-2019
25
+ 23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
26
+ - _mad_mimi=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJWZkZThiMjA4MTQ3NDQyZjBlNDYwNjEyMTI3YzY5ZjRhBjsAVEkiCmNydW1iBjsARkkiEC9wcm9tb3Rpb25zBjsAVA%3D%3D--12b5a893fa6d140ec3c24d950942a66da0873dd9;
27
+ domain=.madmimi.com; path=/; HttpOnly
28
+ - chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
29
+ GMT
30
+ - non_eu=true; path=/
31
+ X-Ua-Compatible:
32
+ - IE=Edge,chrome=1
33
+ Etag:
34
+ - W/"b9c77cc59179564f23d1f14c3857b80c"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - e4b90ce6f8b49c0b1df1f2b84521e4f4
39
+ X-Rack-Cache:
40
+ - invalidate, pass
41
+ Status:
42
+ - 200 OK
43
+ P3p:
44
+ - CP="CAO PSA OUR"
45
+ Vary:
46
+ - Accept-Encoding
47
+ Server:
48
+ - cloudflare-nginx
49
+ Cf-Ray:
50
+ - 1668f3c7be4b0d79-SJC
51
+ body:
52
+ encoding: US-ASCII
53
+ string: Saved Test promotion (5516645)
54
+ http_version:
55
+ recorded_at: Mon, 08 Sep 2014 06:05:05 GMT
56
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,65 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.madmimi.com/promotions.xml
6
+ body:
7
+ encoding: US-ASCII
8
+ string: username=test%40example.com&api_key=TEST_API_KEY
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Date:
16
+ - Mon, 08 Sep 2014 06:05:05 GMT
17
+ Content-Type:
18
+ - application/xml; charset=utf-8
19
+ Transfer-Encoding:
20
+ - chunked
21
+ Connection:
22
+ - keep-alive
23
+ Set-Cookie:
24
+ - __cfduid=d9fc4517fe04f0b884465dd1515fdf3221410156305454; expires=Mon, 23-Dec-2019
25
+ 23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
26
+ - _mad_mimi=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJWIzOTYxYzQ3MjhiNDM3NGNmZmIzY2QyYTkxYzczZGRiBjsAVEkiCmNydW1iBjsARkkiEC9wcm9tb3Rpb25zBjsAVA%3D%3D--0549d5ea48ddece32e1ede59d2a9cda50d37ade8;
27
+ domain=.madmimi.com; path=/; HttpOnly
28
+ - chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
29
+ GMT
30
+ - non_eu=true; path=/
31
+ X-Ua-Compatible:
32
+ - IE=Edge,chrome=1
33
+ Etag:
34
+ - W/"a18c7fd0ce38d8a083ad1b48c9fba6bb"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - e38c7016cfdd77f8232dd66b9f0080a6
39
+ X-Rack-Cache:
40
+ - miss
41
+ Status:
42
+ - 200 OK
43
+ Vary:
44
+ - Accept-Encoding
45
+ P3p:
46
+ - CP="CAO PSA OUR"
47
+ Server:
48
+ - cloudflare-nginx
49
+ Cf-Ray:
50
+ - 1668f3cd1c4c07d9-LAX
51
+ body:
52
+ encoding: US-ASCII
53
+ string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<promotions>\n<promotion
54
+ name=\"Test promotion\" id=\"5516645\" mimio=\"56d245\" updated_at=\"2014-09-08
55
+ 01:05:05 -0500\" hidden=\"false\" thumbnail=\"\">\n</promotion>\n<promotion
56
+ name=\"Untitled Promotion\" id=\"5515748\" mimio=\"4e9245\" updated_at=\"2014-09-07
57
+ 15:54:55 -0500\" hidden=\"false\" thumbnail=\"https://snaps.madmimi.com/v2/thumbs.php?size=b&amp;wait=120&amp;url=https%3A%2F%2Fmadmimi.com%2Fp%2F4e9245\">\n</promotion>\n<promotion
58
+ name=\"API test\" id=\"5510034\" mimio=\"293145\" updated_at=\"2014-09-05
59
+ 14:20:42 -0500\" hidden=\"false\" thumbnail=\"https://snaps.madmimi.com/v2/thumbs.php?size=b&amp;wait=120&amp;url=https%3A%2F%2Fmadmimi.com%2Fp%2F293145\">\n
60
+ \ <mailing id=\"122026332\" subject=\"API test\" count=\"1\">\n <started_send>2014-09-05
61
+ 14:26:32 -0500</started_send>\n <finished_send>2014-09-05 14:26:34 -0500</finished_send>\n
62
+ \ </mailing>\n</promotion>\n</promotions>\n"
63
+ http_version:
64
+ recorded_at: Mon, 08 Sep 2014 06:05:06 GMT
65
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.madmimi.com/promotions.xml
6
+ body:
7
+ encoding: US-ASCII
8
+ string: username=test%40example.com&api_key=TEST_API_KEY
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Date:
16
+ - Mon, 08 Sep 2014 06:05:03 GMT
17
+ Content-Type:
18
+ - application/xml; charset=utf-8
19
+ Transfer-Encoding:
20
+ - chunked
21
+ Connection:
22
+ - keep-alive
23
+ Set-Cookie:
24
+ - __cfduid=d593487d278ae962987e9ccbc95eaa1ed1410156303580; expires=Mon, 23-Dec-2019
25
+ 23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
26
+ - _mad_mimi=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTJlYzVmNTliZWRkMDM4Njc1NTAwMDM3MGNkZTM4NjNhBjsAVEkiCmNydW1iBjsARkkiEC9wcm9tb3Rpb25zBjsAVA%3D%3D--f503f92c4edfa67595e8e3a57f30c1e28f23da1c;
27
+ domain=.madmimi.com; path=/; HttpOnly
28
+ - chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
29
+ GMT
30
+ - non_eu=true; path=/
31
+ X-Ua-Compatible:
32
+ - IE=Edge,chrome=1
33
+ Etag:
34
+ - W/"8db6881ef1b7bdb87929210850fe94ef"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - 6d65ab13c7064a9ff7c058c95cdaa722
39
+ X-Rack-Cache:
40
+ - miss
41
+ Status:
42
+ - 200 OK
43
+ Vary:
44
+ - Accept-Encoding
45
+ P3p:
46
+ - CP="CAO PSA OUR"
47
+ Server:
48
+ - cloudflare-nginx
49
+ Cf-Ray:
50
+ - 1668f3c16e000d79-SJC
51
+ body:
52
+ encoding: US-ASCII
53
+ string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<promotions>\n<promotion
54
+ name=\"Untitled Promotion\" id=\"5515748\" mimio=\"4e9245\" updated_at=\"2014-09-07
55
+ 15:54:55 -0500\" hidden=\"false\" thumbnail=\"https://snaps.madmimi.com/v2/thumbs.php?size=b&amp;wait=120&amp;url=https%3A%2F%2Fmadmimi.com%2Fp%2F4e9245\">\n</promotion>\n<promotion
56
+ name=\"API test\" id=\"5510034\" mimio=\"293145\" updated_at=\"2014-09-05
57
+ 14:20:42 -0500\" hidden=\"false\" thumbnail=\"https://snaps.madmimi.com/v2/thumbs.php?size=b&amp;wait=120&amp;url=https%3A%2F%2Fmadmimi.com%2Fp%2F293145\">\n
58
+ \ <mailing id=\"122026332\" subject=\"API test\" count=\"1\">\n <started_send>2014-09-05
59
+ 14:26:32 -0500</started_send>\n <finished_send>2014-09-05 14:26:34 -0500</finished_send>\n
60
+ \ </mailing>\n</promotion>\n</promotions>\n"
61
+ http_version:
62
+ recorded_at: Mon, 08 Sep 2014 06:05:04 GMT
63
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,56 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.madmimi.com/promotions/save
6
+ body:
7
+ encoding: US-ASCII
8
+ string: username=test%40example.com&api_key=TEST_API_KEY&promotion_name=Test%20promotion&raw_html=%3Chtml%3E%3Cbody%3ETest%20%5B%5Btracking_beacon%5D%5D%5B%5Bopt_out%5D%5D%3C%2Fbody%3E%3C%2Fhtml%3E&raw_plain_text=Test%20%5B%5Bopt_out%5D%5D
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Date:
16
+ - Mon, 08 Sep 2014 06:05:07 GMT
17
+ Content-Type:
18
+ - text/html; charset=utf-8
19
+ Transfer-Encoding:
20
+ - chunked
21
+ Connection:
22
+ - keep-alive
23
+ Set-Cookie:
24
+ - __cfduid=d4ab53cbf37bbf67e136669c025c720811410156307252; expires=Mon, 23-Dec-2019
25
+ 23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
26
+ - _mad_mimi=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTQwZTRjMDZjN2VlOTI3ZTAxYTc3NWI1MDdkOTVjM2U3BjsAVEkiCmNydW1iBjsARkkiEC9wcm9tb3Rpb25zBjsAVA%3D%3D--fa87de31e66220c9da754779cba275a376019183;
27
+ domain=.madmimi.com; path=/; HttpOnly
28
+ - chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
29
+ GMT
30
+ - non_eu=true; path=/
31
+ X-Ua-Compatible:
32
+ - IE=Edge,chrome=1
33
+ Etag:
34
+ - W/"b9c77cc59179564f23d1f14c3857b80c"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - d0815c05268e107e2f592287667db950
39
+ X-Rack-Cache:
40
+ - invalidate, pass
41
+ Status:
42
+ - 200 OK
43
+ P3p:
44
+ - CP="CAO PSA OUR"
45
+ Vary:
46
+ - Accept-Encoding
47
+ Server:
48
+ - cloudflare-nginx
49
+ Cf-Ray:
50
+ - 1668f3d85e2107d9-LAX
51
+ body:
52
+ encoding: US-ASCII
53
+ string: Saved Test promotion (5516645)
54
+ http_version:
55
+ recorded_at: Mon, 08 Sep 2014 06:05:07 GMT
56
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,56 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.madmimi.com/mailer/to_all
6
+ body:
7
+ encoding: US-ASCII
8
+ string: username=test%40example.com&api_key=TEST_API_KEY&promotion_name=Unknown%20Promotion&from=maxim%2B1%40madmimi.com&subject=Test&to_all=true&raw_html=%3Chtml%3E%3Cbody%3ETest%20%5B%5Btracking_beacon%5D%5D%20%5B%5Bopt_out%5D%5D%3C%2Fbody%3E%3C%2Fhtml%3E
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Server:
16
+ - cloudflare-nginx
17
+ Date:
18
+ - Mon, 08 Sep 2014 08:18:31 GMT
19
+ Content-Type:
20
+ - text/html; charset=utf-8
21
+ Transfer-Encoding:
22
+ - chunked
23
+ Connection:
24
+ - keep-alive
25
+ Set-Cookie:
26
+ - __cfduid=d219e254aedefb10b14249abb9dfba9281410164310401; expires=Mon, 23-Dec-2019
27
+ 23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
28
+ - chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
29
+ GMT
30
+ - non_eu=true; path=/
31
+ Strict-Transport-Security:
32
+ - max-age=31536000
33
+ X-Ua-Compatible:
34
+ - IE=Edge,chrome=1
35
+ Etag:
36
+ - W/"304bc85160d1b920a069da6843b08616"
37
+ Cache-Control:
38
+ - max-age=0, private, must-revalidate
39
+ X-Request-Id:
40
+ - 0351002d1bdef6674e3e60b61d9ca392
41
+ X-Rack-Cache:
42
+ - invalidate, pass
43
+ Status:
44
+ - 200 OK
45
+ P3p:
46
+ - CP="CAO PSA OUR"
47
+ Vary:
48
+ - Accept-Encoding
49
+ Cf-Ray:
50
+ - 1669b73b62d9088d-FRA
51
+ body:
52
+ encoding: US-ASCII
53
+ string: '122048603'
54
+ http_version:
55
+ recorded_at: Mon, 08 Sep 2014 08:18:31 GMT
56
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,53 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.madmimi.com/mailer
6
+ body:
7
+ encoding: US-ASCII
8
+ string: username=test%40example.com&api_key=TEST_API_KEY&promotion_name=Transactional%20Promotion&from=maxim%2B1%40madmimi.com&subject=Test&recipient=Test%20Example%20%3Ctest%40example.com%3E&raw_html=%3Chtml%3E%3Cbody%3ETest%20%5B%5Btracking_beacon%5D%5D%20%5B%5Bopt_out%5D%5D%3C%2Fbody%3E%3C%2Fhtml%3E
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Server:
16
+ - cloudflare-nginx
17
+ Date:
18
+ - Mon, 08 Sep 2014 08:17:15 GMT
19
+ Content-Type:
20
+ - text/html
21
+ Transfer-Encoding:
22
+ - chunked
23
+ Connection:
24
+ - keep-alive
25
+ Set-Cookie:
26
+ - __cfduid=d9e3c957d04f08530edf2dfba9027e38d1410164234738; expires=Mon, 23-Dec-2019
27
+ 23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
28
+ Strict-Transport-Security:
29
+ - max-age=31536000
30
+ X-Ua-Compatible:
31
+ - IE=Edge,chrome=1
32
+ Etag:
33
+ - W/"746582183943e037ae92c05c15086a52"
34
+ Cache-Control:
35
+ - max-age=0, private, must-revalidate
36
+ X-Request-Id:
37
+ - 420b639eb141f4c840ebe7d4aec3746f
38
+ X-Rack-Cache:
39
+ - invalidate, pass
40
+ Status:
41
+ - 200 OK
42
+ P3p:
43
+ - CP="CAO PSA OUR"
44
+ Vary:
45
+ - Accept-Encoding
46
+ Cf-Ray:
47
+ - 1669b5628cb7088d-FRA
48
+ body:
49
+ encoding: US-ASCII
50
+ string: '10199230844895592240'
51
+ http_version:
52
+ recorded_at: Mon, 08 Sep 2014 08:17:15 GMT
53
+ recorded_with: VCR 2.9.2