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,60 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.madmimi.com/audience_members/test@example.com/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 18:26:56 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=d637877e15b6f460483daedad093102011410114416336; 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/"1ff2ce5e5e818ff57fadd364516ce674"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- 690c69856ec9a5511c0cb4c39c4c450f
|
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
|
+
- 1664f51e13e4088d-FRA
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ! '<?xml version="1.0" encoding="UTF-8"?>
|
52
|
+
|
53
|
+
<lists>
|
54
|
+
|
55
|
+
</lists>
|
56
|
+
|
57
|
+
'
|
58
|
+
http_version:
|
59
|
+
recorded_at: Sun, 07 Sep 2014 18:26:55 GMT
|
60
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,113 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.madmimi.com/audience_members/test@example.com/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 18:26:31 GMT
|
17
|
+
Content-Type:
|
18
|
+
- application/xml; charset=utf-8
|
19
|
+
Transfer-Encoding:
|
20
|
+
- chunked
|
21
|
+
Connection:
|
22
|
+
- keep-alive
|
23
|
+
Set-Cookie:
|
24
|
+
- __cfduid=d44b8ac45d50dccd7ffb80a8f1ca1fe621410114391189; 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/"9e2c10bf367757bdacce8a914339210a"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- 2756df8acb203eba24691d73b588128d
|
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
|
+
- 1664f480ef78088d-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=\"2\" 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 18:26:30 GMT
|
56
|
+
- request:
|
57
|
+
method: get
|
58
|
+
uri: http://api.madmimi.com/audience_members/test@example.com/lists.xml
|
59
|
+
body:
|
60
|
+
encoding: US-ASCII
|
61
|
+
string: username=test%40example.com&api_key=TEST_API_KEY
|
62
|
+
headers: {}
|
63
|
+
response:
|
64
|
+
status:
|
65
|
+
code: 200
|
66
|
+
message: OK
|
67
|
+
headers:
|
68
|
+
Date:
|
69
|
+
- Sun, 07 Sep 2014 18:31:19 GMT
|
70
|
+
Content-Type:
|
71
|
+
- application/xml; charset=utf-8
|
72
|
+
Transfer-Encoding:
|
73
|
+
- chunked
|
74
|
+
Connection:
|
75
|
+
- keep-alive
|
76
|
+
Set-Cookie:
|
77
|
+
- __cfduid=d9568189d5d64900579d02225be32b6a81410114678718; expires=Mon, 23-Dec-2019
|
78
|
+
23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
|
79
|
+
- chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
|
80
|
+
GMT
|
81
|
+
- non_eu=true; path=/
|
82
|
+
X-Ua-Compatible:
|
83
|
+
- IE=Edge,chrome=1
|
84
|
+
Etag:
|
85
|
+
- W/"1ff2ce5e5e818ff57fadd364516ce674"
|
86
|
+
Cache-Control:
|
87
|
+
- max-age=0, private, must-revalidate
|
88
|
+
X-Request-Id:
|
89
|
+
- 1677e011cff14a4dc4ed4f08b674caa6
|
90
|
+
X-Rack-Cache:
|
91
|
+
- miss
|
92
|
+
Status:
|
93
|
+
- 200 OK
|
94
|
+
P3p:
|
95
|
+
- CP="CAO PSA OUR"
|
96
|
+
Vary:
|
97
|
+
- Accept-Encoding
|
98
|
+
Server:
|
99
|
+
- cloudflare-nginx
|
100
|
+
Cf-Ray:
|
101
|
+
- 1664fb85f3b30479-FRA
|
102
|
+
body:
|
103
|
+
encoding: US-ASCII
|
104
|
+
string: ! '<?xml version="1.0" encoding="UTF-8"?>
|
105
|
+
|
106
|
+
<lists>
|
107
|
+
|
108
|
+
</lists>
|
109
|
+
|
110
|
+
'
|
111
|
+
http_version:
|
112
|
+
recorded_at: Sun, 07 Sep 2014 18:31:18 GMT
|
113
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://api.madmimi.com/audience_lists/remove_all
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: username=test%40example.com&api_key=TEST_API_KEY&email=test%40example.com
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Date:
|
16
|
+
- Sun, 07 Sep 2014 18:26:56 GMT
|
17
|
+
Content-Type:
|
18
|
+
- text/html
|
19
|
+
Transfer-Encoding:
|
20
|
+
- chunked
|
21
|
+
Connection:
|
22
|
+
- keep-alive
|
23
|
+
Set-Cookie:
|
24
|
+
- __cfduid=dff9b0086913291b389c3ab663a8371481410114415898; expires=Mon, 23-Dec-2019
|
25
|
+
23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
|
26
|
+
X-Ua-Compatible:
|
27
|
+
- IE=Edge,chrome=1
|
28
|
+
Cache-Control:
|
29
|
+
- no-cache
|
30
|
+
X-Request-Id:
|
31
|
+
- 3969bfdf45d5b21219bf5f400abec757
|
32
|
+
X-Rack-Cache:
|
33
|
+
- invalidate, pass
|
34
|
+
Status:
|
35
|
+
- 200 OK
|
36
|
+
P3p:
|
37
|
+
- CP="CAO PSA OUR"
|
38
|
+
Vary:
|
39
|
+
- Accept-Encoding
|
40
|
+
Server:
|
41
|
+
- cloudflare-nginx
|
42
|
+
Cf-Ray:
|
43
|
+
- 1664f51b593f088d-FRA
|
44
|
+
body:
|
45
|
+
encoding: US-ASCII
|
46
|
+
string: ''
|
47
|
+
http_version:
|
48
|
+
recorded_at: Sun, 07 Sep 2014 18:26:55 GMT
|
49
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://api.madmimi.com/audience_lists/list%201/remove
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: username=test%40example.com&api_key=TEST_API_KEY&email=wrong%40example.com
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Date:
|
16
|
+
- Sun, 07 Sep 2014 17:56:03 GMT
|
17
|
+
Content-Type:
|
18
|
+
- text/html
|
19
|
+
Transfer-Encoding:
|
20
|
+
- chunked
|
21
|
+
Connection:
|
22
|
+
- keep-alive
|
23
|
+
Set-Cookie:
|
24
|
+
- __cfduid=d44eb0a343702bc544f04bd4f4a0d4e871410112562697; expires=Mon, 23-Dec-2019
|
25
|
+
23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
|
26
|
+
X-Ua-Compatible:
|
27
|
+
- IE=Edge,chrome=1
|
28
|
+
Cache-Control:
|
29
|
+
- no-cache
|
30
|
+
X-Request-Id:
|
31
|
+
- 2d7560f529ba1d3fdb68137cd161235a
|
32
|
+
X-Rack-Cache:
|
33
|
+
- invalidate, pass
|
34
|
+
Status:
|
35
|
+
- 200 OK
|
36
|
+
P3p:
|
37
|
+
- CP="CAO PSA OUR"
|
38
|
+
Vary:
|
39
|
+
- Accept-Encoding
|
40
|
+
Server:
|
41
|
+
- cloudflare-nginx
|
42
|
+
Cf-Ray:
|
43
|
+
- 1664c7dcd21a0479-FRA
|
44
|
+
body:
|
45
|
+
encoding: US-ASCII
|
46
|
+
string: ''
|
47
|
+
http_version:
|
48
|
+
recorded_at: Sun, 07 Sep 2014 17:56:02 GMT
|
49
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,62 @@
|
|
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 18:20:36 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=d8145fb9944836874b5f0b45086f77ec51410114035714; 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/"d6bbc3428b007aefee17b8e19ac90c43"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- b1d71c5f979ec0d08e3adfc4a7ae0046
|
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
|
+
- 1664ebd332e90479-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>new_test1@example.com</email>\n
|
54
|
+
\ <created_at>2014-09-04 14:32:31 -0400</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-04
|
58
|
+
18:32:31 UTC\">list 1</list>\n <list membership_created_at=\"2014-09-04
|
59
|
+
18:32:45 UTC\">list 2</list>\n </lists>\n </member>\n</audience>\n"
|
60
|
+
http_version:
|
61
|
+
recorded_at: Sun, 07 Sep 2014 18:20:35 GMT
|
62
|
+
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 18:20: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=da599cd2b29d78e9b28dd714844a0841e1410114034967; 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/"bcc5c9a04ac6c0367e3ffc6a055a5682"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- 4b05670260971b01bf68a03718a5269f
|
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
|
+
- 1664ebce8d520479-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>new_test1@example.com</email>\n
|
54
|
+
\ <created_at>2014-09-04 15:32:31 -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-04
|
58
|
+
18:32:31 UTC\">list 1</list>\n <list membership_created_at=\"2014-09-04
|
59
|
+
18:32:45 UTC\">list 2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
60
|
+
\ <first_name/>\n <last_name/>\n <email>test@example.com</email>\n
|
61
|
+
\ <created_at>2014-09-07 14:35:25 -0300</created_at>\n <city/>\n <phone/>\n
|
62
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
63
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value>updated value</custom_value>\n
|
64
|
+
\ <custom_value_1/>\n <custom_value_2/>\n <lists>\n <list membership_created_at=\"2014-09-07
|
65
|
+
18:20:26 UTC\">list 1</list>\n </lists>\n </member>\n</audience>\n"
|
66
|
+
http_version:
|
67
|
+
recorded_at: Sun, 07 Sep 2014 18:20:34 GMT
|
68
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://api.madmimi.com/audience_lists/list%201/remove
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: username=test%40example.com&api_key=TEST_API_KEY&email=test%40example.com
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Date:
|
16
|
+
- Sun, 07 Sep 2014 17:56:01 GMT
|
17
|
+
Content-Type:
|
18
|
+
- text/html
|
19
|
+
Transfer-Encoding:
|
20
|
+
- chunked
|
21
|
+
Connection:
|
22
|
+
- keep-alive
|
23
|
+
Set-Cookie:
|
24
|
+
- __cfduid=d21e25f17d72b5e8507549cd741dbfa0b1410112561267; expires=Mon, 23-Dec-2019
|
25
|
+
23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
|
26
|
+
X-Ua-Compatible:
|
27
|
+
- IE=Edge,chrome=1
|
28
|
+
Cache-Control:
|
29
|
+
- no-cache
|
30
|
+
X-Request-Id:
|
31
|
+
- 77ea71d94626d53dcb9c783d3a4d23e1
|
32
|
+
X-Rack-Cache:
|
33
|
+
- invalidate, pass
|
34
|
+
Status:
|
35
|
+
- 200 OK
|
36
|
+
P3p:
|
37
|
+
- CP="CAO PSA OUR"
|
38
|
+
Vary:
|
39
|
+
- Accept-Encoding
|
40
|
+
Server:
|
41
|
+
- cloudflare-nginx
|
42
|
+
Cf-Ray:
|
43
|
+
- 1664c7d3e58f0479-FRA
|
44
|
+
body:
|
45
|
+
encoding: US-ASCII
|
46
|
+
string: ''
|
47
|
+
http_version:
|
48
|
+
recorded_at: Sun, 07 Sep 2014 17:56:00 GMT
|
49
|
+
recorded_with: VCR 2.9.2
|