madmimi 1.0.16 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +2 -0
- data/Gemfile +12 -0
- data/Gemfile.lock +93 -0
- data/README.rdoc +88 -37
- data/Rakefile +2 -30
- data/VERSION +1 -1
- data/config/paths.yml +23 -0
- data/lib/madmimi.rb +210 -123
- data/madmimi.gemspec +130 -22
- data/spec/cassettes/add_to_list/success.yml +54 -0
- data/spec/cassettes/add_to_list/user_does_not_exist.yml +165 -0
- data/spec/cassettes/add_to_list/user_existed.yml +54 -0
- data/spec/cassettes/add_to_list/user_exists.yml +171 -0
- data/spec/cassettes/add_to_list/user_updated.yml +174 -0
- data/spec/cassettes/add_user/user_did_not_exist.yml +54 -0
- data/spec/cassettes/add_user/user_exist.yml +303 -0
- data/spec/cassettes/add_user/user_existed.yml +54 -0
- data/spec/cassettes/add_user/user_missing.yml +138 -0
- data/spec/cassettes/add_user/user_updated.yml +153 -0
- data/spec/cassettes/add_users/users_did_not_exist.yml +54 -0
- data/spec/cassettes/add_users/users_exist.yml +326 -0
- data/spec/cassettes/add_users/users_existed.yml +54 -0
- data/spec/cassettes/add_users/users_missing.yml +305 -0
- data/spec/cassettes/add_users/users_updated.yml +327 -0
- data/spec/cassettes/add_users_to_list/gained_membership.yml +107 -0
- data/spec/cassettes/add_users_to_list/missing_membership.yml +174 -0
- data/spec/cassettes/add_users_to_list/users_did_not_exist.yml +54 -0
- data/spec/cassettes/add_users_to_list/users_exist.yml +365 -0
- data/spec/cassettes/add_users_to_list/users_existed.yml +54 -0
- data/spec/cassettes/add_users_to_list/users_missing.yml +341 -0
- data/spec/cassettes/add_users_to_list/users_updated.yml +365 -0
- data/spec/cassettes/audience_search/does_not_include_suppressed_users.yml +76 -0
- data/spec/cassettes/audience_search/includes_suppressed_users.yml +86 -0
- data/spec/cassettes/csv_import/success.yml +54 -0
- data/spec/cassettes/csv_import/users_exist.yml +273 -0
- data/spec/cassettes/csv_import/users_missing.yml +381 -0
- data/spec/cassettes/delete_list/exists.yml +57 -0
- data/spec/cassettes/delete_list/fail.yml +54 -0
- data/spec/cassettes/delete_list/not_exists.yml +56 -0
- data/spec/cassettes/delete_list/success.yml +54 -0
- data/spec/cassettes/delete_list/users_exist.yml +129 -0
- data/spec/cassettes/list_members/multiple.yml +68 -0
- data/spec/cassettes/list_members/single.yml +68 -0
- data/spec/cassettes/lists/multiple.yml +56 -0
- data/spec/cassettes/lists/single.yml +55 -0
- data/spec/cassettes/mailing_stats/mailing_does_not_exist.yml +50 -0
- data/spec/cassettes/mailing_stats/promotion_and_mailing_exist.yml +57 -0
- data/spec/cassettes/mailing_stats/promotion_does_not_exist.yml +50 -0
- data/spec/cassettes/members/multiple.yml +174 -0
- data/spec/cassettes/members/single.yml +61 -0
- data/spec/cassettes/memberships/multiple.yml +56 -0
- data/spec/cassettes/memberships/single.yml +108 -0
- data/spec/cassettes/new_list/exists.yml +57 -0
- data/spec/cassettes/new_list/fail.yml +52 -0
- data/spec/cassettes/new_list/not_exists.yml +56 -0
- data/spec/cassettes/new_list/success.yml +52 -0
- data/spec/cassettes/promotions/multiple.yml +63 -0
- data/spec/cassettes/promotions/single.yml +61 -0
- data/spec/cassettes/remove_from_all_list/user_does_not_have_memberships.yml +60 -0
- data/spec/cassettes/remove_from_all_lists/user_has_memberships.yml +113 -0
- data/spec/cassettes/remove_from_all_lists/user_with_memberships.yml +49 -0
- data/spec/cassettes/remove_from_list/user_does_not_exist.yml +49 -0
- data/spec/cassettes/remove_from_list/user_in_list_does_not_exist.yml +62 -0
- data/spec/cassettes/remove_from_list/user_in_list_exists.yml +68 -0
- data/spec/cassettes/remove_from_list/user_in_the_list.yml +49 -0
- data/spec/cassettes/remove_from_list/user_not_in_the_list.yml +49 -0
- data/spec/cassettes/save_promotion/only_plain_text.yml +56 -0
- data/spec/cassettes/save_promotion/only_raw_html.yml +56 -0
- data/spec/cassettes/save_promotion/promotion_exists.yml +65 -0
- data/spec/cassettes/save_promotion/promotion_missing.yml +63 -0
- data/spec/cassettes/save_promotion/raw_html_and_plain_text.yml +56 -0
- data/spec/cassettes/send_html/promotion_does_not_exist.yml +56 -0
- data/spec/cassettes/send_html/send_single.yml +53 -0
- data/spec/cassettes/send_html/send_to_all.yml +56 -0
- data/spec/cassettes/send_html/send_to_list.yml +56 -0
- data/spec/cassettes/send_mail/promotion_does_not_exist.yml +54 -0
- data/spec/cassettes/send_mail/send_single.yml +53 -0
- data/spec/cassettes/send_mail/send_to_all.yml +56 -0
- data/spec/cassettes/send_mail/send_to_list.yml +56 -0
- data/spec/cassettes/send_plaintext/promotion_does_not_exist.yml +56 -0
- data/spec/cassettes/send_plaintext/send_single.yml +53 -0
- data/spec/cassettes/send_plaintext/send_to_all.yml +56 -0
- data/spec/cassettes/send_plaintext/send_to_list.yml +56 -0
- data/spec/cassettes/send_plaintext/tracking_beacon_missing.yml +56 -0
- data/spec/cassettes/status/transactional_mail_does_not_exist.yml +51 -0
- data/spec/cassettes/status/transactional_mail_exists.yml +53 -0
- data/spec/cassettes/suppress_email/already_suppressed.yml +51 -0
- data/spec/cassettes/suppress_email/not_suppressed.yml +102 -0
- data/spec/cassettes/suppress_email/user_does_not_exist.yml +100 -0
- data/spec/cassettes/suppress_email/user_is_now_suppressed.yml +51 -0
- data/spec/cassettes/suppress_email/user_not_suppressed.yml +51 -0
- data/spec/cassettes/suppressed/member_does_not_exist.yml +49 -0
- data/spec/cassettes/suppressed/member_is_not_suppressed.yml +51 -0
- data/spec/cassettes/suppressed/member_is_suppressed.yml +51 -0
- data/spec/cassettes/suppressed_since/members_exist.yml +56 -0
- data/spec/cassettes/suppressed_since/no_members.yml +56 -0
- data/spec/cassettes/unsuppress_email/already_suppressed.yml +100 -0
- data/spec/cassettes/unsuppress_email/not_suppressed.yml +99 -0
- data/spec/cassettes/unsuppress_email/user_does_not_exist.yml +99 -0
- data/spec/cassettes/unsuppress_email/user_is_now_unsuppressed.yml +49 -0
- data/spec/cassettes/unsuppress_email/user_suppressed.yml +51 -0
- data/spec/cassettes/update_email/user_does_not_have_permission.yml +52 -0
- data/spec/cassettes/update_email/user_existed.yml +54 -0
- data/spec/cassettes/update_email/user_missing.yml +52 -0
- data/spec/cassettes/update_email/user_with_new_email.yml +345 -0
- data/spec/cassettes/update_email/user_with_old_email.yml +345 -0
- data/spec/madmimi_spec.rb +1166 -0
- data/spec/spec_helper.rb +15 -0
- metadata +210 -96
- data/test/fixtures/lists.xml +0 -7
- data/test/fixtures/promotions.xml +0 -10
- data/test/fixtures/search.xml +0 -38
- data/test/helper.rb +0 -43
- data/test/test_madmimi.rb +0 -63
@@ -0,0 +1,381 @@
|
|
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:31:00 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=d7db3155d68db6df388e02519387e297d1410107460562; 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/"378d1371a6f41862e8d2b7d244ee8dd4"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- aedc6e37de171b5de910071b9957bd4e
|
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
|
+
- 16644b4c8d6f088d-FRA
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<audience count=\"16\"
|
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/>\n <last_name/>\n <email>maksim.gladkov@gmail.com</email>\n
|
59
|
+
\ <created_at>2014-09-05 22:25:20 +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/>\n <last_name/>\n <email>multi1@example.com</email>\n
|
63
|
+
\ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
|
64
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
65
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
66
|
+
\ <member suppressed=\"false\">\n <first_name/>\n <last_name/>\n <email>multi1_1@example.com</email>\n
|
67
|
+
\ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
|
68
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
69
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
70
|
+
\ <member suppressed=\"false\">\n <first_name>Multi</first_name>\n <last_name/>\n
|
71
|
+
\ <email>multi1_2@example.com</email>\n <created_at>2014-09-05 11:55:39
|
72
|
+
+0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
73
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
74
|
+
\ <custom_field_1/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
75
|
+
\ <first_name/>\n <last_name>Third</last_name>\n <email>multi1_3@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/>\n <last_name/>\n <email>multi1_4@example.com</email>\n
|
80
|
+
\ <created_at>2014-09-05 11:55:39 +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>Custom Value</custom_field_1>\n <lists>\n
|
83
|
+
\ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>Multi</first_name>\n
|
84
|
+
\ <last_name/>\n <email>multi2@example.com</email>\n <created_at>2014-09-05
|
85
|
+
11:50:51 +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 <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
88
|
+
\ <first_name/>\n <last_name>Third</last_name>\n <email>multi3@example.com</email>\n
|
89
|
+
\ <created_at>2014-09-05 11:50:51 +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/>\n <lists>\n </lists>\n </member>\n
|
92
|
+
\ <member suppressed=\"false\">\n <first_name/>\n <last_name/>\n <email>multi4@example.com</email>\n
|
93
|
+
\ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
|
94
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
95
|
+
\ <confirmed/>\n <custom_field_1>Custom Value</custom_field_1>\n <lists>\n
|
96
|
+
\ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name/>\n
|
97
|
+
\ <last_name/>\n <email>new_test1@example.com</email>\n <created_at>2014-09-04
|
98
|
+
21:32:31 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
99
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
100
|
+
\ <custom_field_1/>\n <lists>\n <list membership_created_at=\"2014-09-04
|
101
|
+
18:32:31 UTC\">list 1</list>\n <list membership_created_at=\"2014-09-04
|
102
|
+
18:32:45 UTC\">list 2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
103
|
+
\ <first_name/>\n <last_name/>\n <email>new_test2@example.com</email>\n
|
104
|
+
\ <created_at>2014-09-05 21:11:24 +0300</created_at>\n <city/>\n <phone/>\n
|
105
|
+
\ <company>Dummy Company</company>\n <title/>\n <address/>\n <state/>\n
|
106
|
+
\ <zip/>\n <country/>\n <confirmed/>\n <custom_field_1/>\n <lists>\n
|
107
|
+
\ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>New</first_name>\n
|
108
|
+
\ <last_name>Test</last_name>\n <email>new_test@example.com</email>\n
|
109
|
+
\ <created_at>2014-09-05 21:10:19 +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 <lists>\n </lists>\n </member>\n
|
112
|
+
\ <member suppressed=\"false\">\n <first_name>New</first_name>\n <last_name/>\n
|
113
|
+
\ <email>new_user1@example.com</email>\n <created_at>2014-09-05 22:17:39
|
114
|
+
+0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
115
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
116
|
+
\ <custom_field_1/>\n <lists>\n <list membership_created_at=\"2014-09-05
|
117
|
+
19:17:39 UTC\">list 2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
118
|
+
\ <first_name>Single</first_name>\n <last_name>One</last_name>\n <email>single1@example.com</email>\n
|
119
|
+
\ <created_at>2014-09-05 11:50:51 +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 <lists>\n </lists>\n </member>\n
|
122
|
+
\ <member suppressed=\"false\">\n <first_name>Single</first_name>\n <last_name>One</last_name>\n
|
123
|
+
\ <email>single1_1@example.com</email>\n <created_at>2014-09-05 11:55:38
|
124
|
+
+0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
125
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
126
|
+
\ <custom_field_1/>\n <lists>\n </lists>\n </member>\n</audience>\n"
|
127
|
+
http_version:
|
128
|
+
recorded_at: Sun, 07 Sep 2014 16:31:00 GMT
|
129
|
+
- request:
|
130
|
+
method: get
|
131
|
+
uri: http://api.madmimi.com/audience_members.xml
|
132
|
+
body:
|
133
|
+
encoding: US-ASCII
|
134
|
+
string: username=test%40example.com&api_key=TEST_API_KEY
|
135
|
+
headers: {}
|
136
|
+
response:
|
137
|
+
status:
|
138
|
+
code: 200
|
139
|
+
message: OK
|
140
|
+
headers:
|
141
|
+
Date:
|
142
|
+
- Sun, 07 Sep 2014 16:31:01 GMT
|
143
|
+
Content-Type:
|
144
|
+
- application/xml; charset=utf-8
|
145
|
+
Transfer-Encoding:
|
146
|
+
- chunked
|
147
|
+
Connection:
|
148
|
+
- keep-alive
|
149
|
+
Set-Cookie:
|
150
|
+
- __cfduid=d03a31bee3bd20faf3dddd9256fde849f1410107461046; expires=Mon, 23-Dec-2019
|
151
|
+
23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
|
152
|
+
- chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
|
153
|
+
GMT
|
154
|
+
- non_eu=true; path=/
|
155
|
+
X-Ua-Compatible:
|
156
|
+
- IE=Edge,chrome=1
|
157
|
+
Etag:
|
158
|
+
- W/"378d1371a6f41862e8d2b7d244ee8dd4"
|
159
|
+
Cache-Control:
|
160
|
+
- max-age=0, private, must-revalidate
|
161
|
+
X-Request-Id:
|
162
|
+
- f49f3ad7939ec5c5e6f3f341e2d15668
|
163
|
+
X-Rack-Cache:
|
164
|
+
- miss
|
165
|
+
Status:
|
166
|
+
- 200 OK
|
167
|
+
Vary:
|
168
|
+
- Accept-Encoding
|
169
|
+
P3p:
|
170
|
+
- CP="CAO PSA OUR"
|
171
|
+
Server:
|
172
|
+
- cloudflare-nginx
|
173
|
+
Cf-Ray:
|
174
|
+
- 16644b4f823f088d-FRA
|
175
|
+
body:
|
176
|
+
encoding: US-ASCII
|
177
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<audience count=\"16\"
|
178
|
+
total_pages=\"1\" per_page=\"30\" page=\"1\">\n <member suppressed=\"false\">\n
|
179
|
+
\ <first_name></first_name>\n <last_name></last_name>\n <email>add_to_list@example.com</email>\n
|
180
|
+
\ <created_at>2014-09-05 21:12:22 +0300</created_at>\n <city></city>\n
|
181
|
+
\ <phone></phone>\n <company></company>\n <title></title>\n <address></address>\n
|
182
|
+
\ <state></state>\n <zip></zip>\n <country></country>\n <confirmed/>\n
|
183
|
+
\ <custom_field_1/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
184
|
+
\ <first_name/>\n <last_name/>\n <email>maksim.gladkov@gmail.com</email>\n
|
185
|
+
\ <created_at>2014-09-05 22:25:20 +0300</created_at>\n <city/>\n <phone/>\n
|
186
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
187
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
188
|
+
\ <member suppressed=\"false\">\n <first_name/>\n <last_name/>\n <email>multi1@example.com</email>\n
|
189
|
+
\ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
|
190
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
191
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
192
|
+
\ <member suppressed=\"false\">\n <first_name/>\n <last_name/>\n <email>multi1_1@example.com</email>\n
|
193
|
+
\ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
|
194
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
195
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
196
|
+
\ <member suppressed=\"false\">\n <first_name>Multi</first_name>\n <last_name/>\n
|
197
|
+
\ <email>multi1_2@example.com</email>\n <created_at>2014-09-05 11:55:39
|
198
|
+
+0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
199
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
200
|
+
\ <custom_field_1/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
201
|
+
\ <first_name/>\n <last_name>Third</last_name>\n <email>multi1_3@example.com</email>\n
|
202
|
+
\ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
|
203
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
204
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
205
|
+
\ <member suppressed=\"false\">\n <first_name/>\n <last_name/>\n <email>multi1_4@example.com</email>\n
|
206
|
+
\ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
|
207
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
208
|
+
\ <confirmed/>\n <custom_field_1>Custom Value</custom_field_1>\n <lists>\n
|
209
|
+
\ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>Multi</first_name>\n
|
210
|
+
\ <last_name/>\n <email>multi2@example.com</email>\n <created_at>2014-09-05
|
211
|
+
11:50:51 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
212
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
213
|
+
\ <custom_field_1/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
214
|
+
\ <first_name/>\n <last_name>Third</last_name>\n <email>multi3@example.com</email>\n
|
215
|
+
\ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
|
216
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
217
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
218
|
+
\ <member suppressed=\"false\">\n <first_name/>\n <last_name/>\n <email>multi4@example.com</email>\n
|
219
|
+
\ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
|
220
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
221
|
+
\ <confirmed/>\n <custom_field_1>Custom Value</custom_field_1>\n <lists>\n
|
222
|
+
\ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name/>\n
|
223
|
+
\ <last_name/>\n <email>new_test1@example.com</email>\n <created_at>2014-09-04
|
224
|
+
21:32:31 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
225
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
226
|
+
\ <custom_field_1/>\n <lists>\n <list membership_created_at=\"2014-09-04
|
227
|
+
18:32:31 UTC\">list 1</list>\n <list membership_created_at=\"2014-09-04
|
228
|
+
18:32:45 UTC\">list 2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
229
|
+
\ <first_name/>\n <last_name/>\n <email>new_test2@example.com</email>\n
|
230
|
+
\ <created_at>2014-09-05 21:11:24 +0300</created_at>\n <city/>\n <phone/>\n
|
231
|
+
\ <company>Dummy Company</company>\n <title/>\n <address/>\n <state/>\n
|
232
|
+
\ <zip/>\n <country/>\n <confirmed/>\n <custom_field_1/>\n <lists>\n
|
233
|
+
\ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>New</first_name>\n
|
234
|
+
\ <last_name>Test</last_name>\n <email>new_test@example.com</email>\n
|
235
|
+
\ <created_at>2014-09-05 21:10:19 +0300</created_at>\n <city/>\n <phone/>\n
|
236
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
237
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
238
|
+
\ <member suppressed=\"false\">\n <first_name>New</first_name>\n <last_name/>\n
|
239
|
+
\ <email>new_user1@example.com</email>\n <created_at>2014-09-05 22:17:39
|
240
|
+
+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 <lists>\n <list membership_created_at=\"2014-09-05
|
243
|
+
19:17:39 UTC\">list 2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
244
|
+
\ <first_name>Single</first_name>\n <last_name>One</last_name>\n <email>single1@example.com</email>\n
|
245
|
+
\ <created_at>2014-09-05 11:50:51 +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 <lists>\n </lists>\n </member>\n
|
248
|
+
\ <member suppressed=\"false\">\n <first_name>Single</first_name>\n <last_name>One</last_name>\n
|
249
|
+
\ <email>single1_1@example.com</email>\n <created_at>2014-09-05 11:55:38
|
250
|
+
+0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
251
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
252
|
+
\ <custom_field_1/>\n <lists>\n </lists>\n </member>\n</audience>\n"
|
253
|
+
http_version:
|
254
|
+
recorded_at: Sun, 07 Sep 2014 16:31:00 GMT
|
255
|
+
- request:
|
256
|
+
method: get
|
257
|
+
uri: http://api.madmimi.com/audience_members.xml
|
258
|
+
body:
|
259
|
+
encoding: US-ASCII
|
260
|
+
string: username=test%40example.com&api_key=TEST_API_KEY
|
261
|
+
headers: {}
|
262
|
+
response:
|
263
|
+
status:
|
264
|
+
code: 200
|
265
|
+
message: OK
|
266
|
+
headers:
|
267
|
+
Date:
|
268
|
+
- Sun, 07 Sep 2014 16:31:02 GMT
|
269
|
+
Content-Type:
|
270
|
+
- application/xml; charset=utf-8
|
271
|
+
Transfer-Encoding:
|
272
|
+
- chunked
|
273
|
+
Connection:
|
274
|
+
- keep-alive
|
275
|
+
Set-Cookie:
|
276
|
+
- __cfduid=d923f7d108aba8c75a99b7bdc054ecc371410107461807; expires=Mon, 23-Dec-2019
|
277
|
+
23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
|
278
|
+
- chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
|
279
|
+
GMT
|
280
|
+
- non_eu=true; path=/
|
281
|
+
X-Ua-Compatible:
|
282
|
+
- IE=Edge,chrome=1
|
283
|
+
Etag:
|
284
|
+
- W/"378d1371a6f41862e8d2b7d244ee8dd4"
|
285
|
+
Cache-Control:
|
286
|
+
- max-age=0, private, must-revalidate
|
287
|
+
X-Request-Id:
|
288
|
+
- e2673202978ee56bac53680866c620ed
|
289
|
+
X-Rack-Cache:
|
290
|
+
- miss
|
291
|
+
Status:
|
292
|
+
- 200 OK
|
293
|
+
Vary:
|
294
|
+
- Accept-Encoding
|
295
|
+
P3p:
|
296
|
+
- CP="CAO PSA OUR"
|
297
|
+
Server:
|
298
|
+
- cloudflare-nginx
|
299
|
+
Cf-Ray:
|
300
|
+
- 16644b5444d5088d-FRA
|
301
|
+
body:
|
302
|
+
encoding: US-ASCII
|
303
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<audience count=\"16\"
|
304
|
+
total_pages=\"1\" per_page=\"30\" page=\"1\">\n <member suppressed=\"false\">\n
|
305
|
+
\ <first_name></first_name>\n <last_name></last_name>\n <email>add_to_list@example.com</email>\n
|
306
|
+
\ <created_at>2014-09-05 21:12:22 +0300</created_at>\n <city></city>\n
|
307
|
+
\ <phone></phone>\n <company></company>\n <title></title>\n <address></address>\n
|
308
|
+
\ <state></state>\n <zip></zip>\n <country></country>\n <confirmed/>\n
|
309
|
+
\ <custom_field_1/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
310
|
+
\ <first_name/>\n <last_name/>\n <email>maksim.gladkov@gmail.com</email>\n
|
311
|
+
\ <created_at>2014-09-05 22:25:20 +0300</created_at>\n <city/>\n <phone/>\n
|
312
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
313
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
314
|
+
\ <member suppressed=\"false\">\n <first_name/>\n <last_name/>\n <email>multi1@example.com</email>\n
|
315
|
+
\ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
|
316
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
317
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
318
|
+
\ <member suppressed=\"false\">\n <first_name/>\n <last_name/>\n <email>multi1_1@example.com</email>\n
|
319
|
+
\ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
|
320
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
321
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
322
|
+
\ <member suppressed=\"false\">\n <first_name>Multi</first_name>\n <last_name/>\n
|
323
|
+
\ <email>multi1_2@example.com</email>\n <created_at>2014-09-05 11:55:39
|
324
|
+
+0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
325
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
326
|
+
\ <custom_field_1/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
327
|
+
\ <first_name/>\n <last_name>Third</last_name>\n <email>multi1_3@example.com</email>\n
|
328
|
+
\ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
|
329
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
330
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
331
|
+
\ <member suppressed=\"false\">\n <first_name/>\n <last_name/>\n <email>multi1_4@example.com</email>\n
|
332
|
+
\ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
|
333
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
334
|
+
\ <confirmed/>\n <custom_field_1>Custom Value</custom_field_1>\n <lists>\n
|
335
|
+
\ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>Multi</first_name>\n
|
336
|
+
\ <last_name/>\n <email>multi2@example.com</email>\n <created_at>2014-09-05
|
337
|
+
11:50:51 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
338
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
339
|
+
\ <custom_field_1/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
340
|
+
\ <first_name/>\n <last_name>Third</last_name>\n <email>multi3@example.com</email>\n
|
341
|
+
\ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
|
342
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
343
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
344
|
+
\ <member suppressed=\"false\">\n <first_name/>\n <last_name/>\n <email>multi4@example.com</email>\n
|
345
|
+
\ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
|
346
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
347
|
+
\ <confirmed/>\n <custom_field_1>Custom Value</custom_field_1>\n <lists>\n
|
348
|
+
\ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name/>\n
|
349
|
+
\ <last_name/>\n <email>new_test1@example.com</email>\n <created_at>2014-09-04
|
350
|
+
21:32:31 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
351
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
352
|
+
\ <custom_field_1/>\n <lists>\n <list membership_created_at=\"2014-09-04
|
353
|
+
18:32:31 UTC\">list 1</list>\n <list membership_created_at=\"2014-09-04
|
354
|
+
18:32:45 UTC\">list 2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
355
|
+
\ <first_name/>\n <last_name/>\n <email>new_test2@example.com</email>\n
|
356
|
+
\ <created_at>2014-09-05 21:11:24 +0300</created_at>\n <city/>\n <phone/>\n
|
357
|
+
\ <company>Dummy Company</company>\n <title/>\n <address/>\n <state/>\n
|
358
|
+
\ <zip/>\n <country/>\n <confirmed/>\n <custom_field_1/>\n <lists>\n
|
359
|
+
\ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>New</first_name>\n
|
360
|
+
\ <last_name>Test</last_name>\n <email>new_test@example.com</email>\n
|
361
|
+
\ <created_at>2014-09-05 21:10:19 +0300</created_at>\n <city/>\n <phone/>\n
|
362
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
363
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
364
|
+
\ <member suppressed=\"false\">\n <first_name>New</first_name>\n <last_name/>\n
|
365
|
+
\ <email>new_user1@example.com</email>\n <created_at>2014-09-05 22:17:39
|
366
|
+
+0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
367
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
368
|
+
\ <custom_field_1/>\n <lists>\n <list membership_created_at=\"2014-09-05
|
369
|
+
19:17:39 UTC\">list 2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
370
|
+
\ <first_name>Single</first_name>\n <last_name>One</last_name>\n <email>single1@example.com</email>\n
|
371
|
+
\ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
|
372
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
373
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
374
|
+
\ <member suppressed=\"false\">\n <first_name>Single</first_name>\n <last_name>One</last_name>\n
|
375
|
+
\ <email>single1_1@example.com</email>\n <created_at>2014-09-05 11:55:38
|
376
|
+
+0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
377
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
378
|
+
\ <custom_field_1/>\n <lists>\n </lists>\n </member>\n</audience>\n"
|
379
|
+
http_version:
|
380
|
+
recorded_at: Sun, 07 Sep 2014 16:31:01 GMT
|
381
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.madmimi.com/audience_lists/lists.xml
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: username=test%40example.com&api_key=TEST_API_KEY
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Date:
|
16
|
+
- Sun, 07 Sep 2014 15:56:32 GMT
|
17
|
+
Content-Type:
|
18
|
+
- application/xml; charset=utf-8
|
19
|
+
Transfer-Encoding:
|
20
|
+
- chunked
|
21
|
+
Connection:
|
22
|
+
- keep-alive
|
23
|
+
Set-Cookie:
|
24
|
+
- __cfduid=d4fd0dac60fb6fa77fc673d50c0ff34871410105392313; 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/"4f751b03eb3d6942c761b3ac9081732e"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- b40fb933894a6d28affad302c4957eb4
|
37
|
+
X-Rack-Cache:
|
38
|
+
- miss
|
39
|
+
Status:
|
40
|
+
- 200 OK
|
41
|
+
P3p:
|
42
|
+
- CP="CAO PSA OUR"
|
43
|
+
Vary:
|
44
|
+
- Accept-Encoding
|
45
|
+
Server:
|
46
|
+
- cloudflare-nginx
|
47
|
+
Cf-Ray:
|
48
|
+
- 166418cdfdfa088d-FRA
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<lists>\n <list id=\"1163641\"
|
52
|
+
name=\"list 1\" subscriber_count=\"1\" display_name=\"\"/>\n <list id=\"1165154\"
|
53
|
+
name=\"list 2\" subscriber_count=\"2\" display_name=\"\"/>\n <list id=\"1167142\"
|
54
|
+
name=\"new list 1\" subscriber_count=\"0\" display_name=\"\"/>\n</lists>\n"
|
55
|
+
http_version:
|
56
|
+
recorded_at: Sun, 07 Sep 2014 15:56:32 GMT
|
57
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: delete
|
5
|
+
uri: http://api.madmimi.com/audience_lists/new%20list%201
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: username=test%40example.com&api_key=TEST_API_KEY
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Date:
|
16
|
+
- Sun, 07 Sep 2014 15:58:14 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=dab87bfd3976549fe27882cc61d96ce2e1410105494211; 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/"7215ee9c7d9dc229d2921a40e899ec5f"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- 8f587a3c33c1fd04dae636b9c8729dcb
|
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
|
+
- 16641b4ad350088d-FRA
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ! ' '
|
52
|
+
http_version:
|
53
|
+
recorded_at: Sun, 07 Sep 2014 15:58:14 GMT
|
54
|
+
recorded_with: VCR 2.9.2
|