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,56 @@
|
|
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:33 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=d32ca9e89d1ecd71bdefcd1bce0f9f1c61410105392953; 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
|
+
- 522507acc1a41b98b407cf5f4c8156b3
|
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
|
+
- 166418d1fe02088d-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</lists>\n"
|
54
|
+
http_version:
|
55
|
+
recorded_at: Sun, 07 Sep 2014 15:56:33 GMT
|
56
|
+
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:55:11 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=d0418129e16c63ccf4dc67cb02df2dfab1410105311450; 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
|
+
- ef56becdf76c4d041b701590c54d9442
|
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
|
+
- 166416d499350479-FRA
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ! ' '
|
52
|
+
http_version:
|
53
|
+
recorded_at: Sun, 07 Sep 2014 15:55:11 GMT
|
54
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,129 @@
|
|
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:59 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=df0a593c840f6e29a7cb97cba5f82d27a1410107519410; 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
|
+
- 9c1c1041330da3c40cc6132483dd249a
|
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
|
+
- 16644cbc5825088d-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:59 GMT
|
129
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,68 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.madmimi.com/audience_lists/list%201/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 19:15:18 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=dba3c954bc789680f6c3066096c732ea31410117318252; 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/"85782029598d8f6e9168a795fc0f4d58"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- 2e82df396a7b187fd73347fc136d3311
|
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
|
+
- 16653bf719090479-FRA
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<audience count=\"2\"
|
52
|
+
total_pages=\"1\" per_page=\"30\" page=\"1\">\n <member suppressed=\"false\">\n
|
53
|
+
\ <first_name/>\n <last_name/>\n <email>another@example.com</email>\n
|
54
|
+
\ <created_at>2014-09-07 22:14:29 +0300</created_at>\n <city/>\n <phone/>\n
|
55
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
56
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
|
57
|
+
\ <custom_value_2/>\n <lists>\n <list membership_created_at=\"2014-09-07
|
58
|
+
19:14:29 UTC\">list 1</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
59
|
+
\ <first_name/>\n <last_name/>\n <email>new_test1@example.com</email>\n
|
60
|
+
\ <created_at>2014-09-04 21:32: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/>\n
|
63
|
+
\ <custom_value_2/>\n <lists>\n <list membership_created_at=\"2014-09-04
|
64
|
+
18:32:31 UTC\">list 1</list>\n <list membership_created_at=\"2014-09-04
|
65
|
+
18:32:45 UTC\">list 2</list>\n </lists>\n </member>\n</audience>\n"
|
66
|
+
http_version:
|
67
|
+
recorded_at: Sun, 07 Sep 2014 19:15:18 GMT
|
68
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,68 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.madmimi.com/audience_lists/list%201/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 19:14:48 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=dc1eae693dada5d58175ab8e9b427d7be1410117287843; 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/"087aa3080420fd6886c4b88be74b737f"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- a0f1d39395286b50d80011a408ecdc33
|
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
|
+
- 16653b3904d40479-FRA
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<audience count=\"1\"
|
52
|
+
total_pages=\"1\" per_page=\"30\" page=\"1\">\n <member suppressed=\"false\">\n
|
53
|
+
\ <first_name/>\n <last_name/>\n <email>another@example.com</email>\n
|
54
|
+
\ <created_at>2014-09-07 12:14:29 -0700</created_at>\n <city/>\n <phone/>\n
|
55
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
56
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
|
57
|
+
\ <custom_value_2/>\n <lists>\n <list membership_created_at=\"2014-09-07
|
58
|
+
19:14:29 UTC\">list 1</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
59
|
+
\ <first_name/>\n <last_name/>\n <email>new_test1@example.com</email>\n
|
60
|
+
\ <created_at>2014-09-04 11:32:31 -0700</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/>\n
|
63
|
+
\ <custom_value_2/>\n <lists>\n <list membership_created_at=\"2014-09-04
|
64
|
+
18:32:31 UTC\">list 1</list>\n <list membership_created_at=\"2014-09-04
|
65
|
+
18:32:45 UTC\">list 2</list>\n </lists>\n </member>\n</audience>\n"
|
66
|
+
http_version:
|
67
|
+
recorded_at: Sun, 07 Sep 2014 19:14:47 GMT
|
68
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,56 @@
|
|
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:31:35 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=d5cc19067a18d98bcf9a2adf0e56a43451410103894345; 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/"8a5022da479bcbb5607ae80bef8ec01d"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- 35d6540d0e5a779ff4e5cc305da3193a
|
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
|
+
- 1663f43ba2f6088d-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</lists>\n"
|
54
|
+
http_version:
|
55
|
+
recorded_at: Sun, 07 Sep 2014 15:31:36 GMT
|
56
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,55 @@
|
|
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:31:34 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=d66126ea5b57ba563a03d3d6e7f2efeb51410103893553; 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/"8a5022da479bcbb5607ae80bef8ec01d"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- 164d8dfb6d6682a571c49fb27150cbe2
|
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
|
+
- 1663f436b18c088d-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</lists>\n"
|
53
|
+
http_version:
|
54
|
+
recorded_at: Sun, 07 Sep 2014 15:31:34 GMT
|
55
|
+
recorded_with: VCR 2.9.2
|