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,99 @@
|
|
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:36:16 GMT
|
17
|
+
Content-Type:
|
18
|
+
- text/html
|
19
|
+
Transfer-Encoding:
|
20
|
+
- chunked
|
21
|
+
Connection:
|
22
|
+
- keep-alive
|
23
|
+
Set-Cookie:
|
24
|
+
- __cfduid=de7b0fd6a8572507e9784fd91d3ab4d301410118576394; 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
|
+
- c70bd82e3ff8f045919a0b74a76a0796
|
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
|
+
- 16655aae7bf3088d-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:36:16 GMT
|
49
|
+
- request:
|
50
|
+
method: delete
|
51
|
+
uri: http://api.madmimi.com/suppressed_audience_members/test@example.com
|
52
|
+
body:
|
53
|
+
encoding: US-ASCII
|
54
|
+
string: username=test%40example.com&api_key=TEST_API_KEY
|
55
|
+
headers: {}
|
56
|
+
response:
|
57
|
+
status:
|
58
|
+
code: 200
|
59
|
+
message: OK
|
60
|
+
headers:
|
61
|
+
Date:
|
62
|
+
- Sun, 07 Sep 2014 19:38:07 GMT
|
63
|
+
Content-Type:
|
64
|
+
- application/json; charset=utf-8
|
65
|
+
Transfer-Encoding:
|
66
|
+
- chunked
|
67
|
+
Connection:
|
68
|
+
- keep-alive
|
69
|
+
Set-Cookie:
|
70
|
+
- __cfduid=d9160596d278afe60a898e9999dd8da1a1410118687379; expires=Mon, 23-Dec-2019
|
71
|
+
23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
|
72
|
+
- chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
|
73
|
+
GMT
|
74
|
+
- non_eu=true; path=/
|
75
|
+
X-Ua-Compatible:
|
76
|
+
- IE=Edge,chrome=1
|
77
|
+
Etag:
|
78
|
+
- ! '"f8e0cbe09ccd742227c3dec96bb30b7d"'
|
79
|
+
Cache-Control:
|
80
|
+
- max-age=0, private, must-revalidate
|
81
|
+
X-Request-Id:
|
82
|
+
- c041267b8bd9d33b2501c15633bc5e67
|
83
|
+
X-Rack-Cache:
|
84
|
+
- invalidate, pass
|
85
|
+
Status:
|
86
|
+
- 200 OK
|
87
|
+
P3p:
|
88
|
+
- CP="CAO PSA OUR"
|
89
|
+
Server:
|
90
|
+
- cloudflare-nginx
|
91
|
+
Cf-Ray:
|
92
|
+
- 16655d64109d0479-FRA
|
93
|
+
body:
|
94
|
+
encoding: US-ASCII
|
95
|
+
string: ! '{"success":false,"error":"undefined method `suppressed_lists'' for
|
96
|
+
nil:NilClass"}'
|
97
|
+
http_version:
|
98
|
+
recorded_at: Sun, 07 Sep 2014 19:38:07 GMT
|
99
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,99 @@
|
|
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:36:17 GMT
|
17
|
+
Content-Type:
|
18
|
+
- text/html
|
19
|
+
Transfer-Encoding:
|
20
|
+
- chunked
|
21
|
+
Connection:
|
22
|
+
- keep-alive
|
23
|
+
Set-Cookie:
|
24
|
+
- __cfduid=dde20b2382d296d7f7d2f646a508b274b1410118577553; 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
|
+
- d30370dd53152151ded5328f5c5f4cc2
|
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
|
+
- 16655ab5b18b088d-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:36:17 GMT
|
49
|
+
- request:
|
50
|
+
method: delete
|
51
|
+
uri: http://api.madmimi.com/suppressed_audience_members/test@example.com
|
52
|
+
body:
|
53
|
+
encoding: US-ASCII
|
54
|
+
string: username=test%40example.com&api_key=TEST_API_KEY
|
55
|
+
headers: {}
|
56
|
+
response:
|
57
|
+
status:
|
58
|
+
code: 200
|
59
|
+
message: OK
|
60
|
+
headers:
|
61
|
+
Date:
|
62
|
+
- Sun, 07 Sep 2014 19:38:08 GMT
|
63
|
+
Content-Type:
|
64
|
+
- application/json; charset=utf-8
|
65
|
+
Transfer-Encoding:
|
66
|
+
- chunked
|
67
|
+
Connection:
|
68
|
+
- keep-alive
|
69
|
+
Set-Cookie:
|
70
|
+
- __cfduid=dcb78e159418779c4141ee372bbf281c61410118687849; expires=Mon, 23-Dec-2019
|
71
|
+
23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
|
72
|
+
- chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
|
73
|
+
GMT
|
74
|
+
- non_eu=true; path=/
|
75
|
+
X-Ua-Compatible:
|
76
|
+
- IE=Edge,chrome=1
|
77
|
+
Etag:
|
78
|
+
- ! '"f8e0cbe09ccd742227c3dec96bb30b7d"'
|
79
|
+
Cache-Control:
|
80
|
+
- max-age=0, private, must-revalidate
|
81
|
+
X-Request-Id:
|
82
|
+
- 23c085dceb1a66b0248bc1aa2e9986b1
|
83
|
+
X-Rack-Cache:
|
84
|
+
- invalidate, pass
|
85
|
+
Status:
|
86
|
+
- 200 OK
|
87
|
+
P3p:
|
88
|
+
- CP="CAO PSA OUR"
|
89
|
+
Server:
|
90
|
+
- cloudflare-nginx
|
91
|
+
Cf-Ray:
|
92
|
+
- 16655d6704860479-FRA
|
93
|
+
body:
|
94
|
+
encoding: US-ASCII
|
95
|
+
string: ! '{"success":false,"error":"undefined method `suppressed_lists'' for
|
96
|
+
nil:NilClass"}'
|
97
|
+
http_version:
|
98
|
+
recorded_at: Sun, 07 Sep 2014 19:38:07 GMT
|
99
|
+
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:36:17 GMT
|
17
|
+
Content-Type:
|
18
|
+
- text/html
|
19
|
+
Transfer-Encoding:
|
20
|
+
- chunked
|
21
|
+
Connection:
|
22
|
+
- keep-alive
|
23
|
+
Set-Cookie:
|
24
|
+
- __cfduid=d7cdd8b823163fcbd89f1c284358126b31410118576927; 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
|
+
- 429a5bfc2110a788173b364cd1839028
|
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
|
+
- 16655ab1c55f088d-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:36:16 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 19:34:44 GMT
|
17
|
+
Content-Type:
|
18
|
+
- text/html
|
19
|
+
Transfer-Encoding:
|
20
|
+
- chunked
|
21
|
+
Connection:
|
22
|
+
- keep-alive
|
23
|
+
Set-Cookie:
|
24
|
+
- __cfduid=dfee44366ff26c9756aca0ffb69c7b5bc1410118483865; 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
|
+
- a8177e9e0a776d123ef8bdf2995dcb94
|
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
|
+
- 1665586c2880088d-FRA
|
46
|
+
body:
|
47
|
+
encoding: US-ASCII
|
48
|
+
string: 'true'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Sun, 07 Sep 2014 19:34:43 GMT
|
51
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,52 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://api.madmimi.com/audience_members/test@example.com/update_email
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: username=test%40example.com&api_key=TEST_API_KEY&email=test%40example.com&new_email=updated%40example.com
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 401
|
13
|
+
message: Unauthorized
|
14
|
+
headers:
|
15
|
+
Date:
|
16
|
+
- Sun, 07 Sep 2014 19:04:15 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=d12a04d61821610203ddd1408fd12be071410116655576; 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
|
+
Cache-Control:
|
32
|
+
- no-cache
|
33
|
+
X-Request-Id:
|
34
|
+
- 4f8c9e8f1105429746b642290c873e70
|
35
|
+
X-Rack-Cache:
|
36
|
+
- invalidate, pass
|
37
|
+
Status:
|
38
|
+
- 401 Unauthorized
|
39
|
+
P3p:
|
40
|
+
- CP="CAO PSA OUR"
|
41
|
+
Vary:
|
42
|
+
- Accept-Encoding
|
43
|
+
Server:
|
44
|
+
- cloudflare-nginx
|
45
|
+
Cf-Ray:
|
46
|
+
- 16652bc958d0088d-FRA
|
47
|
+
body:
|
48
|
+
encoding: US-ASCII
|
49
|
+
string: You do not have the rights to use this API
|
50
|
+
http_version:
|
51
|
+
recorded_at: Sun, 07 Sep 2014 19:04:15 GMT
|
52
|
+
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/test@example.com/update_email
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: username=test%40example.com&api_key=TEST_API_KEY&email=test%40example.com&new_email=updated%40example.com
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Date:
|
16
|
+
- Sun, 07 Sep 2014 18:59:41 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=d870a194340c0370f22e46131376132fb1410116381385; 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
|
+
- d60eafcecffc975ab09f22e34697c2d7
|
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
|
+
- 16652517ad770479-FRA
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ! ' '
|
52
|
+
http_version:
|
53
|
+
recorded_at: Sun, 07 Sep 2014 18:59:41 GMT
|
54
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,52 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://api.madmimi.com/audience_members/test@example.com/update_email
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: username=test%40example.com&api_key=TEST_API_KEY&email=test%40example.com&new_email=updated%40example.com
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 400
|
13
|
+
message: Bad Request
|
14
|
+
headers:
|
15
|
+
Date:
|
16
|
+
- Sun, 07 Sep 2014 18:59:43 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=d9cc75a4f629d15c61d623fe9a4255c791410116383162; 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
|
+
Cache-Control:
|
32
|
+
- no-cache
|
33
|
+
X-Request-Id:
|
34
|
+
- 0d1dacbd44a0b1e4f14d52ada8dc3ffa
|
35
|
+
X-Rack-Cache:
|
36
|
+
- invalidate, pass
|
37
|
+
Status:
|
38
|
+
- 400 Bad Request
|
39
|
+
P3p:
|
40
|
+
- CP="CAO PSA OUR"
|
41
|
+
Vary:
|
42
|
+
- Accept-Encoding
|
43
|
+
Server:
|
44
|
+
- cloudflare-nginx
|
45
|
+
Cf-Ray:
|
46
|
+
- 16652522cd410479-FRA
|
47
|
+
body:
|
48
|
+
encoding: US-ASCII
|
49
|
+
string: Member test@example.com does not exist
|
50
|
+
http_version:
|
51
|
+
recorded_at: Sun, 07 Sep 2014 18:59:42 GMT
|
52
|
+
recorded_with: VCR 2.9.2
|