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,108 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.madmimi.com/audience_members/new_user1@example.com/lists.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
+ - Sun, 07 Sep 2014 15:36:59 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=d57caf828882b6ac0a9273647dccb99311410104219147; expires=Mon, 23-Dec-2019
25
+ 23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
26
+ - chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
27
+ GMT
28
+ - non_eu=true; path=/
29
+ X-Ua-Compatible:
30
+ - IE=Edge,chrome=1
31
+ Etag:
32
+ - W/"688acb6ebf9747c5ae9c9f85b1b419bc"
33
+ Cache-Control:
34
+ - max-age=0, private, must-revalidate
35
+ X-Request-Id:
36
+ - b1227de58ab1c737a8e7b886da0a9e6e
37
+ X-Rack-Cache:
38
+ - miss
39
+ Status:
40
+ - 200 OK
41
+ P3p:
42
+ - CP="CAO PSA OUR"
43
+ Vary:
44
+ - Accept-Encoding
45
+ Server:
46
+ - cloudflare-nginx
47
+ Cf-Ray:
48
+ - 1663fc29a281088d-FRA
49
+ body:
50
+ encoding: US-ASCII
51
+ string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<lists>\n <list id=\"1165154\"
52
+ name=\"list 2\" subscriber_count=\"2\" display_name=\"\"/>\n</lists>\n"
53
+ http_version:
54
+ recorded_at: Sun, 07 Sep 2014 15:36:59 GMT
55
+ - request:
56
+ method: get
57
+ uri: http://api.madmimi.com/audience_members/new_test1@example.com/lists.xml
58
+ body:
59
+ encoding: US-ASCII
60
+ string: username=test%40example.com&api_key=TEST_API_KEY
61
+ headers: {}
62
+ response:
63
+ status:
64
+ code: 200
65
+ message: OK
66
+ headers:
67
+ Date:
68
+ - Sun, 07 Sep 2014 15:37:38 GMT
69
+ Content-Type:
70
+ - application/xml; charset=utf-8
71
+ Transfer-Encoding:
72
+ - chunked
73
+ Connection:
74
+ - keep-alive
75
+ Set-Cookie:
76
+ - __cfduid=d75f0e9da59c2af2042eb5035d4bea44d1410104258254; expires=Mon, 23-Dec-2019
77
+ 23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
78
+ - chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
79
+ GMT
80
+ - non_eu=true; path=/
81
+ X-Ua-Compatible:
82
+ - IE=Edge,chrome=1
83
+ Etag:
84
+ - W/"8a5022da479bcbb5607ae80bef8ec01d"
85
+ Cache-Control:
86
+ - max-age=0, private, must-revalidate
87
+ X-Request-Id:
88
+ - f6b057d3331f2b0a349f2e31b4b2f592
89
+ X-Rack-Cache:
90
+ - miss
91
+ Status:
92
+ - 200 OK
93
+ P3p:
94
+ - CP="CAO PSA OUR"
95
+ Vary:
96
+ - Accept-Encoding
97
+ Server:
98
+ - cloudflare-nginx
99
+ Cf-Ray:
100
+ - 1663fd1e16560479-FRA
101
+ body:
102
+ encoding: US-ASCII
103
+ string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<lists>\n <list id=\"1163641\"
104
+ name=\"list 1\" subscriber_count=\"1\" display_name=\"\"/>\n <list id=\"1165154\"
105
+ name=\"list 2\" subscriber_count=\"2\" display_name=\"\"/>\n</lists>\n"
106
+ http_version:
107
+ recorded_at: Sun, 07 Sep 2014 15:37:38 GMT
108
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,57 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.madmimi.com/audience_lists/lists.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
+ - Sun, 07 Sep 2014 15:48:44 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=d69eb541aa3da069f53b670c4732f7f7e1410104924066; expires=Mon, 23-Dec-2019
25
+ 23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
26
+ - chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
27
+ GMT
28
+ - non_eu=true; path=/
29
+ X-Ua-Compatible:
30
+ - IE=Edge,chrome=1
31
+ Etag:
32
+ - W/"cdf363134da2f7eae4fc4d2594e4304e"
33
+ Cache-Control:
34
+ - max-age=0, private, must-revalidate
35
+ X-Request-Id:
36
+ - ddfeffead2dcc5342d4b2b530031a15b
37
+ X-Rack-Cache:
38
+ - miss
39
+ Status:
40
+ - 200 OK
41
+ P3p:
42
+ - CP="CAO PSA OUR"
43
+ Vary:
44
+ - Accept-Encoding
45
+ Server:
46
+ - cloudflare-nginx
47
+ Cf-Ray:
48
+ - 16640d5f6e27088d-FRA
49
+ body:
50
+ encoding: US-ASCII
51
+ string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<lists>\n <list id=\"1163641\"
52
+ name=\"list 1\" subscriber_count=\"1\" display_name=\"\"/>\n <list id=\"1165154\"
53
+ name=\"list 2\" subscriber_count=\"2\" display_name=\"\"/>\n <list id=\"1167137\"
54
+ name=\"new list 1\" subscriber_count=\"0\" display_name=\"\"/>\n</lists>\n"
55
+ http_version:
56
+ recorded_at: Sun, 07 Sep 2014 15:48:44 GMT
57
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.madmimi.com/audience_lists.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: username=test%40example.com&api_key=TEST_API_KEY&name=new%20list%201
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Date:
16
+ - Sun, 07 Sep 2014 15:50:07 GMT
17
+ Content-Type:
18
+ - application/json; charset=utf-8
19
+ Transfer-Encoding:
20
+ - chunked
21
+ Connection:
22
+ - keep-alive
23
+ Set-Cookie:
24
+ - __cfduid=d3f83d58acea9ada0fb7b58643a568e5c1410105007059; expires=Mon, 23-Dec-2019
25
+ 23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
26
+ - chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
27
+ GMT
28
+ - non_eu=true; path=/
29
+ X-Ua-Compatible:
30
+ - IE=Edge,chrome=1
31
+ Etag:
32
+ - ! '"0d4ffc9e29be953af32f227d4f79e36a"'
33
+ Cache-Control:
34
+ - max-age=0, private, must-revalidate
35
+ X-Request-Id:
36
+ - 83268e6286e0c2cddff122dc5060ada6
37
+ X-Rack-Cache:
38
+ - invalidate, pass
39
+ Status:
40
+ - 200 OK
41
+ P3p:
42
+ - CP="CAO PSA OUR"
43
+ Server:
44
+ - cloudflare-nginx
45
+ Cf-Ray:
46
+ - 16640f661f8c088d-FRA
47
+ body:
48
+ encoding: US-ASCII
49
+ string: ! '{"success":false,"error":"Name has already been taken"}'
50
+ http_version:
51
+ recorded_at: Sun, 07 Sep 2014 15:50:07 GMT
52
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,56 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.madmimi.com/audience_lists/lists.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
+ - Sun, 07 Sep 2014 15:47:48 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=d2f117e2da02757f22ee247d9a2657c031410104868011; expires=Mon, 23-Dec-2019
25
+ 23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
26
+ - chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
27
+ GMT
28
+ - non_eu=true; path=/
29
+ X-Ua-Compatible:
30
+ - IE=Edge,chrome=1
31
+ Etag:
32
+ - W/"8a5022da479bcbb5607ae80bef8ec01d"
33
+ Cache-Control:
34
+ - max-age=0, private, must-revalidate
35
+ X-Request-Id:
36
+ - d58d0fe17c8fd20f4dde8d09cc299b62
37
+ X-Rack-Cache:
38
+ - miss
39
+ Status:
40
+ - 200 OK
41
+ P3p:
42
+ - CP="CAO PSA OUR"
43
+ Vary:
44
+ - Accept-Encoding
45
+ Server:
46
+ - cloudflare-nginx
47
+ Cf-Ray:
48
+ - 16640c0117da088d-FRA
49
+ body:
50
+ encoding: US-ASCII
51
+ string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<lists>\n <list id=\"1163641\"
52
+ name=\"list 1\" subscriber_count=\"1\" display_name=\"\"/>\n <list id=\"1165154\"
53
+ name=\"list 2\" subscriber_count=\"2\" display_name=\"\"/>\n</lists>\n"
54
+ http_version:
55
+ recorded_at: Sun, 07 Sep 2014 15:47:48 GMT
56
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.madmimi.com/audience_lists.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: username=test%40example.com&api_key=TEST_API_KEY&name=new%20list%201
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Date:
16
+ - Sun, 07 Sep 2014 15:39:02 GMT
17
+ Content-Type:
18
+ - application/json; charset=utf-8
19
+ Transfer-Encoding:
20
+ - chunked
21
+ Connection:
22
+ - keep-alive
23
+ Set-Cookie:
24
+ - __cfduid=d38ffa25d38a5d5e1b54c9ff2427ee26d1410104342652; expires=Mon, 23-Dec-2019
25
+ 23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
26
+ - chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
27
+ GMT
28
+ - non_eu=true; path=/
29
+ X-Ua-Compatible:
30
+ - IE=Edge,chrome=1
31
+ Etag:
32
+ - ! '"6cb78cd6f987ee9d292ec1fce5a37097"'
33
+ Cache-Control:
34
+ - max-age=0, private, must-revalidate
35
+ X-Request-Id:
36
+ - da1b4e831074b1e8f2bdfc93a906035f
37
+ X-Rack-Cache:
38
+ - invalidate, pass
39
+ Status:
40
+ - 200 OK
41
+ P3p:
42
+ - CP="CAO PSA OUR"
43
+ Server:
44
+ - cloudflare-nginx
45
+ Cf-Ray:
46
+ - 1663ff2d9681088d-FRA
47
+ body:
48
+ encoding: US-ASCII
49
+ string: ! '{"success":true,"result":{"id":1167134,"name":"new list 1","size":0}}'
50
+ http_version:
51
+ recorded_at: Sun, 07 Sep 2014 15:39:03 GMT
52
+ 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
+ - Sun, 07 Sep 2014 20:58:40 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=d3bc94ebecff827f33dfac4f79461762c1410123520374; expires=Mon, 23-Dec-2019
25
+ 23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
26
+ - _mad_mimi=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTM4MWMzMGQyNWMyZDc5YWIzYWE1YjIzZWM0OGI1MWJmBjsAVEkiCmNydW1iBjsARkkiEC9wcm9tb3Rpb25zBjsAVA%3D%3D--9ea71f2fe04079e9b5704503444134765538c3b9;
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/"0d5511548b2a8a029e2e9ab9076334e3"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - 8530fcee1cc6b900cf0c5ab96f1c9384
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
+ - 1665d3625fa1088d-FRA
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
+ 16:54:55 -0400\" 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
+ 15:20:42 -0400\" 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
+ 15:26:32 -0400</started_send>\n <finished_send>2014-09-05 15:26:34 -0400</finished_send>\n
60
+ \ </mailing>\n</promotion>\n</promotions>\n"
61
+ http_version:
62
+ recorded_at: Sun, 07 Sep 2014 20:58:40 GMT
63
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,61 @@
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
+ - Sun, 07 Sep 2014 20:52:08 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=d69d9a914a457f6c3d406ac6a4487ca751410123127874; expires=Mon, 23-Dec-2019
25
+ 23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
26
+ - _mad_mimi=BAh7B0kiD3Nlc3Npb25faWQGOgZFVEkiJTM5NjA4M2IwZWQwY2M5NjJlNzI3YzJlZThhMTQwYWE5BjsAVEkiCmNydW1iBjsARkkiEC9wcm9tb3Rpb25zBjsAVA%3D%3D--de51c1a5c0af8aa52974067eeb58b3b3a3f02c6d;
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/"17f98e3219868c084f3467f823881e3d"
35
+ Cache-Control:
36
+ - max-age=0, private, must-revalidate
37
+ X-Request-Id:
38
+ - bfa3ef4273ffd98b403534d353378352
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
+ - 1665c9cd3bf90479-FRA
51
+ body:
52
+ encoding: US-ASCII
53
+ string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<promotions>\n<promotion
54
+ name=\"API test\" id=\"5510034\" mimio=\"293145\" updated_at=\"2014-09-05
55
+ 16:20:42 -0300\" 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
56
+ \ <mailing id=\"122026332\" subject=\"API test\" count=\"1\">\n <started_send>2014-09-05
57
+ 16:26:32 -0300</started_send>\n <finished_send>2014-09-05 16:26:34 -0300</finished_send>\n
58
+ \ </mailing>\n</promotion>\n</promotions>\n"
59
+ http_version:
60
+ recorded_at: Sun, 07 Sep 2014 20:52:08 GMT
61
+ recorded_with: VCR 2.9.2