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