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%2Cfirst_name%2Cadd_list%0Aadd_users_to_list1%40example.com%2CFirst%2Clist%201%0Aadd_users_to_list2%40example.com%2CSecond%2Clist%201%0A
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Date:
16
+ - Sun, 07 Sep 2014 20:43:43 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=d61a568195926af15ff784719ebb787a91410122623141; 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/"70029c134b72000edd304a6de6ff8b21"
33
+ Cache-Control:
34
+ - max-age=0, private, must-revalidate
35
+ X-Request-Id:
36
+ - 41b114da370ffee8e1c7627a32c92152
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
+ - 1665bd7aa56c0479-FRA
49
+ body:
50
+ encoding: US-ASCII
51
+ string: '140375376'
52
+ http_version:
53
+ recorded_at: Sun, 07 Sep 2014 20:43:43 GMT
54
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,341 @@
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 20:44: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=d38f2fd6968d22ec83518add67fb8efd41410122680461; 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/"6efa81e08317d36e2e43fe2204758355"
33
+ Cache-Control:
34
+ - max-age=0, private, must-revalidate
35
+ X-Request-Id:
36
+ - eb3f54b6dce07be5260f4b67c834abcd
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
+ - 1665bee0e3c8088d-FRA
49
+ body:
50
+ encoding: US-ASCII
51
+ string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<audience count=\"22\"
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/>\n <custom_value_1/>\n <custom_value_2/>\n
58
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
59
+ \ <first_name>AddUser</first_name>\n <last_name/>\n <email>add_user@example.com</email>\n
60
+ \ <created_at>2014-09-07 19:41:31 +0300</created_at>\n <city/>\n <phone/>\n
61
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
62
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1>updated</custom_value_1>\n
63
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
64
+ \ <first_name>AddUsers2</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/>\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/>\n <custom_value_1/>\n <custom_value_2>add_users2</custom_value_2>\n
74
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
75
+ \ <first_name/>\n <last_name/>\n <email>another@example.com</email>\n
76
+ \ <created_at>2014-09-07 22:14:29 +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/>\n <custom_value_1/>\n
79
+ \ <custom_value_2/>\n <lists>\n <list membership_created_at=\"2014-09-07
80
+ 19:14:29 UTC\">list 1</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n
81
+ \ <first_name>test2</first_name>\n <last_name>csv2</last_name>\n <email>csv_test2@example.com</email>\n
82
+ \ <created_at>2014-09-07 19:32:52 +0300</created_at>\n <city/>\n <phone/>\n
83
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
84
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
85
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
86
+ \ <first_name>test</first_name>\n <last_name>csv</last_name>\n <email>csv_test@example.com</email>\n
87
+ \ <created_at>2014-09-07 19:32:52 +0300</created_at>\n <city/>\n <phone/>\n
88
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
89
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
90
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
91
+ \ <first_name/>\n <last_name/>\n <email>maksim.gladkov@gmail.com</email>\n
92
+ \ <created_at>2014-09-05 22:25:20 +0300</created_at>\n <city/>\n <phone/>\n
93
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
94
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
95
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
96
+ \ <first_name/>\n <last_name/>\n <email>multi1@example.com</email>\n
97
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
98
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
99
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
100
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
101
+ \ <first_name/>\n <last_name/>\n <email>multi1_1@example.com</email>\n
102
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
103
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
104
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
105
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
106
+ \ <first_name>Multi</first_name>\n <last_name/>\n <email>multi1_2@example.com</email>\n
107
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
108
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
109
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
110
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
111
+ \ <first_name/>\n <last_name>Third</last_name>\n <email>multi1_3@example.com</email>\n
112
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
113
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
114
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
115
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
116
+ \ <first_name/>\n <last_name/>\n <email>multi1_4@example.com</email>\n
117
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
118
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
119
+ \ <confirmed/>\n <custom_field_1>Custom Value</custom_field_1>\n <custom_value/>\n
120
+ \ <custom_value_1/>\n <custom_value_2/>\n <lists>\n </lists>\n
121
+ \ </member>\n <member suppressed=\"false\">\n <first_name>Multi</first_name>\n
122
+ \ <last_name/>\n <email>multi2@example.com</email>\n <created_at>2014-09-05
123
+ 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
124
+ \ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
125
+ \ <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n <custom_value_2/>\n
126
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
127
+ \ <first_name/>\n <last_name>Third</last_name>\n <email>multi3@example.com</email>\n
128
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
129
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
130
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
131
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
132
+ \ <first_name/>\n <last_name/>\n <email>multi4@example.com</email>\n
133
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
134
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
135
+ \ <confirmed/>\n <custom_field_1>Custom Value</custom_field_1>\n <custom_value/>\n
136
+ \ <custom_value_1/>\n <custom_value_2/>\n <lists>\n </lists>\n
137
+ \ </member>\n <member suppressed=\"false\">\n <first_name/>\n <last_name/>\n
138
+ \ <email>new_test2@example.com</email>\n <created_at>2014-09-05 21:11:24
139
+ +0300</created_at>\n <city/>\n <phone/>\n <company>Dummy Company</company>\n
140
+ \ <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
141
+ \ <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n <custom_value_2/>\n
142
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
143
+ \ <first_name>New</first_name>\n <last_name>Test</last_name>\n <email>new_test@example.com</email>\n
144
+ \ <created_at>2014-09-05 21:10:19 +0300</created_at>\n <city/>\n <phone/>\n
145
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
146
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
147
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
148
+ \ <first_name>New</first_name>\n <last_name/>\n <email>new_user1@example.com</email>\n
149
+ \ <created_at>2014-09-05 22:17:39 +0300</created_at>\n <city/>\n <phone/>\n
150
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
151
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
152
+ \ <custom_value_2/>\n <lists>\n <list membership_created_at=\"2014-09-05
153
+ 19:17:39 UTC\">list 2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n
154
+ \ <first_name>Single</first_name>\n <last_name>One</last_name>\n <email>single1@example.com</email>\n
155
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
156
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
157
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
158
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
159
+ \ <first_name>Single</first_name>\n <last_name>One</last_name>\n <email>single1_1@example.com</email>\n
160
+ \ <created_at>2014-09-05 11:55:38 +0300</created_at>\n <city/>\n <phone/>\n
161
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
162
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
163
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
164
+ \ <first_name/>\n <last_name/>\n <email>updated@example.com</email>\n
165
+ \ <created_at>2014-09-07 20:35:25 +0300</created_at>\n <city/>\n <phone/>\n
166
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
167
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value>updated value</custom_value>\n
168
+ \ <custom_value_1/>\n <custom_value_2/>\n <lists>\n </lists>\n
169
+ \ </member>\n</audience>\n"
170
+ http_version:
171
+ recorded_at: Sun, 07 Sep 2014 20:44:41 GMT
172
+ - request:
173
+ method: get
174
+ uri: http://api.madmimi.com/audience_members.xml
175
+ body:
176
+ encoding: US-ASCII
177
+ string: username=test%40example.com&api_key=TEST_API_KEY
178
+ headers: {}
179
+ response:
180
+ status:
181
+ code: 200
182
+ message: OK
183
+ headers:
184
+ Date:
185
+ - Sun, 07 Sep 2014 20:44:41 GMT
186
+ Content-Type:
187
+ - application/xml; charset=utf-8
188
+ Transfer-Encoding:
189
+ - chunked
190
+ Connection:
191
+ - keep-alive
192
+ Set-Cookie:
193
+ - __cfduid=dd46f4b1ed03023d42d3d468612be9d591410122681177; expires=Mon, 23-Dec-2019
194
+ 23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
195
+ - chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
196
+ GMT
197
+ - non_eu=true; path=/
198
+ X-Ua-Compatible:
199
+ - IE=Edge,chrome=1
200
+ Etag:
201
+ - W/"6efa81e08317d36e2e43fe2204758355"
202
+ Cache-Control:
203
+ - max-age=0, private, must-revalidate
204
+ X-Request-Id:
205
+ - 9ff3a9a2762cee541f7c289a82ca74ab
206
+ X-Rack-Cache:
207
+ - miss
208
+ Status:
209
+ - 200 OK
210
+ Vary:
211
+ - Accept-Encoding
212
+ P3p:
213
+ - CP="CAO PSA OUR"
214
+ Server:
215
+ - cloudflare-nginx
216
+ Cf-Ray:
217
+ - 1665bee55d57088d-FRA
218
+ body:
219
+ encoding: US-ASCII
220
+ string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<audience count=\"22\"
221
+ total_pages=\"1\" per_page=\"30\" page=\"1\">\n <member suppressed=\"false\">\n
222
+ \ <first_name></first_name>\n <last_name></last_name>\n <email>add_to_list@example.com</email>\n
223
+ \ <created_at>2014-09-05 21:12:22 +0300</created_at>\n <city></city>\n
224
+ \ <phone></phone>\n <company></company>\n <title></title>\n <address></address>\n
225
+ \ <state></state>\n <zip></zip>\n <country></country>\n <confirmed/>\n
226
+ \ <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n <custom_value_2/>\n
227
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
228
+ \ <first_name>AddUser</first_name>\n <last_name/>\n <email>add_user@example.com</email>\n
229
+ \ <created_at>2014-09-07 19:41:31 +0300</created_at>\n <city/>\n <phone/>\n
230
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
231
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1>updated</custom_value_1>\n
232
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
233
+ \ <first_name>AddUsers2</first_name>\n <last_name/>\n <email>add_users1@example.com</email>\n
234
+ \ <created_at>2014-09-07 20:06:30 +0300</created_at>\n <city/>\n <phone/>\n
235
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
236
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1>updated1</custom_value_1>\n
237
+ \ <custom_value_2>updated2</custom_value_2>\n <lists>\n </lists>\n
238
+ \ </member>\n <member suppressed=\"false\">\n <first_name>AddUsers2</first_name>\n
239
+ \ <last_name/>\n <email>add_users2@example.com</email>\n <created_at>2014-09-07
240
+ 20:06:30 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
241
+ \ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
242
+ \ <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n <custom_value_2>add_users2</custom_value_2>\n
243
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
244
+ \ <first_name/>\n <last_name/>\n <email>another@example.com</email>\n
245
+ \ <created_at>2014-09-07 22:14:29 +0300</created_at>\n <city/>\n <phone/>\n
246
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
247
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
248
+ \ <custom_value_2/>\n <lists>\n <list membership_created_at=\"2014-09-07
249
+ 19:14:29 UTC\">list 1</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n
250
+ \ <first_name>test2</first_name>\n <last_name>csv2</last_name>\n <email>csv_test2@example.com</email>\n
251
+ \ <created_at>2014-09-07 19:32:52 +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/>\n <custom_value/>\n <custom_value_1/>\n
254
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
255
+ \ <first_name>test</first_name>\n <last_name>csv</last_name>\n <email>csv_test@example.com</email>\n
256
+ \ <created_at>2014-09-07 19:32:52 +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/>\n <custom_value_1/>\n
259
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
260
+ \ <first_name/>\n <last_name/>\n <email>maksim.gladkov@gmail.com</email>\n
261
+ \ <created_at>2014-09-05 22:25:20 +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/>\n <custom_value_1/>\n
264
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
265
+ \ <first_name/>\n <last_name/>\n <email>multi1@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/>\n <custom_value/>\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>multi1_1@example.com</email>\n
271
+ \ <created_at>2014-09-05 11:55:39 +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/>\n <custom_value_1/>\n
274
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
275
+ \ <first_name>Multi</first_name>\n <last_name/>\n <email>multi1_2@example.com</email>\n
276
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
277
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
278
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
279
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
280
+ \ <first_name/>\n <last_name>Third</last_name>\n <email>multi1_3@example.com</email>\n
281
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
282
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
283
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
284
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
285
+ \ <first_name/>\n <last_name/>\n <email>multi1_4@example.com</email>\n
286
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
287
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
288
+ \ <confirmed/>\n <custom_field_1>Custom Value</custom_field_1>\n <custom_value/>\n
289
+ \ <custom_value_1/>\n <custom_value_2/>\n <lists>\n </lists>\n
290
+ \ </member>\n <member suppressed=\"false\">\n <first_name>Multi</first_name>\n
291
+ \ <last_name/>\n <email>multi2@example.com</email>\n <created_at>2014-09-05
292
+ 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
293
+ \ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
294
+ \ <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n <custom_value_2/>\n
295
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
296
+ \ <first_name/>\n <last_name>Third</last_name>\n <email>multi3@example.com</email>\n
297
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
298
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
299
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
300
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
301
+ \ <first_name/>\n <last_name/>\n <email>multi4@example.com</email>\n
302
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
303
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
304
+ \ <confirmed/>\n <custom_field_1>Custom Value</custom_field_1>\n <custom_value/>\n
305
+ \ <custom_value_1/>\n <custom_value_2/>\n <lists>\n </lists>\n
306
+ \ </member>\n <member suppressed=\"false\">\n <first_name/>\n <last_name/>\n
307
+ \ <email>new_test2@example.com</email>\n <created_at>2014-09-05 21:11:24
308
+ +0300</created_at>\n <city/>\n <phone/>\n <company>Dummy Company</company>\n
309
+ \ <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
310
+ \ <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n <custom_value_2/>\n
311
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
312
+ \ <first_name>New</first_name>\n <last_name>Test</last_name>\n <email>new_test@example.com</email>\n
313
+ \ <created_at>2014-09-05 21:10:19 +0300</created_at>\n <city/>\n <phone/>\n
314
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
315
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
316
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
317
+ \ <first_name>New</first_name>\n <last_name/>\n <email>new_user1@example.com</email>\n
318
+ \ <created_at>2014-09-05 22:17:39 +0300</created_at>\n <city/>\n <phone/>\n
319
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
320
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
321
+ \ <custom_value_2/>\n <lists>\n <list membership_created_at=\"2014-09-05
322
+ 19:17:39 UTC\">list 2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n
323
+ \ <first_name>Single</first_name>\n <last_name>One</last_name>\n <email>single1@example.com</email>\n
324
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
325
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
326
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
327
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
328
+ \ <first_name>Single</first_name>\n <last_name>One</last_name>\n <email>single1_1@example.com</email>\n
329
+ \ <created_at>2014-09-05 11:55:38 +0300</created_at>\n <city/>\n <phone/>\n
330
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
331
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
332
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
333
+ \ <first_name/>\n <last_name/>\n <email>updated@example.com</email>\n
334
+ \ <created_at>2014-09-07 20:35:25 +0300</created_at>\n <city/>\n <phone/>\n
335
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
336
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value>updated value</custom_value>\n
337
+ \ <custom_value_1/>\n <custom_value_2/>\n <lists>\n </lists>\n
338
+ \ </member>\n</audience>\n"
339
+ http_version:
340
+ recorded_at: Sun, 07 Sep 2014 20:44:41 GMT
341
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,365 @@
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 20:43:45 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=db4aaa987d6f9b75df86004991f3560c71410122624964; 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/"bc9fe84a2f21515d7ab1c66f11ff8b9c"
33
+ Cache-Control:
34
+ - max-age=0, private, must-revalidate
35
+ X-Request-Id:
36
+ - e25cf48db75c4f0c801a6875be6b78ab
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
+ - 1665bd860ea70479-FRA
49
+ body:
50
+ encoding: US-ASCII
51
+ string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<audience count=\"24\"
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/>\n <custom_value_1/>\n <custom_value_2/>\n
58
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
59
+ \ <first_name>AddUser</first_name>\n <last_name/>\n <email>add_user@example.com</email>\n
60
+ \ <created_at>2014-09-07 19:41:31 +0300</created_at>\n <city/>\n <phone/>\n
61
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
62
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1>updated</custom_value_1>\n
63
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
64
+ \ <first_name>AddUsers2</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/>\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/>\n <custom_value_1/>\n <custom_value_2>add_users2</custom_value_2>\n
74
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
75
+ \ <first_name>First</first_name>\n <last_name/>\n <email>add_users_to_list1@example.com</email>\n
76
+ \ <created_at>2014-09-07 23:43:42 +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/>\n <custom_value_1/>\n
79
+ \ <custom_value_2/>\n <lists>\n <list membership_created_at=\"2014-09-07
80
+ 20:43:42 UTC\">list 1</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n
81
+ \ <first_name>Second</first_name>\n <last_name/>\n <email>add_users_to_list2@example.com</email>\n
82
+ \ <created_at>2014-09-07 23:43:42 +0300</created_at>\n <city/>\n <phone/>\n
83
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
84
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
85
+ \ <custom_value_2/>\n <lists>\n <list membership_created_at=\"2014-09-07
86
+ 20:43:42 UTC\">list 1</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n
87
+ \ <first_name/>\n <last_name/>\n <email>another@example.com</email>\n
88
+ \ <created_at>2014-09-07 22:14:29 +0300</created_at>\n <city/>\n <phone/>\n
89
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
90
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
91
+ \ <custom_value_2/>\n <lists>\n <list membership_created_at=\"2014-09-07
92
+ 19:14:29 UTC\">list 1</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n
93
+ \ <first_name>test2</first_name>\n <last_name>csv2</last_name>\n <email>csv_test2@example.com</email>\n
94
+ \ <created_at>2014-09-07 19:32:52 +0300</created_at>\n <city/>\n <phone/>\n
95
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
96
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
97
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
98
+ \ <first_name>test</first_name>\n <last_name>csv</last_name>\n <email>csv_test@example.com</email>\n
99
+ \ <created_at>2014-09-07 19:32:52 +0300</created_at>\n <city/>\n <phone/>\n
100
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
101
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
102
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
103
+ \ <first_name/>\n <last_name/>\n <email>maksim.gladkov@gmail.com</email>\n
104
+ \ <created_at>2014-09-05 22:25:20 +0300</created_at>\n <city/>\n <phone/>\n
105
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
106
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
107
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
108
+ \ <first_name/>\n <last_name/>\n <email>multi1@example.com</email>\n
109
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
110
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
111
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
112
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
113
+ \ <first_name/>\n <last_name/>\n <email>multi1_1@example.com</email>\n
114
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
115
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
116
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
117
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
118
+ \ <first_name>Multi</first_name>\n <last_name/>\n <email>multi1_2@example.com</email>\n
119
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
120
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
121
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
122
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
123
+ \ <first_name/>\n <last_name>Third</last_name>\n <email>multi1_3@example.com</email>\n
124
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
125
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
126
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
127
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
128
+ \ <first_name/>\n <last_name/>\n <email>multi1_4@example.com</email>\n
129
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
130
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
131
+ \ <confirmed/>\n <custom_field_1>Custom Value</custom_field_1>\n <custom_value/>\n
132
+ \ <custom_value_1/>\n <custom_value_2/>\n <lists>\n </lists>\n
133
+ \ </member>\n <member suppressed=\"false\">\n <first_name>Multi</first_name>\n
134
+ \ <last_name/>\n <email>multi2@example.com</email>\n <created_at>2014-09-05
135
+ 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
136
+ \ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
137
+ \ <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n <custom_value_2/>\n
138
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
139
+ \ <first_name/>\n <last_name>Third</last_name>\n <email>multi3@example.com</email>\n
140
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
141
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
142
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
143
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
144
+ \ <first_name/>\n <last_name/>\n <email>multi4@example.com</email>\n
145
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
146
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
147
+ \ <confirmed/>\n <custom_field_1>Custom Value</custom_field_1>\n <custom_value/>\n
148
+ \ <custom_value_1/>\n <custom_value_2/>\n <lists>\n </lists>\n
149
+ \ </member>\n <member suppressed=\"false\">\n <first_name/>\n <last_name/>\n
150
+ \ <email>new_test2@example.com</email>\n <created_at>2014-09-05 21:11:24
151
+ +0300</created_at>\n <city/>\n <phone/>\n <company>Dummy Company</company>\n
152
+ \ <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
153
+ \ <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n <custom_value_2/>\n
154
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
155
+ \ <first_name>New</first_name>\n <last_name>Test</last_name>\n <email>new_test@example.com</email>\n
156
+ \ <created_at>2014-09-05 21:10:19 +0300</created_at>\n <city/>\n <phone/>\n
157
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
158
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
159
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
160
+ \ <first_name>New</first_name>\n <last_name/>\n <email>new_user1@example.com</email>\n
161
+ \ <created_at>2014-09-05 22:17:39 +0300</created_at>\n <city/>\n <phone/>\n
162
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
163
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
164
+ \ <custom_value_2/>\n <lists>\n <list membership_created_at=\"2014-09-05
165
+ 19:17:39 UTC\">list 2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n
166
+ \ <first_name>Single</first_name>\n <last_name>One</last_name>\n <email>single1@example.com</email>\n
167
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
168
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
169
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
170
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
171
+ \ <first_name>Single</first_name>\n <last_name>One</last_name>\n <email>single1_1@example.com</email>\n
172
+ \ <created_at>2014-09-05 11:55:38 +0300</created_at>\n <city/>\n <phone/>\n
173
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
174
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
175
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
176
+ \ <first_name/>\n <last_name/>\n <email>updated@example.com</email>\n
177
+ \ <created_at>2014-09-07 20:35:25 +0300</created_at>\n <city/>\n <phone/>\n
178
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
179
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value>updated value</custom_value>\n
180
+ \ <custom_value_1/>\n <custom_value_2/>\n <lists>\n </lists>\n
181
+ \ </member>\n</audience>\n"
182
+ http_version:
183
+ recorded_at: Sun, 07 Sep 2014 20:43:45 GMT
184
+ - request:
185
+ method: get
186
+ uri: http://api.madmimi.com/audience_members.xml
187
+ body:
188
+ encoding: US-ASCII
189
+ string: username=test%40example.com&api_key=TEST_API_KEY
190
+ headers: {}
191
+ response:
192
+ status:
193
+ code: 200
194
+ message: OK
195
+ headers:
196
+ Date:
197
+ - Sun, 07 Sep 2014 20:43:45 GMT
198
+ Content-Type:
199
+ - application/xml; charset=utf-8
200
+ Transfer-Encoding:
201
+ - chunked
202
+ Connection:
203
+ - keep-alive
204
+ Set-Cookie:
205
+ - __cfduid=de4632373ef35d415f1dff00b6a86ddab1410122625554; expires=Mon, 23-Dec-2019
206
+ 23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
207
+ - chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
208
+ GMT
209
+ - non_eu=true; path=/
210
+ X-Ua-Compatible:
211
+ - IE=Edge,chrome=1
212
+ Etag:
213
+ - W/"bc9fe84a2f21515d7ab1c66f11ff8b9c"
214
+ Cache-Control:
215
+ - max-age=0, private, must-revalidate
216
+ X-Request-Id:
217
+ - f42b3eadead9f3a5e78e2b63f2adc31c
218
+ X-Rack-Cache:
219
+ - miss
220
+ Status:
221
+ - 200 OK
222
+ Vary:
223
+ - Accept-Encoding
224
+ P3p:
225
+ - CP="CAO PSA OUR"
226
+ Server:
227
+ - cloudflare-nginx
228
+ Cf-Ray:
229
+ - 1665bd89bf470479-FRA
230
+ body:
231
+ encoding: US-ASCII
232
+ string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<audience count=\"24\"
233
+ total_pages=\"1\" per_page=\"30\" page=\"1\">\n <member suppressed=\"false\">\n
234
+ \ <first_name></first_name>\n <last_name></last_name>\n <email>add_to_list@example.com</email>\n
235
+ \ <created_at>2014-09-05 21:12:22 +0300</created_at>\n <city></city>\n
236
+ \ <phone></phone>\n <company></company>\n <title></title>\n <address></address>\n
237
+ \ <state></state>\n <zip></zip>\n <country></country>\n <confirmed/>\n
238
+ \ <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n <custom_value_2/>\n
239
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
240
+ \ <first_name>AddUser</first_name>\n <last_name/>\n <email>add_user@example.com</email>\n
241
+ \ <created_at>2014-09-07 19:41:31 +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/>\n <custom_value_1>updated</custom_value_1>\n
244
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
245
+ \ <first_name>AddUsers2</first_name>\n <last_name/>\n <email>add_users1@example.com</email>\n
246
+ \ <created_at>2014-09-07 20:06:30 +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/>\n <custom_value_1>updated1</custom_value_1>\n
249
+ \ <custom_value_2>updated2</custom_value_2>\n <lists>\n </lists>\n
250
+ \ </member>\n <member suppressed=\"false\">\n <first_name>AddUsers2</first_name>\n
251
+ \ <last_name/>\n <email>add_users2@example.com</email>\n <created_at>2014-09-07
252
+ 20:06:30 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
253
+ \ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
254
+ \ <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n <custom_value_2>add_users2</custom_value_2>\n
255
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
256
+ \ <first_name>First</first_name>\n <last_name/>\n <email>add_users_to_list1@example.com</email>\n
257
+ \ <created_at>2014-09-07 23:43:42 +0300</created_at>\n <city/>\n <phone/>\n
258
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
259
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
260
+ \ <custom_value_2/>\n <lists>\n <list membership_created_at=\"2014-09-07
261
+ 20:43:42 UTC\">list 1</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n
262
+ \ <first_name>Second</first_name>\n <last_name/>\n <email>add_users_to_list2@example.com</email>\n
263
+ \ <created_at>2014-09-07 23:43:42 +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/>\n <custom_value_1/>\n
266
+ \ <custom_value_2/>\n <lists>\n <list membership_created_at=\"2014-09-07
267
+ 20:43:42 UTC\">list 1</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n
268
+ \ <first_name/>\n <last_name/>\n <email>another@example.com</email>\n
269
+ \ <created_at>2014-09-07 22:14:29 +0300</created_at>\n <city/>\n <phone/>\n
270
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
271
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
272
+ \ <custom_value_2/>\n <lists>\n <list membership_created_at=\"2014-09-07
273
+ 19:14:29 UTC\">list 1</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n
274
+ \ <first_name>test2</first_name>\n <last_name>csv2</last_name>\n <email>csv_test2@example.com</email>\n
275
+ \ <created_at>2014-09-07 19:32:52 +0300</created_at>\n <city/>\n <phone/>\n
276
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
277
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
278
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
279
+ \ <first_name>test</first_name>\n <last_name>csv</last_name>\n <email>csv_test@example.com</email>\n
280
+ \ <created_at>2014-09-07 19:32:52 +0300</created_at>\n <city/>\n <phone/>\n
281
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
282
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
283
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
284
+ \ <first_name/>\n <last_name/>\n <email>maksim.gladkov@gmail.com</email>\n
285
+ \ <created_at>2014-09-05 22:25:20 +0300</created_at>\n <city/>\n <phone/>\n
286
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
287
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
288
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
289
+ \ <first_name/>\n <last_name/>\n <email>multi1@example.com</email>\n
290
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
291
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
292
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
293
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
294
+ \ <first_name/>\n <last_name/>\n <email>multi1_1@example.com</email>\n
295
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
296
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
297
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
298
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
299
+ \ <first_name>Multi</first_name>\n <last_name/>\n <email>multi1_2@example.com</email>\n
300
+ \ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
301
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
302
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
303
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
304
+ \ <first_name/>\n <last_name>Third</last_name>\n <email>multi1_3@example.com</email>\n
305
+ \ <created_at>2014-09-05 11:55:39 +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/>\n <custom_value_1/>\n
308
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
309
+ \ <first_name/>\n <last_name/>\n <email>multi1_4@example.com</email>\n
310
+ \ <created_at>2014-09-05 11:55: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>Custom Value</custom_field_1>\n <custom_value/>\n
313
+ \ <custom_value_1/>\n <custom_value_2/>\n <lists>\n </lists>\n
314
+ \ </member>\n <member suppressed=\"false\">\n <first_name>Multi</first_name>\n
315
+ \ <last_name/>\n <email>multi2@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/>\n <custom_value_1/>\n <custom_value_2/>\n
319
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
320
+ \ <first_name/>\n <last_name>Third</last_name>\n <email>multi3@example.com</email>\n
321
+ \ <created_at>2014-09-05 11:50:51 +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/>\n <custom_value_1/>\n
324
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
325
+ \ <first_name/>\n <last_name/>\n <email>multi4@example.com</email>\n
326
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
327
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
328
+ \ <confirmed/>\n <custom_field_1>Custom Value</custom_field_1>\n <custom_value/>\n
329
+ \ <custom_value_1/>\n <custom_value_2/>\n <lists>\n </lists>\n
330
+ \ </member>\n <member suppressed=\"false\">\n <first_name/>\n <last_name/>\n
331
+ \ <email>new_test2@example.com</email>\n <created_at>2014-09-05 21:11:24
332
+ +0300</created_at>\n <city/>\n <phone/>\n <company>Dummy Company</company>\n
333
+ \ <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
334
+ \ <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n <custom_value_2/>\n
335
+ \ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
336
+ \ <first_name>New</first_name>\n <last_name>Test</last_name>\n <email>new_test@example.com</email>\n
337
+ \ <created_at>2014-09-05 21:10:19 +0300</created_at>\n <city/>\n <phone/>\n
338
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
339
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
340
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
341
+ \ <first_name>New</first_name>\n <last_name/>\n <email>new_user1@example.com</email>\n
342
+ \ <created_at>2014-09-05 22:17:39 +0300</created_at>\n <city/>\n <phone/>\n
343
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
344
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
345
+ \ <custom_value_2/>\n <lists>\n <list membership_created_at=\"2014-09-05
346
+ 19:17:39 UTC\">list 2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n
347
+ \ <first_name>Single</first_name>\n <last_name>One</last_name>\n <email>single1@example.com</email>\n
348
+ \ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
349
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
350
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
351
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
352
+ \ <first_name>Single</first_name>\n <last_name>One</last_name>\n <email>single1_1@example.com</email>\n
353
+ \ <created_at>2014-09-05 11:55:38 +0300</created_at>\n <city/>\n <phone/>\n
354
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
355
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
356
+ \ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
357
+ \ <first_name/>\n <last_name/>\n <email>updated@example.com</email>\n
358
+ \ <created_at>2014-09-07 20:35:25 +0300</created_at>\n <city/>\n <phone/>\n
359
+ \ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
360
+ \ <confirmed/>\n <custom_field_1/>\n <custom_value>updated value</custom_value>\n
361
+ \ <custom_value_1/>\n <custom_value_2/>\n <lists>\n </lists>\n
362
+ \ </member>\n</audience>\n"
363
+ http_version:
364
+ recorded_at: Sun, 07 Sep 2014 20:43:46 GMT
365
+ recorded_with: VCR 2.9.2