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,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.madmimi.com/audience_members
6
+ body:
7
+ encoding: US-ASCII
8
+ string: username=test%40example.com&api_key=TEST_API_KEY&csv_file=email%2Cfirstname%2Ccustom_value_1%2Ccustom_value_2%0Aadd_users1%40example.com%2CAddUsers1%2Cupdated1%2C%0Aadd_users1%40example.com%2CAddUsers2%2C%2Cupdated2%0A
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Date:
16
+ - Sun, 07 Sep 2014 17:06:31 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=d71bd5cbc9b386a4bcf1eb4748dc5aa311410109590593; 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/"4522a6eb191bc25eeeffceb5fb98f567"
33
+ Cache-Control:
34
+ - max-age=0, private, must-revalidate
35
+ X-Request-Id:
36
+ - d69676182a8655092ed821dc1e7ea6d1
37
+ X-Rack-Cache:
38
+ - invalidate, pass
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
+ - 16647f4d35c80479-FRA
49
+ body:
50
+ encoding: US-ASCII
51
+ string: '140369448'
52
+ http_version:
53
+ recorded_at: Sun, 07 Sep 2014 17:06:30 GMT
54
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,305 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.madmimi.com/audience_members.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 17:06:30 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=df906fb686b23dc4374c29929f610927d1410109590081; 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/"a965ff889fdd1300885ffa02b66a4afd"
33
+ Cache-Control:
34
+ - max-age=0, private, must-revalidate
35
+ X-Request-Id:
36
+ - 6ef53a69618daf0ec145f1d080ef1940
37
+ X-Rack-Cache:
38
+ - miss
39
+ Status:
40
+ - 200 OK
41
+ Vary:
42
+ - Accept-Encoding
43
+ P3p:
44
+ - CP="CAO PSA OUR"
45
+ Server:
46
+ - cloudflare-nginx
47
+ Cf-Ray:
48
+ - 16647f4a0db0088d-FRA
49
+ body:
50
+ encoding: US-ASCII
51
+ string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<audience count=\"21\"
52
+ total_pages=\"1\" per_page=\"30\" page=\"1\">\n <member suppressed=\"false\">\n
53
+ \ <first_name></first_name>\n <last_name></last_name>\n <email>add_to_list@example.com</email>\n
54
+ \ <created_at>2014-09-05 21:12:22 +0300</created_at>\n <city></city>\n
55
+ \ <phone></phone>\n <company></company>\n <title></title>\n <address></address>\n
56
+ \ <state></state>\n <zip></zip>\n <country></country>\n <confirmed/>\n
57
+ \ <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n <lists>\n
58
+ \ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>AddUser</first_name>\n
59
+ \ <last_name/>\n <email>add_user@example.com</email>\n <created_at>2014-09-07
60
+ 19:41:31 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
61
+ \ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
62
+ \ <custom_field_1/>\n <custom_value_1>updated</custom_value_1>\n <custom_value_2/>\n
63
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
64
+ \ <first_name>test2</first_name>\n <last_name>csv2</last_name>\n <email>csv_test2@example.com</email>\n
65
+ \ <created_at>2014-09-07 19:32:52 +0300</created_at>\n <city/>\n <phone/>\n
66
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
67
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
68
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
69
+ \ <first_name>test</first_name>\n <last_name>csv</last_name>\n <email>csv_test@example.com</email>\n
70
+ \ <created_at>2014-09-07 19:32:52 +0300</created_at>\n <city/>\n <phone/>\n
71
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
72
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
73
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
74
+ \ <first_name/>\n <last_name/>\n <email>maksim.gladkov@gmail.com</email>\n
75
+ \ <created_at>2014-09-05 22:25:20 +0300</created_at>\n <city/>\n <phone/>\n
76
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
77
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
78
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
79
+ \ <first_name/>\n <last_name/>\n <email>multi1@example.com</email>\n
80
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
81
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
82
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
83
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
84
+ \ <first_name/>\n <last_name/>\n <email>multi1_1@example.com</email>\n
85
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
86
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
87
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
88
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
89
+ \ <first_name>Multi</first_name>\n <last_name/>\n <email>multi1_2@example.com</email>\n
90
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
91
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
92
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
93
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
94
+ \ <first_name/>\n <last_name>Third</last_name>\n <email>multi1_3@example.com</email>\n
95
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
96
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
97
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
98
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
99
+ \ <first_name/>\n <last_name/>\n <email>multi1_4@example.com</email>\n
100
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
101
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
102
+ \ <confirmed/>\n <custom_field_1>Custom Value</custom_field_1>\n <custom_value_1/>\n
103
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
104
+ \ <first_name>Multi</first_name>\n <last_name/>\n <email>multi2@example.com</email>\n
105
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
106
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
107
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
108
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
109
+ \ <first_name/>\n <last_name>Third</last_name>\n <email>multi3@example.com</email>\n
110
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
111
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
112
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
113
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
114
+ \ <first_name/>\n <last_name/>\n <email>multi4@example.com</email>\n
115
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
116
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
117
+ \ <confirmed/>\n <custom_field_1>Custom Value</custom_field_1>\n <custom_value_1/>\n
118
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
119
+ \ <first_name/>\n <last_name/>\n <email>new_test1@example.com</email>\n
120
+ \ <created_at>2014-09-04 21:32:31 +0300</created_at>\n <city/>\n <phone/>\n
121
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
122
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
123
+ \ <lists>\n <list membership_created_at=\"2014-09-04 18:32:31 UTC\">list
124
+ 1</list>\n <list membership_created_at=\"2014-09-04 18:32:45 UTC\">list
125
+ 2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n <first_name/>\n
126
+ \ <last_name/>\n <email>new_test2@example.com</email>\n <created_at>2014-09-05
127
+ 21:11:24 +0300</created_at>\n <city/>\n <phone/>\n <company>Dummy
128
+ Company</company>\n <title/>\n <address/>\n <state/>\n <zip/>\n
129
+ \ <country/>\n <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n
130
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
131
+ \ <first_name>New</first_name>\n <last_name>Test</last_name>\n <email>new_test@example.com</email>\n
132
+ \ <created_at>2014-09-05 21:10:19 +0300</created_at>\n <city/>\n <phone/>\n
133
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
134
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
135
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
136
+ \ <first_name>New</first_name>\n <last_name/>\n <email>new_user1@example.com</email>\n
137
+ \ <created_at>2014-09-05 22:17:39 +0300</created_at>\n <city/>\n <phone/>\n
138
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
139
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
140
+ \ <lists>\n <list membership_created_at=\"2014-09-05 19:17:39 UTC\">list
141
+ 2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>Single</first_name>\n
142
+ \ <last_name>One</last_name>\n <email>single1@example.com</email>\n <created_at>2014-09-05
143
+ 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
144
+ \ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
145
+ \ <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n <lists>\n
146
+ \ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>Single</first_name>\n
147
+ \ <last_name>One</last_name>\n <email>single1_1@example.com</email>\n
148
+ \ <created_at>2014-09-05 11:55:38 +0300</created_at>\n <city/>\n <phone/>\n
149
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
150
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
151
+ \ <lists>\n </lists>\n </member>\n</audience>\n"
152
+ http_version:
153
+ recorded_at: Sun, 07 Sep 2014 17:06:29 GMT
154
+ - request:
155
+ method: get
156
+ uri: http://api.madmimi.com/audience_members.xml
157
+ body:
158
+ encoding: US-ASCII
159
+ string: username=test%40example.com&api_key=TEST_API_KEY
160
+ headers: {}
161
+ response:
162
+ status:
163
+ code: 200
164
+ message: OK
165
+ headers:
166
+ Date:
167
+ - Sun, 07 Sep 2014 17:07:51 GMT
168
+ Content-Type:
169
+ - application/xml; charset=utf-8
170
+ Transfer-Encoding:
171
+ - chunked
172
+ Connection:
173
+ - keep-alive
174
+ Set-Cookie:
175
+ - __cfduid=d651c19661b7ab5f5492322f9d23bb9cc1410109671390; expires=Mon, 23-Dec-2019
176
+ 23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
177
+ - chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
178
+ GMT
179
+ - non_eu=true; path=/
180
+ X-Ua-Compatible:
181
+ - IE=Edge,chrome=1
182
+ Etag:
183
+ - W/"c01b1555eec53cb700490e1cdb6a98f4"
184
+ Cache-Control:
185
+ - max-age=0, private, must-revalidate
186
+ X-Request-Id:
187
+ - b4a9a7888ec963cc9e7efaf8fd703daa
188
+ X-Rack-Cache:
189
+ - miss
190
+ Status:
191
+ - 200 OK
192
+ Vary:
193
+ - Accept-Encoding
194
+ P3p:
195
+ - CP="CAO PSA OUR"
196
+ Server:
197
+ - cloudflare-nginx
198
+ Cf-Ray:
199
+ - 166481463e5e088d-FRA
200
+ body:
201
+ encoding: US-ASCII
202
+ string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<audience count=\"21\"
203
+ total_pages=\"1\" per_page=\"30\" page=\"1\">\n <member suppressed=\"false\">\n
204
+ \ <first_name></first_name>\n <last_name></last_name>\n <email>add_to_list@example.com</email>\n
205
+ \ <created_at>2014-09-05 21:12:22 +0300</created_at>\n <city></city>\n
206
+ \ <phone></phone>\n <company></company>\n <title></title>\n <address></address>\n
207
+ \ <state></state>\n <zip></zip>\n <country></country>\n <confirmed/>\n
208
+ \ <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n <lists>\n
209
+ \ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>AddUser</first_name>\n
210
+ \ <last_name/>\n <email>add_user@example.com</email>\n <created_at>2014-09-07
211
+ 19:41:31 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
212
+ \ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
213
+ \ <custom_field_1/>\n <custom_value_1>updated</custom_value_1>\n <custom_value_2/>\n
214
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
215
+ \ <first_name>test2</first_name>\n <last_name>csv2</last_name>\n <email>csv_test2@example.com</email>\n
216
+ \ <created_at>2014-09-07 19:32:52 +0300</created_at>\n <city/>\n <phone/>\n
217
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
218
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
219
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
220
+ \ <first_name>test</first_name>\n <last_name>csv</last_name>\n <email>csv_test@example.com</email>\n
221
+ \ <created_at>2014-09-07 19:32:52 +0300</created_at>\n <city/>\n <phone/>\n
222
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
223
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
224
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
225
+ \ <first_name/>\n <last_name/>\n <email>maksim.gladkov@gmail.com</email>\n
226
+ \ <created_at>2014-09-05 22:25:20 +0300</created_at>\n <city/>\n <phone/>\n
227
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
228
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
229
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
230
+ \ <first_name/>\n <last_name/>\n <email>multi1@example.com</email>\n
231
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
232
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
233
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
234
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
235
+ \ <first_name/>\n <last_name/>\n <email>multi1_1@example.com</email>\n
236
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
237
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
238
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
239
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
240
+ \ <first_name>Multi</first_name>\n <last_name/>\n <email>multi1_2@example.com</email>\n
241
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
242
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
243
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
244
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
245
+ \ <first_name/>\n <last_name>Third</last_name>\n <email>multi1_3@example.com</email>\n
246
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
247
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
248
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
249
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
250
+ \ <first_name/>\n <last_name/>\n <email>multi1_4@example.com</email>\n
251
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
252
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
253
+ \ <confirmed/>\n <custom_field_1>Custom Value</custom_field_1>\n <custom_value_1/>\n
254
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
255
+ \ <first_name>Multi</first_name>\n <last_name/>\n <email>multi2@example.com</email>\n
256
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
257
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
258
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
259
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
260
+ \ <first_name/>\n <last_name>Third</last_name>\n <email>multi3@example.com</email>\n
261
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
262
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
263
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
264
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
265
+ \ <first_name/>\n <last_name/>\n <email>multi4@example.com</email>\n
266
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
267
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
268
+ \ <confirmed/>\n <custom_field_1>Custom Value</custom_field_1>\n <custom_value_1/>\n
269
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
270
+ \ <first_name/>\n <last_name/>\n <email>new_test1@example.com</email>\n
271
+ \ <created_at>2014-09-04 21:32:31 +0300</created_at>\n <city/>\n <phone/>\n
272
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
273
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
274
+ \ <lists>\n <list membership_created_at=\"2014-09-04 18:32:31 UTC\">list
275
+ 1</list>\n <list membership_created_at=\"2014-09-04 18:32:45 UTC\">list
276
+ 2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n <first_name/>\n
277
+ \ <last_name/>\n <email>new_test2@example.com</email>\n <created_at>2014-09-05
278
+ 21:11:24 +0300</created_at>\n <city/>\n <phone/>\n <company>Dummy
279
+ Company</company>\n <title/>\n <address/>\n <state/>\n <zip/>\n
280
+ \ <country/>\n <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n
281
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
282
+ \ <first_name>New</first_name>\n <last_name>Test</last_name>\n <email>new_test@example.com</email>\n
283
+ \ <created_at>2014-09-05 21:10:19 +0300</created_at>\n <city/>\n <phone/>\n
284
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
285
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
286
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
287
+ \ <first_name>New</first_name>\n <last_name/>\n <email>new_user1@example.com</email>\n
288
+ \ <created_at>2014-09-05 22:17:39 +0300</created_at>\n <city/>\n <phone/>\n
289
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
290
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
291
+ \ <lists>\n <list membership_created_at=\"2014-09-05 19:17:39 UTC\">list
292
+ 2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>Single</first_name>\n
293
+ \ <last_name>One</last_name>\n <email>single1@example.com</email>\n <created_at>2014-09-05
294
+ 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
295
+ \ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
296
+ \ <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n <lists>\n
297
+ \ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>Single</first_name>\n
298
+ \ <last_name>One</last_name>\n <email>single1_1@example.com</email>\n
299
+ \ <created_at>2014-09-05 11:55:38 +0300</created_at>\n <city/>\n <phone/>\n
300
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
301
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
302
+ \ <lists>\n </lists>\n </member>\n</audience>\n"
303
+ http_version:
304
+ recorded_at: Sun, 07 Sep 2014 17:07:51 GMT
305
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,327 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.madmimi.com/audience_members.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 17:06:32 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=ddb6b82250785e4b9c818a3d0c2dff89c1410109592203; 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/"c01b1555eec53cb700490e1cdb6a98f4"
33
+ Cache-Control:
34
+ - max-age=0, private, must-revalidate
35
+ X-Request-Id:
36
+ - e9444f0f14719b1f55c2b62e64baca80
37
+ X-Rack-Cache:
38
+ - miss
39
+ Status:
40
+ - 200 OK
41
+ Vary:
42
+ - Accept-Encoding
43
+ P3p:
44
+ - CP="CAO PSA OUR"
45
+ Server:
46
+ - cloudflare-nginx
47
+ Cf-Ray:
48
+ - 16647f5743d00479-FRA
49
+ body:
50
+ encoding: US-ASCII
51
+ string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<audience count=\"21\"
52
+ total_pages=\"1\" per_page=\"30\" page=\"1\">\n <member suppressed=\"false\">\n
53
+ \ <first_name></first_name>\n <last_name></last_name>\n <email>add_to_list@example.com</email>\n
54
+ \ <created_at>2014-09-05 21:12:22 +0300</created_at>\n <city></city>\n
55
+ \ <phone></phone>\n <company></company>\n <title></title>\n <address></address>\n
56
+ \ <state></state>\n <zip></zip>\n <country></country>\n <confirmed/>\n
57
+ \ <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n <lists>\n
58
+ \ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>AddUser</first_name>\n
59
+ \ <last_name/>\n <email>add_user@example.com</email>\n <created_at>2014-09-07
60
+ 19:41:31 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
61
+ \ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
62
+ \ <custom_field_1/>\n <custom_value_1>updated</custom_value_1>\n <custom_value_2/>\n
63
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
64
+ \ <first_name>AddUsers1</first_name>\n <last_name/>\n <email>add_users1@example.com</email>\n
65
+ \ <created_at>2014-09-07 20:06:30 +0300</created_at>\n <city/>\n <phone/>\n
66
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
67
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1>updated1</custom_value_1>\n
68
+ \ <custom_value_2>updated2</custom_value_2>\n <lists>\n </lists>\n
69
+ \ </member>\n <member suppressed=\"false\">\n <first_name>AddUsers2</first_name>\n
70
+ \ <last_name/>\n <email>add_users2@example.com</email>\n <created_at>2014-09-07
71
+ 20:06:30 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
72
+ \ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
73
+ \ <custom_field_1/>\n <custom_value_1/>\n <custom_value_2>updated2</custom_value_2>\n
74
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
75
+ \ <first_name>test2</first_name>\n <last_name>csv2</last_name>\n <email>csv_test2@example.com</email>\n
76
+ \ <created_at>2014-09-07 19:32:52 +0300</created_at>\n <city/>\n <phone/>\n
77
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
78
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
79
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
80
+ \ <first_name>test</first_name>\n <last_name>csv</last_name>\n <email>csv_test@example.com</email>\n
81
+ \ <created_at>2014-09-07 19:32:52 +0300</created_at>\n <city/>\n <phone/>\n
82
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
83
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
84
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
85
+ \ <first_name/>\n <last_name/>\n <email>maksim.gladkov@gmail.com</email>\n
86
+ \ <created_at>2014-09-05 22:25:20 +0300</created_at>\n <city/>\n <phone/>\n
87
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
88
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
89
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
90
+ \ <first_name/>\n <last_name/>\n <email>multi1@example.com</email>\n
91
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
92
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
93
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
94
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
95
+ \ <first_name/>\n <last_name/>\n <email>multi1_1@example.com</email>\n
96
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
97
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
98
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
99
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
100
+ \ <first_name>Multi</first_name>\n <last_name/>\n <email>multi1_2@example.com</email>\n
101
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
102
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
103
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
104
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
105
+ \ <first_name/>\n <last_name>Third</last_name>\n <email>multi1_3@example.com</email>\n
106
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
107
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
108
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
109
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
110
+ \ <first_name/>\n <last_name/>\n <email>multi1_4@example.com</email>\n
111
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
112
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
113
+ \ <confirmed/>\n <custom_field_1>Custom Value</custom_field_1>\n <custom_value_1/>\n
114
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
115
+ \ <first_name>Multi</first_name>\n <last_name/>\n <email>multi2@example.com</email>\n
116
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
117
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
118
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
119
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
120
+ \ <first_name/>\n <last_name>Third</last_name>\n <email>multi3@example.com</email>\n
121
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
122
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
123
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
124
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
125
+ \ <first_name/>\n <last_name/>\n <email>multi4@example.com</email>\n
126
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
127
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
128
+ \ <confirmed/>\n <custom_field_1>Custom Value</custom_field_1>\n <custom_value_1/>\n
129
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
130
+ \ <first_name/>\n <last_name/>\n <email>new_test1@example.com</email>\n
131
+ \ <created_at>2014-09-04 21:32:31 +0300</created_at>\n <city/>\n <phone/>\n
132
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
133
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
134
+ \ <lists>\n <list membership_created_at=\"2014-09-04 18:32:31 UTC\">list
135
+ 1</list>\n <list membership_created_at=\"2014-09-04 18:32:45 UTC\">list
136
+ 2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n <first_name/>\n
137
+ \ <last_name/>\n <email>new_test2@example.com</email>\n <created_at>2014-09-05
138
+ 21:11:24 +0300</created_at>\n <city/>\n <phone/>\n <company>Dummy
139
+ Company</company>\n <title/>\n <address/>\n <state/>\n <zip/>\n
140
+ \ <country/>\n <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n
141
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
142
+ \ <first_name>New</first_name>\n <last_name>Test</last_name>\n <email>new_test@example.com</email>\n
143
+ \ <created_at>2014-09-05 21:10:19 +0300</created_at>\n <city/>\n <phone/>\n
144
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
145
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
146
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
147
+ \ <first_name>New</first_name>\n <last_name/>\n <email>new_user1@example.com</email>\n
148
+ \ <created_at>2014-09-05 22:17:39 +0300</created_at>\n <city/>\n <phone/>\n
149
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
150
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
151
+ \ <lists>\n <list membership_created_at=\"2014-09-05 19:17:39 UTC\">list
152
+ 2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>Single</first_name>\n
153
+ \ <last_name>One</last_name>\n <email>single1@example.com</email>\n <created_at>2014-09-05
154
+ 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
155
+ \ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
156
+ \ <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n <lists>\n
157
+ \ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>Single</first_name>\n
158
+ \ <last_name>One</last_name>\n <email>single1_1@example.com</email>\n
159
+ \ <created_at>2014-09-05 11:55:38 +0300</created_at>\n <city/>\n <phone/>\n
160
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
161
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
162
+ \ <lists>\n </lists>\n </member>\n</audience>\n"
163
+ http_version:
164
+ recorded_at: Sun, 07 Sep 2014 17:06:31 GMT
165
+ - request:
166
+ method: get
167
+ uri: http://api.madmimi.com/audience_members.xml
168
+ body:
169
+ encoding: US-ASCII
170
+ string: username=test%40example.com&api_key=TEST_API_KEY
171
+ headers: {}
172
+ response:
173
+ status:
174
+ code: 200
175
+ message: OK
176
+ headers:
177
+ Date:
178
+ - Sun, 07 Sep 2014 17:12:26 GMT
179
+ Content-Type:
180
+ - application/xml; charset=utf-8
181
+ Transfer-Encoding:
182
+ - chunked
183
+ Connection:
184
+ - keep-alive
185
+ Set-Cookie:
186
+ - __cfduid=d115f4243bc6c9c2c28ce7f5e545a1ca91410109945634; expires=Mon, 23-Dec-2019
187
+ 23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
188
+ - chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
189
+ GMT
190
+ - non_eu=true; path=/
191
+ X-Ua-Compatible:
192
+ - IE=Edge,chrome=1
193
+ Etag:
194
+ - W/"c01b1555eec53cb700490e1cdb6a98f4"
195
+ Cache-Control:
196
+ - max-age=0, private, must-revalidate
197
+ X-Request-Id:
198
+ - 3a3a8e7a43912e590981f48de7b5e604
199
+ X-Rack-Cache:
200
+ - miss
201
+ Status:
202
+ - 200 OK
203
+ Vary:
204
+ - Accept-Encoding
205
+ P3p:
206
+ - CP="CAO PSA OUR"
207
+ Server:
208
+ - cloudflare-nginx
209
+ Cf-Ray:
210
+ - 166487f83e740479-FRA
211
+ body:
212
+ encoding: US-ASCII
213
+ string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<audience count=\"21\"
214
+ total_pages=\"1\" per_page=\"30\" page=\"1\">\n <member suppressed=\"false\">\n
215
+ \ <first_name></first_name>\n <last_name></last_name>\n <email>add_to_list@example.com</email>\n
216
+ \ <created_at>2014-09-05 21:12:22 +0300</created_at>\n <city></city>\n
217
+ \ <phone></phone>\n <company></company>\n <title></title>\n <address></address>\n
218
+ \ <state></state>\n <zip></zip>\n <country></country>\n <confirmed/>\n
219
+ \ <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n <lists>\n
220
+ \ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>AddUser</first_name>\n
221
+ \ <last_name/>\n <email>add_user@example.com</email>\n <created_at>2014-09-07
222
+ 19:41:31 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
223
+ \ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
224
+ \ <custom_field_1/>\n <custom_value_1>updated</custom_value_1>\n <custom_value_2/>\n
225
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
226
+ \ <first_name>AddUsers2</first_name>\n <last_name/>\n <email>updated1@example.com</email>\n
227
+ \ <created_at>2014-09-07 20:06:30 +0300</created_at>\n <city/>\n <phone/>\n
228
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
229
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1>updated1</custom_value_1>\n
230
+ \ <custom_value_2>updated2</custom_value_2>\n <lists>\n </lists>\n
231
+ \ </member>\n <member suppressed=\"false\">\n <first_name>AddUsers2</first_name>\n
232
+ \ <last_name/>\n <email>add_users2@example.com</email>\n <created_at>2014-09-07
233
+ 20:06:30 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
234
+ \ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
235
+ \ <custom_field_1/>\n <custom_value_1/>\n <custom_value_2>updated2</custom_value_2>\n
236
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
237
+ \ <first_name>test2</first_name>\n <last_name>csv2</last_name>\n <email>csv_test2@example.com</email>\n
238
+ \ <created_at>2014-09-07 19:32:52 +0300</created_at>\n <city/>\n <phone/>\n
239
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
240
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
241
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
242
+ \ <first_name>test</first_name>\n <last_name>csv</last_name>\n <email>csv_test@example.com</email>\n
243
+ \ <created_at>2014-09-07 19:32:52 +0300</created_at>\n <city/>\n <phone/>\n
244
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
245
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
246
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
247
+ \ <first_name/>\n <last_name/>\n <email>maksim.gladkov@gmail.com</email>\n
248
+ \ <created_at>2014-09-05 22:25:20 +0300</created_at>\n <city/>\n <phone/>\n
249
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
250
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
251
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
252
+ \ <first_name/>\n <last_name/>\n <email>multi1@example.com</email>\n
253
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
254
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
255
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
256
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
257
+ \ <first_name/>\n <last_name/>\n <email>multi1_1@example.com</email>\n
258
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
259
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
260
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
261
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
262
+ \ <first_name>Multi</first_name>\n <last_name/>\n <email>multi1_2@example.com</email>\n
263
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
264
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
265
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
266
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
267
+ \ <first_name/>\n <last_name>Third</last_name>\n <email>multi1_3@example.com</email>\n
268
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
269
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
270
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
271
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
272
+ \ <first_name/>\n <last_name/>\n <email>multi1_4@example.com</email>\n
273
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
274
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
275
+ \ <confirmed/>\n <custom_field_1>Custom Value</custom_field_1>\n <custom_value_1/>\n
276
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
277
+ \ <first_name>Multi</first_name>\n <last_name/>\n <email>multi2@example.com</email>\n
278
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
279
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
280
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
281
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
282
+ \ <first_name/>\n <last_name>Third</last_name>\n <email>multi3@example.com</email>\n
283
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
284
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
285
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
286
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
287
+ \ <first_name/>\n <last_name/>\n <email>multi4@example.com</email>\n
288
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
289
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
290
+ \ <confirmed/>\n <custom_field_1>Custom Value</custom_field_1>\n <custom_value_1/>\n
291
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
292
+ \ <first_name/>\n <last_name/>\n <email>new_test1@example.com</email>\n
293
+ \ <created_at>2014-09-04 21:32:31 +0300</created_at>\n <city/>\n <phone/>\n
294
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
295
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
296
+ \ <lists>\n <list membership_created_at=\"2014-09-04 18:32:31 UTC\">list
297
+ 1</list>\n <list membership_created_at=\"2014-09-04 18:32:45 UTC\">list
298
+ 2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n <first_name/>\n
299
+ \ <last_name/>\n <email>new_test2@example.com</email>\n <created_at>2014-09-05
300
+ 21:11:24 +0300</created_at>\n <city/>\n <phone/>\n <company>Dummy
301
+ Company</company>\n <title/>\n <address/>\n <state/>\n <zip/>\n
302
+ \ <country/>\n <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n
303
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
304
+ \ <first_name>New</first_name>\n <last_name>Test</last_name>\n <email>new_test@example.com</email>\n
305
+ \ <created_at>2014-09-05 21:10:19 +0300</created_at>\n <city/>\n <phone/>\n
306
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
307
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
308
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
309
+ \ <first_name>New</first_name>\n <last_name/>\n <email>new_user1@example.com</email>\n
310
+ \ <created_at>2014-09-05 22:17:39 +0300</created_at>\n <city/>\n <phone/>\n
311
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
312
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
313
+ \ <lists>\n <list membership_created_at=\"2014-09-05 19:17:39 UTC\">list
314
+ 2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>Single</first_name>\n
315
+ \ <last_name>One</last_name>\n <email>single1@example.com</email>\n <created_at>2014-09-05
316
+ 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
317
+ \ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
318
+ \ <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n <lists>\n
319
+ \ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>Single</first_name>\n
320
+ \ <last_name>One</last_name>\n <email>single1_1@example.com</email>\n
321
+ \ <created_at>2014-09-05 11:55:38 +0300</created_at>\n <city/>\n <phone/>\n
322
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
323
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
324
+ \ <lists>\n </lists>\n </member>\n</audience>\n"
325
+ http_version:
326
+ recorded_at: Sun, 07 Sep 2014 17:12:25 GMT
327
+ recorded_with: VCR 2.9.2