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: post
|
5
|
+
uri: https://api.madmimi.com/mailer/to_all
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: username=test%40example.com&api_key=TEST_API_KEY&promotion_name=Transactional%20Promotion&from=maxim%2B1%40madmimi.com&subject=Test&to_all=true&raw_html=%3Chtml%3E%3Cbody%3ETest%20%5B%5Btracking_beacon%5D%5D%20%5B%5Bopt_out%5D%5D%3C%2Fbody%3E%3C%2Fhtml%3E
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Server:
|
16
|
+
- cloudflare-nginx
|
17
|
+
Date:
|
18
|
+
- Mon, 08 Sep 2014 08:17:14 GMT
|
19
|
+
Content-Type:
|
20
|
+
- text/html; charset=utf-8
|
21
|
+
Transfer-Encoding:
|
22
|
+
- chunked
|
23
|
+
Connection:
|
24
|
+
- keep-alive
|
25
|
+
Set-Cookie:
|
26
|
+
- __cfduid=dc5328bd5a843d7f87ed9ba4dadac78b51410164232627; expires=Mon, 23-Dec-2019
|
27
|
+
23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
|
28
|
+
- chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
|
29
|
+
GMT
|
30
|
+
- non_eu=true; path=/
|
31
|
+
Strict-Transport-Security:
|
32
|
+
- max-age=31536000
|
33
|
+
X-Ua-Compatible:
|
34
|
+
- IE=Edge,chrome=1
|
35
|
+
Etag:
|
36
|
+
- W/"fd1e26a0413c75084ef9af63e54b0184"
|
37
|
+
Cache-Control:
|
38
|
+
- max-age=0, private, must-revalidate
|
39
|
+
X-Request-Id:
|
40
|
+
- 275ea5a212abc9c3c2dcc9cf28e5a9af
|
41
|
+
X-Rack-Cache:
|
42
|
+
- invalidate, pass
|
43
|
+
Status:
|
44
|
+
- 200 OK
|
45
|
+
P3p:
|
46
|
+
- CP="CAO PSA OUR"
|
47
|
+
Vary:
|
48
|
+
- Accept-Encoding
|
49
|
+
Cf-Ray:
|
50
|
+
- 1669b555534f0479-FRA
|
51
|
+
body:
|
52
|
+
encoding: US-ASCII
|
53
|
+
string: '122048589'
|
54
|
+
http_version:
|
55
|
+
recorded_at: Mon, 08 Sep 2014 08:17:14 GMT
|
56
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,56 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.madmimi.com/mailer/to_list
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: username=test%40example.com&api_key=TEST_API_KEY&promotion_name=Transactional%20Promotion&from=maxim%2B1%40madmimi.com&subject=Test&list_name=list%201&raw_html=%3Chtml%3E%3Cbody%3ETest%20%5B%5Btracking_beacon%5D%5D%20%5B%5Bopt_out%5D%5D%3C%2Fbody%3E%3C%2Fhtml%3E
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Server:
|
16
|
+
- cloudflare-nginx
|
17
|
+
Date:
|
18
|
+
- Mon, 08 Sep 2014 08:17:12 GMT
|
19
|
+
Content-Type:
|
20
|
+
- text/html; charset=utf-8
|
21
|
+
Transfer-Encoding:
|
22
|
+
- chunked
|
23
|
+
Connection:
|
24
|
+
- keep-alive
|
25
|
+
Set-Cookie:
|
26
|
+
- __cfduid=d1fbc3b0432c76765edb6f4b15a364d1a1410164231449; expires=Mon, 23-Dec-2019
|
27
|
+
23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
|
28
|
+
- chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
|
29
|
+
GMT
|
30
|
+
- non_eu=true; path=/
|
31
|
+
Strict-Transport-Security:
|
32
|
+
- max-age=31536000
|
33
|
+
X-Ua-Compatible:
|
34
|
+
- IE=Edge,chrome=1
|
35
|
+
Etag:
|
36
|
+
- W/"fbcb46ec5fad909d9da47a449f0f5e1c"
|
37
|
+
Cache-Control:
|
38
|
+
- max-age=0, private, must-revalidate
|
39
|
+
X-Request-Id:
|
40
|
+
- e43a97fa526097a869f47f81f398d839
|
41
|
+
X-Rack-Cache:
|
42
|
+
- invalidate, pass
|
43
|
+
Status:
|
44
|
+
- 200 OK
|
45
|
+
P3p:
|
46
|
+
- CP="CAO PSA OUR"
|
47
|
+
Vary:
|
48
|
+
- Accept-Encoding
|
49
|
+
Cf-Ray:
|
50
|
+
- 1669b54e0d20088d-FRA
|
51
|
+
body:
|
52
|
+
encoding: US-ASCII
|
53
|
+
string: '122048588'
|
54
|
+
http_version:
|
55
|
+
recorded_at: Mon, 08 Sep 2014 08:17:12 GMT
|
56
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.madmimi.com/mailer/to_all
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: username=test%40example.com&api_key=TEST_API_KEY&promotion_name=Unknown%20Promotion&from=maxim%2B1%40madmimi.com&subject=Test&to_all=true&body=---%20%7B%7D%0A
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 409
|
13
|
+
message: Conflict
|
14
|
+
headers:
|
15
|
+
Server:
|
16
|
+
- cloudflare-nginx
|
17
|
+
Date:
|
18
|
+
- Mon, 08 Sep 2014 07:59:12 GMT
|
19
|
+
Content-Type:
|
20
|
+
- text/html; charset=utf-8
|
21
|
+
Transfer-Encoding:
|
22
|
+
- chunked
|
23
|
+
Connection:
|
24
|
+
- keep-alive
|
25
|
+
Set-Cookie:
|
26
|
+
- __cfduid=d545892f3aefa669d2db750bd6a398f611410163151807; expires=Mon, 23-Dec-2019
|
27
|
+
23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
|
28
|
+
- chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
|
29
|
+
GMT
|
30
|
+
- non_eu=true; path=/
|
31
|
+
Strict-Transport-Security:
|
32
|
+
- max-age=31536000
|
33
|
+
X-Ua-Compatible:
|
34
|
+
- IE=Edge,chrome=1
|
35
|
+
Cache-Control:
|
36
|
+
- no-cache
|
37
|
+
X-Request-Id:
|
38
|
+
- 10a8887589cba67e02435f4f50fde221
|
39
|
+
X-Rack-Cache:
|
40
|
+
- invalidate, pass
|
41
|
+
Status:
|
42
|
+
- 409 Conflict
|
43
|
+
P3p:
|
44
|
+
- CP="CAO PSA OUR"
|
45
|
+
Vary:
|
46
|
+
- Accept-Encoding
|
47
|
+
Cf-Ray:
|
48
|
+
- 16699af23331088d-FRA
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: You do not have a promotion named Unknown Promotion.
|
52
|
+
http_version:
|
53
|
+
recorded_at: Mon, 08 Sep 2014 07:59:12 GMT
|
54
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,53 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.madmimi.com/mailer
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: username=test%40example.com&api_key=TEST_API_KEY&promotion_name=Transactional%20Promotion&from=maxim%2B1%40madmimi.com&subject=Test&recipient=Test%20Example%20%3Ctest%40example.com%3E&body=---%20%7B%7D%0A
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Server:
|
16
|
+
- cloudflare-nginx
|
17
|
+
Date:
|
18
|
+
- Mon, 08 Sep 2014 07:59:11 GMT
|
19
|
+
Content-Type:
|
20
|
+
- text/html
|
21
|
+
Transfer-Encoding:
|
22
|
+
- chunked
|
23
|
+
Connection:
|
24
|
+
- keep-alive
|
25
|
+
Set-Cookie:
|
26
|
+
- __cfduid=d6930d904c178c15eff8d3510ac27686e1410163150890; expires=Mon, 23-Dec-2019
|
27
|
+
23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
|
28
|
+
Strict-Transport-Security:
|
29
|
+
- max-age=31536000
|
30
|
+
X-Ua-Compatible:
|
31
|
+
- IE=Edge,chrome=1
|
32
|
+
Etag:
|
33
|
+
- W/"8d366d236a4865d0f4b415b95b015122"
|
34
|
+
Cache-Control:
|
35
|
+
- max-age=0, private, must-revalidate
|
36
|
+
X-Request-Id:
|
37
|
+
- 75467d0322104bad84728086a2096581
|
38
|
+
X-Rack-Cache:
|
39
|
+
- invalidate, pass
|
40
|
+
Status:
|
41
|
+
- 200 OK
|
42
|
+
P3p:
|
43
|
+
- CP="CAO PSA OUR"
|
44
|
+
Vary:
|
45
|
+
- Accept-Encoding
|
46
|
+
Cf-Ray:
|
47
|
+
- 16699aec72c9088d-FRA
|
48
|
+
body:
|
49
|
+
encoding: US-ASCII
|
50
|
+
string: '10199221753095749276'
|
51
|
+
http_version:
|
52
|
+
recorded_at: Mon, 08 Sep 2014 07:59:11 GMT
|
53
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,56 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.madmimi.com/mailer/to_all
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: username=test%40example.com&api_key=TEST_API_KEY&promotion_name=Transactional%20Promotion&from=maxim%2B1%40madmimi.com&subject=Test&to_all=true&body=---%20%7B%7D%0A
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Server:
|
16
|
+
- cloudflare-nginx
|
17
|
+
Date:
|
18
|
+
- Mon, 08 Sep 2014 07:59:10 GMT
|
19
|
+
Content-Type:
|
20
|
+
- text/html; charset=utf-8
|
21
|
+
Transfer-Encoding:
|
22
|
+
- chunked
|
23
|
+
Connection:
|
24
|
+
- keep-alive
|
25
|
+
Set-Cookie:
|
26
|
+
- __cfduid=d75c1c7af5585c5c3b006b5a97a62928d1410163149453; expires=Mon, 23-Dec-2019
|
27
|
+
23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
|
28
|
+
- chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
|
29
|
+
GMT
|
30
|
+
- non_eu=true; path=/
|
31
|
+
Strict-Transport-Security:
|
32
|
+
- max-age=31536000
|
33
|
+
X-Ua-Compatible:
|
34
|
+
- IE=Edge,chrome=1
|
35
|
+
Etag:
|
36
|
+
- W/"b756b78a9b689b3b93cc75abd0e61e02"
|
37
|
+
Cache-Control:
|
38
|
+
- max-age=0, private, must-revalidate
|
39
|
+
X-Request-Id:
|
40
|
+
- a89214d444ab0c80908911052cdc7223
|
41
|
+
X-Rack-Cache:
|
42
|
+
- invalidate, pass
|
43
|
+
Status:
|
44
|
+
- 200 OK
|
45
|
+
P3p:
|
46
|
+
- CP="CAO PSA OUR"
|
47
|
+
Vary:
|
48
|
+
- Accept-Encoding
|
49
|
+
Cf-Ray:
|
50
|
+
- 16699ae36249088d-FRA
|
51
|
+
body:
|
52
|
+
encoding: US-ASCII
|
53
|
+
string: '122048457'
|
54
|
+
http_version:
|
55
|
+
recorded_at: Mon, 08 Sep 2014 07:59:10 GMT
|
56
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,56 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.madmimi.com/mailer/to_list
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: username=test%40example.com&api_key=TEST_API_KEY&promotion_name=Transactional%20Promotion&from=maxim%2B1%40madmimi.com&subject=Test&list_name=list%201&body=---%20%7B%7D%0A
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Server:
|
16
|
+
- cloudflare-nginx
|
17
|
+
Date:
|
18
|
+
- Mon, 08 Sep 2014 07:59:09 GMT
|
19
|
+
Content-Type:
|
20
|
+
- text/html; charset=utf-8
|
21
|
+
Transfer-Encoding:
|
22
|
+
- chunked
|
23
|
+
Connection:
|
24
|
+
- keep-alive
|
25
|
+
Set-Cookie:
|
26
|
+
- __cfduid=dd686b62f8ca33ac5f774e74e5648731a1410163147927; expires=Mon, 23-Dec-2019
|
27
|
+
23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
|
28
|
+
- chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
|
29
|
+
GMT
|
30
|
+
- non_eu=true; path=/
|
31
|
+
Strict-Transport-Security:
|
32
|
+
- max-age=31536000
|
33
|
+
X-Ua-Compatible:
|
34
|
+
- IE=Edge,chrome=1
|
35
|
+
Etag:
|
36
|
+
- W/"a8180402723cfa2caf17356bdfb1bbe9"
|
37
|
+
Cache-Control:
|
38
|
+
- max-age=0, private, must-revalidate
|
39
|
+
X-Request-Id:
|
40
|
+
- 68234003f806f9b1305144ce31cfc110
|
41
|
+
X-Rack-Cache:
|
42
|
+
- invalidate, pass
|
43
|
+
Status:
|
44
|
+
- 200 OK
|
45
|
+
P3p:
|
46
|
+
- CP="CAO PSA OUR"
|
47
|
+
Vary:
|
48
|
+
- Accept-Encoding
|
49
|
+
Cf-Ray:
|
50
|
+
- 16699ad9da390479-FRA
|
51
|
+
body:
|
52
|
+
encoding: US-ASCII
|
53
|
+
string: '122048456'
|
54
|
+
http_version:
|
55
|
+
recorded_at: Mon, 08 Sep 2014 07:59:09 GMT
|
56
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,56 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.madmimi.com/mailer/to_all
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: username=test%40example.com&api_key=TEST_API_KEY&promotion_name=Unknown%20Promotion&from=maxim%2B1%40madmimi.com&subject=Test&to_all=true&raw_plain_text=Test%20%5B%5Btracking_beacon%5D%5D%20%5B%5Bopt_out%5D%5D
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Server:
|
16
|
+
- cloudflare-nginx
|
17
|
+
Date:
|
18
|
+
- Mon, 08 Sep 2014 08:21:22 GMT
|
19
|
+
Content-Type:
|
20
|
+
- text/html; charset=utf-8
|
21
|
+
Transfer-Encoding:
|
22
|
+
- chunked
|
23
|
+
Connection:
|
24
|
+
- keep-alive
|
25
|
+
Set-Cookie:
|
26
|
+
- __cfduid=de211cbdff6c235bcd6cc6cc004d502b71410164481456; expires=Mon, 23-Dec-2019
|
27
|
+
23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
|
28
|
+
- chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
|
29
|
+
GMT
|
30
|
+
- non_eu=true; path=/
|
31
|
+
Strict-Transport-Security:
|
32
|
+
- max-age=31536000
|
33
|
+
X-Ua-Compatible:
|
34
|
+
- IE=Edge,chrome=1
|
35
|
+
Etag:
|
36
|
+
- W/"e3bcdea229579235751e3f364b654e96"
|
37
|
+
Cache-Control:
|
38
|
+
- max-age=0, private, must-revalidate
|
39
|
+
X-Request-Id:
|
40
|
+
- b1cb8d5ae01b856bb52db9c24a91c6dd
|
41
|
+
X-Rack-Cache:
|
42
|
+
- invalidate, pass
|
43
|
+
Status:
|
44
|
+
- 200 OK
|
45
|
+
P3p:
|
46
|
+
- CP="CAO PSA OUR"
|
47
|
+
Vary:
|
48
|
+
- Accept-Encoding
|
49
|
+
Cf-Ray:
|
50
|
+
- 1669bb6887fb0479-FRA
|
51
|
+
body:
|
52
|
+
encoding: US-ASCII
|
53
|
+
string: '122048621'
|
54
|
+
http_version:
|
55
|
+
recorded_at: Mon, 08 Sep 2014 08:21:23 GMT
|
56
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,53 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.madmimi.com/mailer
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: username=test%40example.com&api_key=TEST_API_KEY&promotion_name=Transactional%20Promotion&from=maxim%2B1%40madmimi.com&subject=Test&recipient=Test%20Example%20%3Ctest%40example.com%3E&raw_plain_text=Test%20%5B%5Btracking_beacon%5D%5D%20%5B%5Bopt_out%5D%5D
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Server:
|
16
|
+
- cloudflare-nginx
|
17
|
+
Date:
|
18
|
+
- Mon, 08 Sep 2014 08:21:21 GMT
|
19
|
+
Content-Type:
|
20
|
+
- text/html
|
21
|
+
Transfer-Encoding:
|
22
|
+
- chunked
|
23
|
+
Connection:
|
24
|
+
- keep-alive
|
25
|
+
Set-Cookie:
|
26
|
+
- __cfduid=dca373ad95ff8092620b6e4627a2f37211410164480566; expires=Mon, 23-Dec-2019
|
27
|
+
23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
|
28
|
+
Strict-Transport-Security:
|
29
|
+
- max-age=31536000
|
30
|
+
X-Ua-Compatible:
|
31
|
+
- IE=Edge,chrome=1
|
32
|
+
Etag:
|
33
|
+
- W/"015c378ff085dc285b810522682a1adf"
|
34
|
+
Cache-Control:
|
35
|
+
- max-age=0, private, must-revalidate
|
36
|
+
X-Request-Id:
|
37
|
+
- 2c1031419e32c1630e8fd3e735efb496
|
38
|
+
X-Rack-Cache:
|
39
|
+
- invalidate, pass
|
40
|
+
Status:
|
41
|
+
- 200 OK
|
42
|
+
P3p:
|
43
|
+
- CP="CAO PSA OUR"
|
44
|
+
Vary:
|
45
|
+
- Accept-Encoding
|
46
|
+
Cf-Ray:
|
47
|
+
- 1669bb62f0f80479-FRA
|
48
|
+
body:
|
49
|
+
encoding: US-ASCII
|
50
|
+
string: '10199232906916102010'
|
51
|
+
http_version:
|
52
|
+
recorded_at: Mon, 08 Sep 2014 08:21:21 GMT
|
53
|
+
recorded_with: VCR 2.9.2
|