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,171 @@
|
|
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:35:25 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=d66bf3c534f00c284780ad43741bae3621410111325456; 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/"09ac020391a4a3502325a5c1c24caeb1"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- a60943f8d3162603a4e55c3b1ec59789
|
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
|
+
- 1664a9a81edf088d-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_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>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_1>updated1</custom_value_1>\n
|
68
|
+
\ <custom_value_2>updated2</custom_value_2>\n <lists>\n </lists>\n
|
69
|
+
\ </member>\n <member suppressed=\"false\">\n <first_name>AddUsers2</first_name>\n
|
70
|
+
\ <last_name/>\n <email>add_users2@example.com</email>\n <created_at>2014-09-07
|
71
|
+
20:06:30 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
72
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
73
|
+
\ <custom_field_1/>\n <custom_value_1/>\n <custom_value_2>add_users2</custom_value_2>\n
|
74
|
+
\ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
75
|
+
\ <first_name>test2</first_name>\n <last_name>csv2</last_name>\n <email>csv_test2@example.com</email>\n
|
76
|
+
\ <created_at>2014-09-07 19:32:52 +0300</created_at>\n <city/>\n <phone/>\n
|
77
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
78
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
|
79
|
+
\ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
80
|
+
\ <first_name>test</first_name>\n <last_name>csv</last_name>\n <email>csv_test@example.com</email>\n
|
81
|
+
\ <created_at>2014-09-07 19:32:52 +0300</created_at>\n <city/>\n <phone/>\n
|
82
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
83
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
|
84
|
+
\ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
85
|
+
\ <first_name/>\n <last_name/>\n <email>maksim.gladkov@gmail.com</email>\n
|
86
|
+
\ <created_at>2014-09-05 22:25:20 +0300</created_at>\n <city/>\n <phone/>\n
|
87
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
88
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
|
89
|
+
\ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
90
|
+
\ <first_name/>\n <last_name/>\n <email>multi1@example.com</email>\n
|
91
|
+
\ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
|
92
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
93
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
|
94
|
+
\ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
95
|
+
\ <first_name/>\n <last_name/>\n <email>multi1_1@example.com</email>\n
|
96
|
+
\ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
|
97
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
98
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
|
99
|
+
\ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
100
|
+
\ <first_name>Multi</first_name>\n <last_name/>\n <email>multi1_2@example.com</email>\n
|
101
|
+
\ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
|
102
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
103
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
|
104
|
+
\ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
105
|
+
\ <first_name/>\n <last_name>Third</last_name>\n <email>multi1_3@example.com</email>\n
|
106
|
+
\ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
|
107
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
108
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
|
109
|
+
\ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
110
|
+
\ <first_name/>\n <last_name/>\n <email>multi1_4@example.com</email>\n
|
111
|
+
\ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
|
112
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
113
|
+
\ <confirmed/>\n <custom_field_1>Custom Value</custom_field_1>\n <custom_value_1/>\n
|
114
|
+
\ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
115
|
+
\ <first_name>Multi</first_name>\n <last_name/>\n <email>multi2@example.com</email>\n
|
116
|
+
\ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
|
117
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
118
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
|
119
|
+
\ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
120
|
+
\ <first_name/>\n <last_name>Third</last_name>\n <email>multi3@example.com</email>\n
|
121
|
+
\ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
|
122
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
123
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
|
124
|
+
\ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
125
|
+
\ <first_name/>\n <last_name/>\n <email>multi4@example.com</email>\n
|
126
|
+
\ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
|
127
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
128
|
+
\ <confirmed/>\n <custom_field_1>Custom Value</custom_field_1>\n <custom_value_1/>\n
|
129
|
+
\ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
130
|
+
\ <first_name/>\n <last_name/>\n <email>new_test1@example.com</email>\n
|
131
|
+
\ <created_at>2014-09-04 21:32:31 +0300</created_at>\n <city/>\n <phone/>\n
|
132
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
133
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
|
134
|
+
\ <lists>\n <list membership_created_at=\"2014-09-04 18:32:31 UTC\">list
|
135
|
+
1</list>\n <list membership_created_at=\"2014-09-04 18:32:45 UTC\">list
|
136
|
+
2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n <first_name/>\n
|
137
|
+
\ <last_name/>\n <email>new_test2@example.com</email>\n <created_at>2014-09-05
|
138
|
+
21:11:24 +0300</created_at>\n <city/>\n <phone/>\n <company>Dummy
|
139
|
+
Company</company>\n <title/>\n <address/>\n <state/>\n <zip/>\n
|
140
|
+
\ <country/>\n <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n
|
141
|
+
\ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
142
|
+
\ <first_name>New</first_name>\n <last_name>Test</last_name>\n <email>new_test@example.com</email>\n
|
143
|
+
\ <created_at>2014-09-05 21:10:19 +0300</created_at>\n <city/>\n <phone/>\n
|
144
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
145
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
|
146
|
+
\ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
147
|
+
\ <first_name>New</first_name>\n <last_name/>\n <email>new_user1@example.com</email>\n
|
148
|
+
\ <created_at>2014-09-05 22:17:39 +0300</created_at>\n <city/>\n <phone/>\n
|
149
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
150
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
|
151
|
+
\ <lists>\n <list membership_created_at=\"2014-09-05 19:17:39 UTC\">list
|
152
|
+
2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>Single</first_name>\n
|
153
|
+
\ <last_name>One</last_name>\n <email>single1@example.com</email>\n <created_at>2014-09-05
|
154
|
+
11:50:51 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
155
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
156
|
+
\ <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n <lists>\n
|
157
|
+
\ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>Single</first_name>\n
|
158
|
+
\ <last_name>One</last_name>\n <email>single1_1@example.com</email>\n
|
159
|
+
\ <created_at>2014-09-05 11:55:38 +0300</created_at>\n <city/>\n <phone/>\n
|
160
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
161
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <custom_value_2/>\n
|
162
|
+
\ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
163
|
+
\ <first_name/>\n <last_name/>\n <email>test@example.com</email>\n
|
164
|
+
\ <created_at>2014-09-07 20:35:25 +0300</created_at>\n <city/>\n <phone/>\n
|
165
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
166
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value>new value</custom_value>\n
|
167
|
+
\ <custom_value_1/>\n <custom_value_2/>\n <lists>\n <list membership_created_at=\"2014-09-07
|
168
|
+
17:35:25 UTC\">list 1</list>\n </lists>\n </member>\n</audience>\n"
|
169
|
+
http_version:
|
170
|
+
recorded_at: Sun, 07 Sep 2014 17:35:25 GMT
|
171
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,174 @@
|
|
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:37:24 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=dd22009f2645568e0c69d026b4c79c6c91410111444364; 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/"70a7c371f9f6efb65f31a8ab2493c2be"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- 1dc241083321754ae4b002afc0265936
|
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
|
+
- 1664ac8f482b0479-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>test2</first_name>\n <last_name>csv2</last_name>\n <email>csv_test2@example.com</email>\n
|
76
|
+
\ <created_at>2014-09-07 19:32:52 +0300</created_at>\n <city/>\n <phone/>\n
|
77
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
78
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
|
79
|
+
\ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
80
|
+
\ <first_name>test</first_name>\n <last_name>csv</last_name>\n <email>csv_test@example.com</email>\n
|
81
|
+
\ <created_at>2014-09-07 19:32:52 +0300</created_at>\n <city/>\n <phone/>\n
|
82
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
83
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
|
84
|
+
\ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
85
|
+
\ <first_name/>\n <last_name/>\n <email>maksim.gladkov@gmail.com</email>\n
|
86
|
+
\ <created_at>2014-09-05 22:25:20 +0300</created_at>\n <city/>\n <phone/>\n
|
87
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
88
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
|
89
|
+
\ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
90
|
+
\ <first_name/>\n <last_name/>\n <email>multi1@example.com</email>\n
|
91
|
+
\ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
|
92
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
93
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
|
94
|
+
\ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
95
|
+
\ <first_name/>\n <last_name/>\n <email>multi1_1@example.com</email>\n
|
96
|
+
\ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
|
97
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
98
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
|
99
|
+
\ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
100
|
+
\ <first_name>Multi</first_name>\n <last_name/>\n <email>multi1_2@example.com</email>\n
|
101
|
+
\ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
|
102
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
103
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
|
104
|
+
\ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
105
|
+
\ <first_name/>\n <last_name>Third</last_name>\n <email>multi1_3@example.com</email>\n
|
106
|
+
\ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
|
107
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
108
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
|
109
|
+
\ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
110
|
+
\ <first_name/>\n <last_name/>\n <email>multi1_4@example.com</email>\n
|
111
|
+
\ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
|
112
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
113
|
+
\ <confirmed/>\n <custom_field_1>Custom Value</custom_field_1>\n <custom_value/>\n
|
114
|
+
\ <custom_value_1/>\n <custom_value_2/>\n <lists>\n </lists>\n
|
115
|
+
\ </member>\n <member suppressed=\"false\">\n <first_name>Multi</first_name>\n
|
116
|
+
\ <last_name/>\n <email>multi2@example.com</email>\n <created_at>2014-09-05
|
117
|
+
11:50:51 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
118
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
119
|
+
\ <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n <custom_value_2/>\n
|
120
|
+
\ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
121
|
+
\ <first_name/>\n <last_name>Third</last_name>\n <email>multi3@example.com</email>\n
|
122
|
+
\ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
|
123
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
124
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
|
125
|
+
\ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
126
|
+
\ <first_name/>\n <last_name/>\n <email>multi4@example.com</email>\n
|
127
|
+
\ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
|
128
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
129
|
+
\ <confirmed/>\n <custom_field_1>Custom Value</custom_field_1>\n <custom_value/>\n
|
130
|
+
\ <custom_value_1/>\n <custom_value_2/>\n <lists>\n </lists>\n
|
131
|
+
\ </member>\n <member suppressed=\"false\">\n <first_name/>\n <last_name/>\n
|
132
|
+
\ <email>new_test1@example.com</email>\n <created_at>2014-09-04 21:32:31
|
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 <custom_value/>\n <custom_value_1/>\n <custom_value_2/>\n
|
136
|
+
\ <lists>\n <list membership_created_at=\"2014-09-04 18:32:31 UTC\">list
|
137
|
+
1</list>\n <list membership_created_at=\"2014-09-04 18:32:45 UTC\">list
|
138
|
+
2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n <first_name/>\n
|
139
|
+
\ <last_name/>\n <email>new_test2@example.com</email>\n <created_at>2014-09-05
|
140
|
+
21:11:24 +0300</created_at>\n <city/>\n <phone/>\n <company>Dummy
|
141
|
+
Company</company>\n <title/>\n <address/>\n <state/>\n <zip/>\n
|
142
|
+
\ <country/>\n <confirmed/>\n <custom_field_1/>\n <custom_value/>\n
|
143
|
+
\ <custom_value_1/>\n <custom_value_2/>\n <lists>\n </lists>\n
|
144
|
+
\ </member>\n <member suppressed=\"false\">\n <first_name>New</first_name>\n
|
145
|
+
\ <last_name>Test</last_name>\n <email>new_test@example.com</email>\n
|
146
|
+
\ <created_at>2014-09-05 21:10:19 +0300</created_at>\n <city/>\n <phone/>\n
|
147
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
148
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
|
149
|
+
\ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
150
|
+
\ <first_name>New</first_name>\n <last_name/>\n <email>new_user1@example.com</email>\n
|
151
|
+
\ <created_at>2014-09-05 22:17:39 +0300</created_at>\n <city/>\n <phone/>\n
|
152
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
153
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
|
154
|
+
\ <custom_value_2/>\n <lists>\n <list membership_created_at=\"2014-09-05
|
155
|
+
19:17:39 UTC\">list 2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
156
|
+
\ <first_name>Single</first_name>\n <last_name>One</last_name>\n <email>single1@example.com</email>\n
|
157
|
+
\ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
|
158
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
159
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
|
160
|
+
\ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
161
|
+
\ <first_name>Single</first_name>\n <last_name>One</last_name>\n <email>single1_1@example.com</email>\n
|
162
|
+
\ <created_at>2014-09-05 11:55:38 +0300</created_at>\n <city/>\n <phone/>\n
|
163
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
164
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
|
165
|
+
\ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
166
|
+
\ <first_name/>\n <last_name/>\n <email>test@example.com</email>\n
|
167
|
+
\ <created_at>2014-09-07 20:35:25 +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>updated value</custom_value>\n
|
170
|
+
\ <custom_value_1/>\n <custom_value_2/>\n <lists>\n <list membership_created_at=\"2014-09-07
|
171
|
+
17:35:25 UTC\">list 1</list>\n </lists>\n </member>\n</audience>\n"
|
172
|
+
http_version:
|
173
|
+
recorded_at: Sun, 07 Sep 2014 17:37:24 GMT
|
174
|
+
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%0Aadd_user%40example.com%2CAddUser%2Cadd_user%0A
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Date:
|
16
|
+
- Sun, 07 Sep 2014 16:41:30 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=d75bdf4ea30750bfc6c9d14015934736c1410108090362; 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/"ee97935bfa7672e4879477f3ae684f9b"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- 19948b585fa1b7ec3d7cdf4d286551e7
|
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
|
+
- 16645aacc8da0479-FRA
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: '140368637'
|
52
|
+
http_version:
|
53
|
+
recorded_at: Sun, 07 Sep 2014 16:41:30 GMT
|
54
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,303 @@
|
|
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:43:08 GMT
|
17
|
+
Content-Type:
|
18
|
+
- application/xml; charset=utf-8
|
19
|
+
Transfer-Encoding:
|
20
|
+
- chunked
|
21
|
+
Connection:
|
22
|
+
- keep-alive
|
23
|
+
Set-Cookie:
|
24
|
+
- __cfduid=d5bde01d83803b440a0b156aea77fcd851410108187791; 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/"d3f6cc2de0eabada2b3c66b8d711fb02"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- 9b9dd01b080a052dd2769c833bb543a0
|
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
|
+
- 16645d0dba000479-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>add_user</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:43:07 GMT
|
153
|
+
- request:
|
154
|
+
method: get
|
155
|
+
uri: http://api.madmimi.com/audience_members.xml
|
156
|
+
body:
|
157
|
+
encoding: US-ASCII
|
158
|
+
string: username=test%40example.com&api_key=TEST_API_KEY
|
159
|
+
headers: {}
|
160
|
+
response:
|
161
|
+
status:
|
162
|
+
code: 200
|
163
|
+
message: OK
|
164
|
+
headers:
|
165
|
+
Date:
|
166
|
+
- Sun, 07 Sep 2014 16:44:02 GMT
|
167
|
+
Content-Type:
|
168
|
+
- application/xml; charset=utf-8
|
169
|
+
Transfer-Encoding:
|
170
|
+
- chunked
|
171
|
+
Connection:
|
172
|
+
- keep-alive
|
173
|
+
Set-Cookie:
|
174
|
+
- __cfduid=d5c002fe206ca6c3daeb644b276672e221410108241786; expires=Mon, 23-Dec-2019
|
175
|
+
23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
|
176
|
+
- chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
|
177
|
+
GMT
|
178
|
+
- non_eu=true; path=/
|
179
|
+
X-Ua-Compatible:
|
180
|
+
- IE=Edge,chrome=1
|
181
|
+
Etag:
|
182
|
+
- W/"d3f6cc2de0eabada2b3c66b8d711fb02"
|
183
|
+
Cache-Control:
|
184
|
+
- max-age=0, private, must-revalidate
|
185
|
+
X-Request-Id:
|
186
|
+
- ee07f48b96a7b88b0b4bf8b2d1efb1c2
|
187
|
+
X-Rack-Cache:
|
188
|
+
- miss
|
189
|
+
Status:
|
190
|
+
- 200 OK
|
191
|
+
Vary:
|
192
|
+
- Accept-Encoding
|
193
|
+
P3p:
|
194
|
+
- CP="CAO PSA OUR"
|
195
|
+
Server:
|
196
|
+
- cloudflare-nginx
|
197
|
+
Cf-Ray:
|
198
|
+
- 16645e5f227d0479-FRA
|
199
|
+
body:
|
200
|
+
encoding: US-ASCII
|
201
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<audience count=\"19\"
|
202
|
+
total_pages=\"1\" per_page=\"30\" page=\"1\">\n <member suppressed=\"false\">\n
|
203
|
+
\ <first_name></first_name>\n <last_name></last_name>\n <email>add_to_list@example.com</email>\n
|
204
|
+
\ <created_at>2014-09-05 21:12:22 +0300</created_at>\n <city></city>\n
|
205
|
+
\ <phone></phone>\n <company></company>\n <title></title>\n <address></address>\n
|
206
|
+
\ <state></state>\n <zip></zip>\n <country></country>\n <confirmed/>\n
|
207
|
+
\ <custom_field_1/>\n <custom_value_1/>\n <lists>\n </lists>\n
|
208
|
+
\ </member>\n <member suppressed=\"false\">\n <first_name>AddUser</first_name>\n
|
209
|
+
\ <last_name/>\n <email>add_user@example.com</email>\n <created_at>2014-09-07
|
210
|
+
19:41:31 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
211
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
212
|
+
\ <custom_field_1/>\n <custom_value_1>add_user</custom_value_1>\n <lists>\n
|
213
|
+
\ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>test2</first_name>\n
|
214
|
+
\ <last_name>csv2</last_name>\n <email>csv_test2@example.com</email>\n
|
215
|
+
\ <created_at>2014-09-07 19:32:52 +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 <custom_value_1/>\n <lists>\n
|
218
|
+
\ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>test</first_name>\n
|
219
|
+
\ <last_name>csv</last_name>\n <email>csv_test@example.com</email>\n
|
220
|
+
\ <created_at>2014-09-07 19:32:52 +0300</created_at>\n <city/>\n <phone/>\n
|
221
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
222
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <lists>\n
|
223
|
+
\ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name/>\n
|
224
|
+
\ <last_name/>\n <email>maksim.gladkov@gmail.com</email>\n <created_at>2014-09-05
|
225
|
+
22:25:20 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
226
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
227
|
+
\ <custom_field_1/>\n <custom_value_1/>\n <lists>\n </lists>\n
|
228
|
+
\ </member>\n <member suppressed=\"false\">\n <first_name/>\n <last_name/>\n
|
229
|
+
\ <email>multi1@example.com</email>\n <created_at>2014-09-05 11:50:51
|
230
|
+
+0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
231
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
232
|
+
\ <custom_field_1/>\n <custom_value_1/>\n <lists>\n </lists>\n
|
233
|
+
\ </member>\n <member suppressed=\"false\">\n <first_name/>\n <last_name/>\n
|
234
|
+
\ <email>multi1_1@example.com</email>\n <created_at>2014-09-05 11:55:39
|
235
|
+
+0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
236
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
237
|
+
\ <custom_field_1/>\n <custom_value_1/>\n <lists>\n </lists>\n
|
238
|
+
\ </member>\n <member suppressed=\"false\">\n <first_name>Multi</first_name>\n
|
239
|
+
\ <last_name/>\n <email>multi1_2@example.com</email>\n <created_at>2014-09-05
|
240
|
+
11:55:39 +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_1/>\n <lists>\n </lists>\n
|
243
|
+
\ </member>\n <member suppressed=\"false\">\n <first_name/>\n <last_name>Third</last_name>\n
|
244
|
+
\ <email>multi1_3@example.com</email>\n <created_at>2014-09-05 11:55:39
|
245
|
+
+0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
246
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
247
|
+
\ <custom_field_1/>\n <custom_value_1/>\n <lists>\n </lists>\n
|
248
|
+
\ </member>\n <member suppressed=\"false\">\n <first_name/>\n <last_name/>\n
|
249
|
+
\ <email>multi1_4@example.com</email>\n <created_at>2014-09-05 11:55:39
|
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>Custom Value</custom_field_1>\n <custom_value_1/>\n
|
253
|
+
\ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
254
|
+
\ <first_name>Multi</first_name>\n <last_name/>\n <email>multi2@example.com</email>\n
|
255
|
+
\ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
|
256
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
257
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <lists>\n
|
258
|
+
\ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name/>\n
|
259
|
+
\ <last_name>Third</last_name>\n <email>multi3@example.com</email>\n
|
260
|
+
\ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
|
261
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
262
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <lists>\n
|
263
|
+
\ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name/>\n
|
264
|
+
\ <last_name/>\n <email>multi4@example.com</email>\n <created_at>2014-09-05
|
265
|
+
11:50:51 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
266
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
267
|
+
\ <custom_field_1>Custom Value</custom_field_1>\n <custom_value_1/>\n
|
268
|
+
\ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
269
|
+
\ <first_name/>\n <last_name/>\n <email>new_test1@example.com</email>\n
|
270
|
+
\ <created_at>2014-09-04 21:32:31 +0300</created_at>\n <city/>\n <phone/>\n
|
271
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
272
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n <lists>\n
|
273
|
+
\ <list membership_created_at=\"2014-09-04 18:32:31 UTC\">list 1</list>\n
|
274
|
+
\ <list membership_created_at=\"2014-09-04 18:32:45 UTC\">list 2</list>\n
|
275
|
+
\ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name/>\n
|
276
|
+
\ <last_name/>\n <email>new_test2@example.com</email>\n <created_at>2014-09-05
|
277
|
+
21:11:24 +0300</created_at>\n <city/>\n <phone/>\n <company>Dummy
|
278
|
+
Company</company>\n <title/>\n <address/>\n <state/>\n <zip/>\n
|
279
|
+
\ <country/>\n <confirmed/>\n <custom_field_1/>\n <custom_value_1/>\n
|
280
|
+
\ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
281
|
+
\ <first_name>New</first_name>\n <last_name>Test</last_name>\n <email>new_test@example.com</email>\n
|
282
|
+
\ <created_at>2014-09-05 21:10:19 +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 <lists>\n
|
285
|
+
\ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>New</first_name>\n
|
286
|
+
\ <last_name/>\n <email>new_user1@example.com</email>\n <created_at>2014-09-05
|
287
|
+
22:17:39 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
288
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
289
|
+
\ <custom_field_1/>\n <custom_value_1/>\n <lists>\n <list membership_created_at=\"2014-09-05
|
290
|
+
19:17:39 UTC\">list 2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
291
|
+
\ <first_name>Single</first_name>\n <last_name>One</last_name>\n <email>single1@example.com</email>\n
|
292
|
+
\ <created_at>2014-09-05 11:50:51 +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 <lists>\n
|
295
|
+
\ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>Single</first_name>\n
|
296
|
+
\ <last_name>One</last_name>\n <email>single1_1@example.com</email>\n
|
297
|
+
\ <created_at>2014-09-05 11:55:38 +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_1/>\n <lists>\n
|
300
|
+
\ </lists>\n </member>\n</audience>\n"
|
301
|
+
http_version:
|
302
|
+
recorded_at: Sun, 07 Sep 2014 16:44:01 GMT
|
303
|
+
recorded_with: VCR 2.9.2
|