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,51 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.madmimi.com/audience_members/test@example.com/is_suppressed
|
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:33:05 GMT
|
17
|
+
Content-Type:
|
18
|
+
- text/html
|
19
|
+
Transfer-Encoding:
|
20
|
+
- chunked
|
21
|
+
Connection:
|
22
|
+
- keep-alive
|
23
|
+
Set-Cookie:
|
24
|
+
- __cfduid=d3a07b466afa4f25316d80f21d5c9f69b1410118385371; 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
|
+
Etag:
|
29
|
+
- W/"b326b5062b2f0e69046810717534cb09"
|
30
|
+
Cache-Control:
|
31
|
+
- max-age=0, private, must-revalidate
|
32
|
+
X-Request-Id:
|
33
|
+
- bcc3e7991cd7ad98f8dfce58b64e2f9a
|
34
|
+
X-Rack-Cache:
|
35
|
+
- miss
|
36
|
+
Status:
|
37
|
+
- 200 OK
|
38
|
+
P3p:
|
39
|
+
- CP="CAO PSA OUR"
|
40
|
+
Vary:
|
41
|
+
- Accept-Encoding
|
42
|
+
Server:
|
43
|
+
- cloudflare-nginx
|
44
|
+
Cf-Ray:
|
45
|
+
- 1665560499d6088d-FRA
|
46
|
+
body:
|
47
|
+
encoding: US-ASCII
|
48
|
+
string: 'true'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Sun, 07 Sep 2014 19:33:05 GMT
|
51
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.madmimi.com/audience_members/test@example.com/is_suppressed
|
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:32:07 GMT
|
17
|
+
Content-Type:
|
18
|
+
- text/html
|
19
|
+
Transfer-Encoding:
|
20
|
+
- chunked
|
21
|
+
Connection:
|
22
|
+
- keep-alive
|
23
|
+
Set-Cookie:
|
24
|
+
- __cfduid=d6fbd9c3c76b0d93e42c703e6544bb2711410118327456; 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
|
+
Etag:
|
29
|
+
- W/"68934a3e9455fa72420237eb05902327"
|
30
|
+
Cache-Control:
|
31
|
+
- max-age=0, private, must-revalidate
|
32
|
+
X-Request-Id:
|
33
|
+
- 224d687a661314fe29e5d98f288f4292
|
34
|
+
X-Rack-Cache:
|
35
|
+
- miss
|
36
|
+
Status:
|
37
|
+
- 200 OK
|
38
|
+
P3p:
|
39
|
+
- CP="CAO PSA OUR"
|
40
|
+
Vary:
|
41
|
+
- Accept-Encoding
|
42
|
+
Server:
|
43
|
+
- cloudflare-nginx
|
44
|
+
Cf-Ray:
|
45
|
+
- 1665549a9f010479-FRA
|
46
|
+
body:
|
47
|
+
encoding: US-ASCII
|
48
|
+
string: 'false'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Sun, 07 Sep 2014 19:32:07 GMT
|
51
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.madmimi.com/audience_members/test@example.com/is_suppressed
|
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: 400
|
13
|
+
message: Bad Request
|
14
|
+
headers:
|
15
|
+
Date:
|
16
|
+
- Sun, 07 Sep 2014 19:59:30 GMT
|
17
|
+
Content-Type:
|
18
|
+
- text/html
|
19
|
+
Transfer-Encoding:
|
20
|
+
- chunked
|
21
|
+
Connection:
|
22
|
+
- keep-alive
|
23
|
+
Set-Cookie:
|
24
|
+
- __cfduid=d9158e10f1b8c5e37086fb636dd03f1521410119969889; 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
|
+
- e610f35858d3202c2691ffd4105f2df1
|
32
|
+
X-Rack-Cache:
|
33
|
+
- miss
|
34
|
+
Status:
|
35
|
+
- 400 Bad Request
|
36
|
+
P3p:
|
37
|
+
- CP="CAO PSA OUR"
|
38
|
+
Vary:
|
39
|
+
- Accept-Encoding
|
40
|
+
Server:
|
41
|
+
- cloudflare-nginx
|
42
|
+
Cf-Ray:
|
43
|
+
- 16657cb3c98b0479-FRA
|
44
|
+
body:
|
45
|
+
encoding: US-ASCII
|
46
|
+
string: test@example.com does not exist
|
47
|
+
http_version:
|
48
|
+
recorded_at: Sun, 07 Sep 2014 19:59:29 GMT
|
49
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.madmimi.com/audience_members/test@example.com/is_suppressed
|
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 20:00:23 GMT
|
17
|
+
Content-Type:
|
18
|
+
- text/html
|
19
|
+
Transfer-Encoding:
|
20
|
+
- chunked
|
21
|
+
Connection:
|
22
|
+
- keep-alive
|
23
|
+
Set-Cookie:
|
24
|
+
- __cfduid=d35967bbf4069a6a1824fb88bde23d5b21410120023235; 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
|
+
Etag:
|
29
|
+
- W/"68934a3e9455fa72420237eb05902327"
|
30
|
+
Cache-Control:
|
31
|
+
- max-age=0, private, must-revalidate
|
32
|
+
X-Request-Id:
|
33
|
+
- 19d709289c2fd1e74ef9b70a10f278db
|
34
|
+
X-Rack-Cache:
|
35
|
+
- miss
|
36
|
+
Status:
|
37
|
+
- 200 OK
|
38
|
+
P3p:
|
39
|
+
- CP="CAO PSA OUR"
|
40
|
+
Vary:
|
41
|
+
- Accept-Encoding
|
42
|
+
Server:
|
43
|
+
- cloudflare-nginx
|
44
|
+
Cf-Ray:
|
45
|
+
- 16657e0138d90479-FRA
|
46
|
+
body:
|
47
|
+
encoding: US-ASCII
|
48
|
+
string: 'false'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Sun, 07 Sep 2014 20:00:23 GMT
|
51
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.madmimi.com/audience_members/test@example.com/is_suppressed
|
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 20:00:50 GMT
|
17
|
+
Content-Type:
|
18
|
+
- text/html
|
19
|
+
Transfer-Encoding:
|
20
|
+
- chunked
|
21
|
+
Connection:
|
22
|
+
- keep-alive
|
23
|
+
Set-Cookie:
|
24
|
+
- __cfduid=d294be56958c470cf4159bad52981eaff1410120050208; 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
|
+
Etag:
|
29
|
+
- W/"b326b5062b2f0e69046810717534cb09"
|
30
|
+
Cache-Control:
|
31
|
+
- max-age=0, private, must-revalidate
|
32
|
+
X-Request-Id:
|
33
|
+
- dccc0610dfc7b6c7a80973af5f90ae01
|
34
|
+
X-Rack-Cache:
|
35
|
+
- miss
|
36
|
+
Status:
|
37
|
+
- 200 OK
|
38
|
+
P3p:
|
39
|
+
- CP="CAO PSA OUR"
|
40
|
+
Vary:
|
41
|
+
- Accept-Encoding
|
42
|
+
Server:
|
43
|
+
- cloudflare-nginx
|
44
|
+
Cf-Ray:
|
45
|
+
- 16657ea9c6540479-FRA
|
46
|
+
body:
|
47
|
+
encoding: US-ASCII
|
48
|
+
string: 'true'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Sun, 07 Sep 2014 20:00:49 GMT
|
51
|
+
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_members/suppressed_since/1409512823.txt
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: username=test%40example.com&api_key=TEST_API_KEY&show_suppression_reason=false
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Date:
|
16
|
+
- Sun, 07 Sep 2014 19:24:26 GMT
|
17
|
+
Content-Type:
|
18
|
+
- text/plain; charset=utf-8
|
19
|
+
Transfer-Encoding:
|
20
|
+
- chunked
|
21
|
+
Connection:
|
22
|
+
- keep-alive
|
23
|
+
Set-Cookie:
|
24
|
+
- __cfduid=dcee703c9192a396782816db100c082a81410117866056; 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/"5e9b6b2d7775cfc4cb438ca7b9613736"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- 333dd9f43bc97c529e98ee0058f0e8d3
|
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
|
+
- 16654956d471088d-FRA
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ! 'new_test1@example.com
|
52
|
+
|
53
|
+
'
|
54
|
+
http_version:
|
55
|
+
recorded_at: Sun, 07 Sep 2014 19:24:25 GMT
|
56
|
+
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_members/suppressed_since/1409512823.txt
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: username=test%40example.com&api_key=TEST_API_KEY&show_suppression_reason=false
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Date:
|
16
|
+
- Sun, 07 Sep 2014 19:22:50 GMT
|
17
|
+
Content-Type:
|
18
|
+
- text/plain; charset=utf-8
|
19
|
+
Transfer-Encoding:
|
20
|
+
- chunked
|
21
|
+
Connection:
|
22
|
+
- keep-alive
|
23
|
+
Set-Cookie:
|
24
|
+
- __cfduid=d326eb5f94c5744437a9cdfd15b2cb9c51410117769983; 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/"68b329da9893e34099c7d8ad5cb9c940"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- 6d2ba0220e0c1759bd69557c80cd57db
|
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
|
+
- 166546fe6b0d088d-FRA
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ! '
|
52
|
+
|
53
|
+
'
|
54
|
+
http_version:
|
55
|
+
recorded_at: Sun, 07 Sep 2014 19:22:49 GMT
|
56
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,100 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.madmimi.com/audience_members/test@example.com/is_suppressed
|
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:34:42 GMT
|
17
|
+
Content-Type:
|
18
|
+
- text/html
|
19
|
+
Transfer-Encoding:
|
20
|
+
- chunked
|
21
|
+
Connection:
|
22
|
+
- keep-alive
|
23
|
+
Set-Cookie:
|
24
|
+
- __cfduid=da9673a68998e50baa2d0ab81af544cc01410118482495; 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
|
+
Etag:
|
29
|
+
- W/"b326b5062b2f0e69046810717534cb09"
|
30
|
+
Cache-Control:
|
31
|
+
- max-age=0, private, must-revalidate
|
32
|
+
X-Request-Id:
|
33
|
+
- a2bc879e1ad19ac7999525c6c4fc978d
|
34
|
+
X-Rack-Cache:
|
35
|
+
- miss
|
36
|
+
Status:
|
37
|
+
- 200 OK
|
38
|
+
P3p:
|
39
|
+
- CP="CAO PSA OUR"
|
40
|
+
Vary:
|
41
|
+
- Accept-Encoding
|
42
|
+
Server:
|
43
|
+
- cloudflare-nginx
|
44
|
+
Cf-Ray:
|
45
|
+
- 166558639e9b0479-FRA
|
46
|
+
body:
|
47
|
+
encoding: US-ASCII
|
48
|
+
string: 'true'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Sun, 07 Sep 2014 19:34:42 GMT
|
51
|
+
- request:
|
52
|
+
method: delete
|
53
|
+
uri: http://api.madmimi.com/suppressed_audience_members/test@example.com
|
54
|
+
body:
|
55
|
+
encoding: US-ASCII
|
56
|
+
string: username=test%40example.com&api_key=TEST_API_KEY
|
57
|
+
headers: {}
|
58
|
+
response:
|
59
|
+
status:
|
60
|
+
code: 200
|
61
|
+
message: OK
|
62
|
+
headers:
|
63
|
+
Date:
|
64
|
+
- Sun, 07 Sep 2014 19:34:43 GMT
|
65
|
+
Content-Type:
|
66
|
+
- application/json; charset=utf-8
|
67
|
+
Transfer-Encoding:
|
68
|
+
- chunked
|
69
|
+
Connection:
|
70
|
+
- keep-alive
|
71
|
+
Set-Cookie:
|
72
|
+
- __cfduid=d81f86bb024b925d5098fadcd501a44a71410118483245; expires=Mon, 23-Dec-2019
|
73
|
+
23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
|
74
|
+
- chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
|
75
|
+
GMT
|
76
|
+
- non_eu=true; path=/
|
77
|
+
X-Ua-Compatible:
|
78
|
+
- IE=Edge,chrome=1
|
79
|
+
Etag:
|
80
|
+
- ! '"9ba368baedac64bd9f8b7dff7260c72e"'
|
81
|
+
Cache-Control:
|
82
|
+
- max-age=0, private, must-revalidate
|
83
|
+
X-Request-Id:
|
84
|
+
- b4af50d6cabfeba3ff1f2b457e7345ba
|
85
|
+
X-Rack-Cache:
|
86
|
+
- invalidate, pass
|
87
|
+
Status:
|
88
|
+
- 200 OK
|
89
|
+
P3p:
|
90
|
+
- CP="CAO PSA OUR"
|
91
|
+
Server:
|
92
|
+
- cloudflare-nginx
|
93
|
+
Cf-Ray:
|
94
|
+
- 16655868496d0479-FRA
|
95
|
+
body:
|
96
|
+
encoding: US-ASCII
|
97
|
+
string: ! '{"success":true,"result":{"id":7130012110,"email":"test@example.com","name":"","first_name":"","last_name":"","suppressed":false,"recent_signup?":false,"suppression_reason":"","suppression_reason_class":"sent","external_id":null,"special_list_member":false,"lists":[],"list_removals":[],"list_unsuppressions":[],"list_additions":[]}}'
|
98
|
+
http_version:
|
99
|
+
recorded_at: Sun, 07 Sep 2014 19:34:43 GMT
|
100
|
+
recorded_with: VCR 2.9.2
|