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,76 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.madmimi.com/audience_members/search.xml
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: username=test%40example.com&api_key=TEST_API_KEY&raw=false&query=test
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Date:
|
16
|
+
- Sun, 07 Sep 2014 20:05:11 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=d34a3f91f4605dfcf4b4aa7c6400fa0301410120310916; 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/"e515adc7659722de0c0fedbbbc8dff68"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- 822af838b50fb690e9dcfc10ca603ddd
|
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
|
+
- 1665850730f0088d-FRA
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<audience>\n <member
|
52
|
+
suppressed=\"false\">\n <first_name>test2</first_name>\n <last_name>csv2</last_name>\n
|
53
|
+
\ <email>csv_test2@example.com</email>\n <created_at>2014-09-07 19:32:52
|
54
|
+
+0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
55
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
56
|
+
\ <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n <custom_value_2/>\n
|
57
|
+
\ <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
58
|
+
\ <first_name>test</first_name>\n <last_name>csv</last_name>\n <email>csv_test@example.com</email>\n
|
59
|
+
\ <created_at>2014-09-07 19:32:52 +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 <custom_value/>\n <custom_value_1/>\n
|
62
|
+
\ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
63
|
+
\ <first_name/>\n <last_name/>\n <email>new_test2@example.com</email>\n
|
64
|
+
\ <created_at>2014-09-05 21:11:24 +0300</created_at>\n <city/>\n <phone/>\n
|
65
|
+
\ <company>Dummy Company</company>\n <title/>\n <address/>\n <state/>\n
|
66
|
+
\ <zip/>\n <country/>\n <confirmed/>\n <custom_field_1/>\n <custom_value/>\n
|
67
|
+
\ <custom_value_1/>\n <custom_value_2/>\n <lists>\n </lists>\n
|
68
|
+
\ </member>\n <member suppressed=\"false\">\n <first_name>New</first_name>\n
|
69
|
+
\ <last_name>Test</last_name>\n <email>new_test@example.com</email>\n
|
70
|
+
\ <created_at>2014-09-05 21:10:19 +0300</created_at>\n <city/>\n <phone/>\n
|
71
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
72
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
|
73
|
+
\ <custom_value_2/>\n <lists>\n </lists>\n </member>\n</audience>\n"
|
74
|
+
http_version:
|
75
|
+
recorded_at: Sun, 07 Sep 2014 20:05:10 GMT
|
76
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,86 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.madmimi.com/audience_members/search.xml
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: username=test%40example.com&api_key=TEST_API_KEY&raw=true&query=test
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Date:
|
16
|
+
- Sun, 07 Sep 2014 20:05:12 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=d00ca363bdd860f49d6ba6d228fe70a061410120311719; 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/"40b71d703a49aa091853678b1cb75425"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- 754e507a8814090e317a3336eaf95ab6
|
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
|
+
- 1665850c3c98088d-FRA
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<audience>\n <member
|
52
|
+
suppressed=\"true\">\n <first_name/>\n <last_name/>\n <email>test@example.com</email>\n
|
53
|
+
\ <created_at>2014-09-07 22:59:46 +0300</created_at>\n <city/>\n <phone/>\n
|
54
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
55
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
|
56
|
+
\ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
57
|
+
\ <first_name>test2</first_name>\n <last_name>csv2</last_name>\n <email>csv_test2@example.com</email>\n
|
58
|
+
\ <created_at>2014-09-07 19:32:52 +0300</created_at>\n <city/>\n <phone/>\n
|
59
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
60
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
|
61
|
+
\ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
62
|
+
\ <first_name>test</first_name>\n <last_name>csv</last_name>\n <email>csv_test@example.com</email>\n
|
63
|
+
\ <created_at>2014-09-07 19:32:52 +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 <custom_value/>\n <custom_value_1/>\n
|
66
|
+
\ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
67
|
+
\ <first_name/>\n <last_name/>\n <email>new_test2@example.com</email>\n
|
68
|
+
\ <created_at>2014-09-05 21:11:24 +0300</created_at>\n <city/>\n <phone/>\n
|
69
|
+
\ <company>Dummy Company</company>\n <title/>\n <address/>\n <state/>\n
|
70
|
+
\ <zip/>\n <country/>\n <confirmed/>\n <custom_field_1/>\n <custom_value/>\n
|
71
|
+
\ <custom_value_1/>\n <custom_value_2/>\n <lists>\n </lists>\n
|
72
|
+
\ </member>\n <member suppressed=\"false\">\n <first_name>New</first_name>\n
|
73
|
+
\ <last_name>Test</last_name>\n <email>new_test@example.com</email>\n
|
74
|
+
\ <created_at>2014-09-05 21:10:19 +0300</created_at>\n <city/>\n <phone/>\n
|
75
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
76
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
|
77
|
+
\ <custom_value_2/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"true\">\n
|
78
|
+
\ <first_name/>\n <last_name/>\n <email>new_test1@example.com</email>\n
|
79
|
+
\ <created_at>2014-09-04 21:32:31 +0300</created_at>\n <city/>\n <phone/>\n
|
80
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
81
|
+
\ <confirmed/>\n <custom_field_1/>\n <custom_value/>\n <custom_value_1/>\n
|
82
|
+
\ <custom_value_2/>\n <lists>\n <list>list 1</list>\n <list>list
|
83
|
+
2</list>\n </lists>\n </member>\n</audience>\n"
|
84
|
+
http_version:
|
85
|
+
recorded_at: Sun, 07 Sep 2014 20:05:11 GMT
|
86
|
+
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
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: username=test%40example.com&api_key=TEST_API_KEY&csv_file=email%2Cfirstname%2Clastname%0Acsv_test%40example.com%2Ctest%2Ccsv%0Acsv_test2%40example.com%2Ctest2%2Ccsv2%0A
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: OK
|
14
|
+
headers:
|
15
|
+
Date:
|
16
|
+
- Sun, 07 Sep 2014 16:32:51 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=d6021d905207a347f8b54a72f8cdb71f31410107571553; 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/"dc4775f703d60d9511a721c34559c074"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- 9ad84b9bbea9e0553e0933b81dc29220
|
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
|
+
- 16644e02369c088d-FRA
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: '140368442'
|
52
|
+
http_version:
|
53
|
+
recorded_at: Sun, 07 Sep 2014 16:32:51 GMT
|
54
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,273 @@
|
|
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:32:52 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=d8c418015c1f4872a01fa549dcbc44f251410107572427; 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/"a57d2ee26d0a79f7caa159ea649dedaf"
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- 8b8b97677223a3648dd841829d5903ee
|
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
|
+
- 16644e07a9bf088d-FRA
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<audience count=\"18\"
|
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>test2</first_name>\n <last_name>csv2</last_name>\n <email>csv_test2@example.com</email>\n
|
59
|
+
\ <created_at>2014-09-07 19:32:52 +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>test</first_name>\n <last_name>csv</last_name>\n
|
63
|
+
\ <email>csv_test@example.com</email>\n <created_at>2014-09-07 19:32:52
|
64
|
+
+0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
65
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
66
|
+
\ <custom_field_1/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
67
|
+
\ <first_name/>\n <last_name/>\n <email>maksim.gladkov@gmail.com</email>\n
|
68
|
+
\ <created_at>2014-09-05 22:25:20 +0300</created_at>\n <city/>\n <phone/>\n
|
69
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
70
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
71
|
+
\ <member suppressed=\"false\">\n <first_name/>\n <last_name/>\n <email>multi1@example.com</email>\n
|
72
|
+
\ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
|
73
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
74
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
75
|
+
\ <member suppressed=\"false\">\n <first_name/>\n <last_name/>\n <email>multi1_1@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>Multi</first_name>\n <last_name/>\n
|
80
|
+
\ <email>multi1_2@example.com</email>\n <created_at>2014-09-05 11:55:39
|
81
|
+
+0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
82
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
83
|
+
\ <custom_field_1/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
84
|
+
\ <first_name/>\n <last_name>Third</last_name>\n <email>multi1_3@example.com</email>\n
|
85
|
+
\ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
|
86
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
87
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
88
|
+
\ <member suppressed=\"false\">\n <first_name/>\n <last_name/>\n <email>multi1_4@example.com</email>\n
|
89
|
+
\ <created_at>2014-09-05 11:55:39 +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>Custom Value</custom_field_1>\n <lists>\n
|
92
|
+
\ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>Multi</first_name>\n
|
93
|
+
\ <last_name/>\n <email>multi2@example.com</email>\n <created_at>2014-09-05
|
94
|
+
11:50:51 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
95
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
96
|
+
\ <custom_field_1/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
97
|
+
\ <first_name/>\n <last_name>Third</last_name>\n <email>multi3@example.com</email>\n
|
98
|
+
\ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
|
99
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
100
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
101
|
+
\ <member suppressed=\"false\">\n <first_name/>\n <last_name/>\n <email>multi4@example.com</email>\n
|
102
|
+
\ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
|
103
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
104
|
+
\ <confirmed/>\n <custom_field_1>Custom Value</custom_field_1>\n <lists>\n
|
105
|
+
\ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name/>\n
|
106
|
+
\ <last_name/>\n <email>new_test1@example.com</email>\n <created_at>2014-09-04
|
107
|
+
21:32:31 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
108
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
109
|
+
\ <custom_field_1/>\n <lists>\n <list membership_created_at=\"2014-09-04
|
110
|
+
18:32:31 UTC\">list 1</list>\n <list membership_created_at=\"2014-09-04
|
111
|
+
18:32:45 UTC\">list 2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
112
|
+
\ <first_name/>\n <last_name/>\n <email>new_test2@example.com</email>\n
|
113
|
+
\ <created_at>2014-09-05 21:11:24 +0300</created_at>\n <city/>\n <phone/>\n
|
114
|
+
\ <company>Dummy Company</company>\n <title/>\n <address/>\n <state/>\n
|
115
|
+
\ <zip/>\n <country/>\n <confirmed/>\n <custom_field_1/>\n <lists>\n
|
116
|
+
\ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>New</first_name>\n
|
117
|
+
\ <last_name>Test</last_name>\n <email>new_test@example.com</email>\n
|
118
|
+
\ <created_at>2014-09-05 21:10:19 +0300</created_at>\n <city/>\n <phone/>\n
|
119
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
120
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
121
|
+
\ <member suppressed=\"false\">\n <first_name>New</first_name>\n <last_name/>\n
|
122
|
+
\ <email>new_user1@example.com</email>\n <created_at>2014-09-05 22:17:39
|
123
|
+
+0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
124
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
125
|
+
\ <custom_field_1/>\n <lists>\n <list membership_created_at=\"2014-09-05
|
126
|
+
19:17:39 UTC\">list 2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
127
|
+
\ <first_name>Single</first_name>\n <last_name>One</last_name>\n <email>single1@example.com</email>\n
|
128
|
+
\ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
|
129
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
130
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
131
|
+
\ <member suppressed=\"false\">\n <first_name>Single</first_name>\n <last_name>One</last_name>\n
|
132
|
+
\ <email>single1_1@example.com</email>\n <created_at>2014-09-05 11:55:38
|
133
|
+
+0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
134
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
135
|
+
\ <custom_field_1/>\n <lists>\n </lists>\n </member>\n</audience>\n"
|
136
|
+
http_version:
|
137
|
+
recorded_at: Sun, 07 Sep 2014 16:32:52 GMT
|
138
|
+
- request:
|
139
|
+
method: get
|
140
|
+
uri: http://api.madmimi.com/audience_members.xml
|
141
|
+
body:
|
142
|
+
encoding: US-ASCII
|
143
|
+
string: username=test%40example.com&api_key=TEST_API_KEY
|
144
|
+
headers: {}
|
145
|
+
response:
|
146
|
+
status:
|
147
|
+
code: 200
|
148
|
+
message: OK
|
149
|
+
headers:
|
150
|
+
Date:
|
151
|
+
- Sun, 07 Sep 2014 16:32:53 GMT
|
152
|
+
Content-Type:
|
153
|
+
- application/xml; charset=utf-8
|
154
|
+
Transfer-Encoding:
|
155
|
+
- chunked
|
156
|
+
Connection:
|
157
|
+
- keep-alive
|
158
|
+
Set-Cookie:
|
159
|
+
- __cfduid=dd978195226eeebdceacdf4c3fe9a0ca31410107572910; expires=Mon, 23-Dec-2019
|
160
|
+
23:50:00 GMT; path=/; domain=.madmimi.com; HttpOnly
|
161
|
+
- chrome_token=; domain=madmimi.com; path=/; expires=Thu, 01-Jan-1970 00:00:00
|
162
|
+
GMT
|
163
|
+
- non_eu=true; path=/
|
164
|
+
X-Ua-Compatible:
|
165
|
+
- IE=Edge,chrome=1
|
166
|
+
Etag:
|
167
|
+
- W/"a57d2ee26d0a79f7caa159ea649dedaf"
|
168
|
+
Cache-Control:
|
169
|
+
- max-age=0, private, must-revalidate
|
170
|
+
X-Request-Id:
|
171
|
+
- 272ba6283cd738afe9841f40645ea205
|
172
|
+
X-Rack-Cache:
|
173
|
+
- miss
|
174
|
+
Status:
|
175
|
+
- 200 OK
|
176
|
+
Vary:
|
177
|
+
- Accept-Encoding
|
178
|
+
P3p:
|
179
|
+
- CP="CAO PSA OUR"
|
180
|
+
Server:
|
181
|
+
- cloudflare-nginx
|
182
|
+
Cf-Ray:
|
183
|
+
- 16644e0ab7e7088d-FRA
|
184
|
+
body:
|
185
|
+
encoding: US-ASCII
|
186
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<audience count=\"18\"
|
187
|
+
total_pages=\"1\" per_page=\"30\" page=\"1\">\n <member suppressed=\"false\">\n
|
188
|
+
\ <first_name></first_name>\n <last_name></last_name>\n <email>add_to_list@example.com</email>\n
|
189
|
+
\ <created_at>2014-09-05 21:12:22 +0300</created_at>\n <city></city>\n
|
190
|
+
\ <phone></phone>\n <company></company>\n <title></title>\n <address></address>\n
|
191
|
+
\ <state></state>\n <zip></zip>\n <country></country>\n <confirmed/>\n
|
192
|
+
\ <custom_field_1/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
193
|
+
\ <first_name>test2</first_name>\n <last_name>csv2</last_name>\n <email>csv_test2@example.com</email>\n
|
194
|
+
\ <created_at>2014-09-07 19:32:52 +0300</created_at>\n <city/>\n <phone/>\n
|
195
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
196
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
197
|
+
\ <member suppressed=\"false\">\n <first_name>test</first_name>\n <last_name>csv</last_name>\n
|
198
|
+
\ <email>csv_test@example.com</email>\n <created_at>2014-09-07 19:32:52
|
199
|
+
+0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
200
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
201
|
+
\ <custom_field_1/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
202
|
+
\ <first_name/>\n <last_name/>\n <email>maksim.gladkov@gmail.com</email>\n
|
203
|
+
\ <created_at>2014-09-05 22:25:20 +0300</created_at>\n <city/>\n <phone/>\n
|
204
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
205
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
206
|
+
\ <member suppressed=\"false\">\n <first_name/>\n <last_name/>\n <email>multi1@example.com</email>\n
|
207
|
+
\ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
|
208
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
209
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
210
|
+
\ <member suppressed=\"false\">\n <first_name/>\n <last_name/>\n <email>multi1_1@example.com</email>\n
|
211
|
+
\ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
|
212
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
213
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
214
|
+
\ <member suppressed=\"false\">\n <first_name>Multi</first_name>\n <last_name/>\n
|
215
|
+
\ <email>multi1_2@example.com</email>\n <created_at>2014-09-05 11:55:39
|
216
|
+
+0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
217
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
218
|
+
\ <custom_field_1/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
219
|
+
\ <first_name/>\n <last_name>Third</last_name>\n <email>multi1_3@example.com</email>\n
|
220
|
+
\ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
|
221
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
222
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
223
|
+
\ <member suppressed=\"false\">\n <first_name/>\n <last_name/>\n <email>multi1_4@example.com</email>\n
|
224
|
+
\ <created_at>2014-09-05 11:55:39 +0300</created_at>\n <city/>\n <phone/>\n
|
225
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
226
|
+
\ <confirmed/>\n <custom_field_1>Custom Value</custom_field_1>\n <lists>\n
|
227
|
+
\ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>Multi</first_name>\n
|
228
|
+
\ <last_name/>\n <email>multi2@example.com</email>\n <created_at>2014-09-05
|
229
|
+
11:50:51 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
230
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
231
|
+
\ <custom_field_1/>\n <lists>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
232
|
+
\ <first_name/>\n <last_name>Third</last_name>\n <email>multi3@example.com</email>\n
|
233
|
+
\ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
|
234
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
235
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
236
|
+
\ <member suppressed=\"false\">\n <first_name/>\n <last_name/>\n <email>multi4@example.com</email>\n
|
237
|
+
\ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
|
238
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
239
|
+
\ <confirmed/>\n <custom_field_1>Custom Value</custom_field_1>\n <lists>\n
|
240
|
+
\ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name/>\n
|
241
|
+
\ <last_name/>\n <email>new_test1@example.com</email>\n <created_at>2014-09-04
|
242
|
+
21:32:31 +0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
243
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
244
|
+
\ <custom_field_1/>\n <lists>\n <list membership_created_at=\"2014-09-04
|
245
|
+
18:32:31 UTC\">list 1</list>\n <list membership_created_at=\"2014-09-04
|
246
|
+
18:32:45 UTC\">list 2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
247
|
+
\ <first_name/>\n <last_name/>\n <email>new_test2@example.com</email>\n
|
248
|
+
\ <created_at>2014-09-05 21:11:24 +0300</created_at>\n <city/>\n <phone/>\n
|
249
|
+
\ <company>Dummy Company</company>\n <title/>\n <address/>\n <state/>\n
|
250
|
+
\ <zip/>\n <country/>\n <confirmed/>\n <custom_field_1/>\n <lists>\n
|
251
|
+
\ </lists>\n </member>\n <member suppressed=\"false\">\n <first_name>New</first_name>\n
|
252
|
+
\ <last_name>Test</last_name>\n <email>new_test@example.com</email>\n
|
253
|
+
\ <created_at>2014-09-05 21:10:19 +0300</created_at>\n <city/>\n <phone/>\n
|
254
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
255
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
256
|
+
\ <member suppressed=\"false\">\n <first_name>New</first_name>\n <last_name/>\n
|
257
|
+
\ <email>new_user1@example.com</email>\n <created_at>2014-09-05 22:17:39
|
258
|
+
+0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
259
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
260
|
+
\ <custom_field_1/>\n <lists>\n <list membership_created_at=\"2014-09-05
|
261
|
+
19:17:39 UTC\">list 2</list>\n </lists>\n </member>\n <member suppressed=\"false\">\n
|
262
|
+
\ <first_name>Single</first_name>\n <last_name>One</last_name>\n <email>single1@example.com</email>\n
|
263
|
+
\ <created_at>2014-09-05 11:50:51 +0300</created_at>\n <city/>\n <phone/>\n
|
264
|
+
\ <company/>\n <title/>\n <address/>\n <state/>\n <zip/>\n <country/>\n
|
265
|
+
\ <confirmed/>\n <custom_field_1/>\n <lists>\n </lists>\n </member>\n
|
266
|
+
\ <member suppressed=\"false\">\n <first_name>Single</first_name>\n <last_name>One</last_name>\n
|
267
|
+
\ <email>single1_1@example.com</email>\n <created_at>2014-09-05 11:55:38
|
268
|
+
+0300</created_at>\n <city/>\n <phone/>\n <company/>\n <title/>\n
|
269
|
+
\ <address/>\n <state/>\n <zip/>\n <country/>\n <confirmed/>\n
|
270
|
+
\ <custom_field_1/>\n <lists>\n </lists>\n </member>\n</audience>\n"
|
271
|
+
http_version:
|
272
|
+
recorded_at: Sun, 07 Sep 2014 16:32:52 GMT
|
273
|
+
recorded_with: VCR 2.9.2
|