contactology 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/.infinity_test +16 -0
- data/.rspec +3 -0
- data/.rvmrc +41 -0
- data/.watchr +36 -0
- data/Gemfile +6 -0
- data/Rakefile +1 -0
- data/contactology.gemspec +28 -0
- data/lib/contactology.rb +125 -0
- data/lib/contactology/api.rb +80 -0
- data/lib/contactology/basic_object.rb +21 -0
- data/lib/contactology/campaign.rb +127 -0
- data/lib/contactology/campaign/preview.rb +11 -0
- data/lib/contactology/campaigns.rb +2 -0
- data/lib/contactology/campaigns/standard.rb +80 -0
- data/lib/contactology/campaigns/transactional.rb +58 -0
- data/lib/contactology/configuration.rb +42 -0
- data/lib/contactology/contact.rb +193 -0
- data/lib/contactology/errors.rb +4 -0
- data/lib/contactology/issue.rb +24 -0
- data/lib/contactology/issues.rb +18 -0
- data/lib/contactology/list.rb +192 -0
- data/lib/contactology/list_proxy.rb +25 -0
- data/lib/contactology/parser.rb +5 -0
- data/lib/contactology/send_result.rb +35 -0
- data/lib/contactology/stash.rb +29 -0
- data/lib/contactology/transactional_message.rb +38 -0
- data/lib/contactology/version.rb +3 -0
- data/spec/factories/campaigns.rb +18 -0
- data/spec/factories/contacts.rb +3 -0
- data/spec/factories/issues.rb +9 -0
- data/spec/factories/lists.rb +3 -0
- data/spec/factories/transactional_messages.rb +5 -0
- data/spec/fixtures/net/campaign/destroy.yml +246 -0
- data/spec/fixtures/net/campaign/find/failure.yml +36 -0
- data/spec/fixtures/net/campaign/find/success.yml +176 -0
- data/spec/fixtures/net/campaign/find_by_name/failure.yml +36 -0
- data/spec/fixtures/net/campaign/find_by_name/success.yml +211 -0
- data/spec/fixtures/net/campaign/preview.yml +106 -0
- data/spec/fixtures/net/campaigns/standard/create/failure.yml +106 -0
- data/spec/fixtures/net/campaigns/standard/create/invalid.yml +141 -0
- data/spec/fixtures/net/campaigns/standard/create/success.yml +176 -0
- data/spec/fixtures/net/campaigns/standard/send_campaign/failure.yml +316 -0
- data/spec/fixtures/net/campaigns/standard/send_campaign/success.yml +316 -0
- data/spec/fixtures/net/campaigns/transactional/create/failure.yml +36 -0
- data/spec/fixtures/net/campaigns/transactional/create/success.yml +71 -0
- data/spec/fixtures/net/contact/active.yml +106 -0
- data/spec/fixtures/net/contact/change_email/success.yml +176 -0
- data/spec/fixtures/net/contact/change_email/unknown.yml +36 -0
- data/spec/fixtures/net/contact/create.yml +106 -0
- data/spec/fixtures/net/contact/destroy.yml +141 -0
- data/spec/fixtures/net/contact/find/active.yml +106 -0
- data/spec/fixtures/net/contact/find/suppressed.yml +141 -0
- data/spec/fixtures/net/contact/find/unknown.yml +36 -0
- data/spec/fixtures/net/contact/lists/empty.yml +106 -0
- data/spec/fixtures/net/contact/lists/full.yml +246 -0
- data/spec/fixtures/net/contact/lists/unknown.yml +71 -0
- data/spec/fixtures/net/contact/suppress.yml +141 -0
- data/spec/fixtures/net/list/all.yml +141 -0
- data/spec/fixtures/net/list/create.yml +106 -0
- data/spec/fixtures/net/list/destroy.yml +176 -0
- data/spec/fixtures/net/list/find/success.yml +141 -0
- data/spec/fixtures/net/list/find/unknown.yml +36 -0
- data/spec/fixtures/net/list/import/success.yml +351 -0
- data/spec/fixtures/net/list/subscribe/success.yml +211 -0
- data/spec/fixtures/net/list/unsubscribe/success.yml +246 -0
- data/spec/fixtures/net/transactional_message/send_message/failure.yml +176 -0
- data/spec/fixtures/net/transactional_message/send_message/success.yml +176 -0
- data/spec/models/contactology/api_spec.rb +51 -0
- data/spec/models/contactology/campaign_spec.rb +75 -0
- data/spec/models/contactology/campaigns/standard_spec.rb +84 -0
- data/spec/models/contactology/campaigns/transactional_spec.rb +28 -0
- data/spec/models/contactology/configuration_spec.rb +29 -0
- data/spec/models/contactology/contact_spec.rb +175 -0
- data/spec/models/contactology/issues_spec.rb +34 -0
- data/spec/models/contactology/list_spec.rb +125 -0
- data/spec/models/contactology/send_result_spec.rb +65 -0
- data/spec/models/contactology/stash_spec.rb +65 -0
- data/spec/models/contactology/transactional_message_spec.rb +65 -0
- data/spec/models/contactology_spec.rb +67 -0
- data/spec/requests/contacts_spec.rb +4 -0
- data/spec/spec_helper.rb +15 -0
- data/spec/support/contactology.rb +34 -0
- data/spec/support/factory_girl.rb +19 -0
- data/spec/support/vcr.rb +11 -0
- metadata +282 -0
@@ -0,0 +1,106 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?key=%{API_KEY}&method=List_Add_Public&name=campaign-standard-create-failure
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
accept:
|
9
|
+
- application/json
|
10
|
+
user-agent:
|
11
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
12
|
+
response: !ruby/struct:VCR::Response
|
13
|
+
status: !ruby/struct:VCR::ResponseStatus
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
x-powered-by:
|
18
|
+
- PHP/5.2.10
|
19
|
+
set-cookie:
|
20
|
+
- PHPSESSID=169c3016bcf1752199bd9a87ef582f7f; path=/
|
21
|
+
expires:
|
22
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
23
|
+
cache-control:
|
24
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
25
|
+
pragma:
|
26
|
+
- no-cache
|
27
|
+
content-type:
|
28
|
+
- text/plain;charset=UTF-8
|
29
|
+
transfer-encoding:
|
30
|
+
- chunked
|
31
|
+
date:
|
32
|
+
- Wed, 03 Aug 2011 15:26:57 GMT
|
33
|
+
server:
|
34
|
+
- lighttpd/1.4.28
|
35
|
+
body: "42"
|
36
|
+
http_version: "1.1"
|
37
|
+
- !ruby/struct:VCR::HTTPInteraction
|
38
|
+
request: !ruby/struct:VCR::Request
|
39
|
+
method: :get
|
40
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?key=%{API_KEY}&listId=42&method=List_Get_Info
|
41
|
+
body:
|
42
|
+
headers:
|
43
|
+
accept:
|
44
|
+
- application/json
|
45
|
+
user-agent:
|
46
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
47
|
+
response: !ruby/struct:VCR::Response
|
48
|
+
status: !ruby/struct:VCR::ResponseStatus
|
49
|
+
code: 200
|
50
|
+
message: OK
|
51
|
+
headers:
|
52
|
+
x-powered-by:
|
53
|
+
- PHP/5.2.10
|
54
|
+
set-cookie:
|
55
|
+
- PHPSESSID=ae7315dc2aa6211436a7d4b96576259e; path=/
|
56
|
+
expires:
|
57
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
58
|
+
cache-control:
|
59
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
60
|
+
pragma:
|
61
|
+
- no-cache
|
62
|
+
content-type:
|
63
|
+
- text/plain;charset=UTF-8
|
64
|
+
transfer-encoding:
|
65
|
+
- chunked
|
66
|
+
date:
|
67
|
+
- Wed, 03 Aug 2011 15:26:57 GMT
|
68
|
+
server:
|
69
|
+
- lighttpd/1.4.28
|
70
|
+
body: "{\"listId\":\"42\",\"name\":\"campaign-standard-create-failure\",\"description\":null,\"type\":\"public\",\"optIn\":false}"
|
71
|
+
http_version: "1.1"
|
72
|
+
- !ruby/struct:VCR::HTTPInteraction
|
73
|
+
request: !ruby/struct:VCR::Request
|
74
|
+
method: :get
|
75
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?key=%{API_KEY}&listId=42&method=List_Delete
|
76
|
+
body:
|
77
|
+
headers:
|
78
|
+
accept:
|
79
|
+
- application/json
|
80
|
+
user-agent:
|
81
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
82
|
+
response: !ruby/struct:VCR::Response
|
83
|
+
status: !ruby/struct:VCR::ResponseStatus
|
84
|
+
code: 200
|
85
|
+
message: OK
|
86
|
+
headers:
|
87
|
+
x-powered-by:
|
88
|
+
- PHP/5.2.10
|
89
|
+
set-cookie:
|
90
|
+
- PHPSESSID=ef8cae5a6e1861109f97d5efd77f8d02; path=/
|
91
|
+
expires:
|
92
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
93
|
+
cache-control:
|
94
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
95
|
+
pragma:
|
96
|
+
- no-cache
|
97
|
+
content-type:
|
98
|
+
- text/plain;charset=UTF-8
|
99
|
+
transfer-encoding:
|
100
|
+
- chunked
|
101
|
+
date:
|
102
|
+
- Wed, 03 Aug 2011 15:26:58 GMT
|
103
|
+
server:
|
104
|
+
- lighttpd/1.4.28
|
105
|
+
body: "true"
|
106
|
+
http_version: "1.1"
|
@@ -0,0 +1,141 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?key=%{API_KEY}&method=List_Add_Public&name=campaign-standard-create-invalid
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
accept:
|
9
|
+
- application/json
|
10
|
+
user-agent:
|
11
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
12
|
+
response: !ruby/struct:VCR::Response
|
13
|
+
status: !ruby/struct:VCR::ResponseStatus
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
x-powered-by:
|
18
|
+
- PHP/5.2.10
|
19
|
+
set-cookie:
|
20
|
+
- PHPSESSID=30e4338f21ac42e37ca0ccaa4c501e87; path=/
|
21
|
+
expires:
|
22
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
23
|
+
cache-control:
|
24
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
25
|
+
pragma:
|
26
|
+
- no-cache
|
27
|
+
content-type:
|
28
|
+
- text/plain;charset=UTF-8
|
29
|
+
transfer-encoding:
|
30
|
+
- chunked
|
31
|
+
date:
|
32
|
+
- Wed, 03 Aug 2011 15:29:09 GMT
|
33
|
+
server:
|
34
|
+
- lighttpd/1.4.28
|
35
|
+
body: "45"
|
36
|
+
http_version: "1.1"
|
37
|
+
- !ruby/struct:VCR::HTTPInteraction
|
38
|
+
request: !ruby/struct:VCR::Request
|
39
|
+
method: :get
|
40
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?key=%{API_KEY}&listId=45&method=List_Get_Info
|
41
|
+
body:
|
42
|
+
headers:
|
43
|
+
accept:
|
44
|
+
- application/json
|
45
|
+
user-agent:
|
46
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
47
|
+
response: !ruby/struct:VCR::Response
|
48
|
+
status: !ruby/struct:VCR::ResponseStatus
|
49
|
+
code: 200
|
50
|
+
message: OK
|
51
|
+
headers:
|
52
|
+
x-powered-by:
|
53
|
+
- PHP/5.2.10
|
54
|
+
set-cookie:
|
55
|
+
- PHPSESSID=2b36a880a15baa45e9bf9b9609e4caf7; path=/
|
56
|
+
expires:
|
57
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
58
|
+
cache-control:
|
59
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
60
|
+
pragma:
|
61
|
+
- no-cache
|
62
|
+
content-type:
|
63
|
+
- text/plain;charset=UTF-8
|
64
|
+
transfer-encoding:
|
65
|
+
- chunked
|
66
|
+
date:
|
67
|
+
- Wed, 03 Aug 2011 15:29:15 GMT
|
68
|
+
server:
|
69
|
+
- lighttpd/1.4.28
|
70
|
+
body: "{\"listId\":\"45\",\"name\":\"campaign-standard-create-invalid\",\"description\":null,\"type\":\"public\",\"optIn\":false}"
|
71
|
+
http_version: "1.1"
|
72
|
+
- !ruby/struct:VCR::HTTPInteraction
|
73
|
+
request: !ruby/struct:VCR::Request
|
74
|
+
method: :get
|
75
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?campaignName=factory%20campaign&key=%{API_KEY}&method=Campaign_Create_Standard&senderEmail=bad@example&senderName=Nate%20Bibler&subject=Factory%20Campaign%20Message&content%5Btext%5D=This%20is%20a%20good%20message!%20%7BCOMPANY_ADDRESS%7D&recipients%5Blist%5D=45
|
76
|
+
body:
|
77
|
+
headers:
|
78
|
+
accept:
|
79
|
+
- application/json
|
80
|
+
user-agent:
|
81
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
82
|
+
response: !ruby/struct:VCR::Response
|
83
|
+
status: !ruby/struct:VCR::ResponseStatus
|
84
|
+
code: 200
|
85
|
+
message: OK
|
86
|
+
headers:
|
87
|
+
x-powered-by:
|
88
|
+
- PHP/5.2.10
|
89
|
+
set-cookie:
|
90
|
+
- PHPSESSID=87191981010b2d331d569286798b50c0; path=/
|
91
|
+
expires:
|
92
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
93
|
+
cache-control:
|
94
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
95
|
+
pragma:
|
96
|
+
- no-cache
|
97
|
+
content-type:
|
98
|
+
- text/plain;charset=UTF-8
|
99
|
+
transfer-encoding:
|
100
|
+
- chunked
|
101
|
+
date:
|
102
|
+
- Wed, 03 Aug 2011 15:29:08 GMT
|
103
|
+
server:
|
104
|
+
- lighttpd/1.4.28
|
105
|
+
body: "{\"result\":\"error\",\"message\":\"Input Error: Invalid e-mail provided for field senderEmail - got bad@example\",\"code\":600}"
|
106
|
+
http_version: "1.1"
|
107
|
+
- !ruby/struct:VCR::HTTPInteraction
|
108
|
+
request: !ruby/struct:VCR::Request
|
109
|
+
method: :get
|
110
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?key=%{API_KEY}&listId=45&method=List_Delete
|
111
|
+
body:
|
112
|
+
headers:
|
113
|
+
accept:
|
114
|
+
- application/json
|
115
|
+
user-agent:
|
116
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
117
|
+
response: !ruby/struct:VCR::Response
|
118
|
+
status: !ruby/struct:VCR::ResponseStatus
|
119
|
+
code: 200
|
120
|
+
message: OK
|
121
|
+
headers:
|
122
|
+
x-powered-by:
|
123
|
+
- PHP/5.2.10
|
124
|
+
set-cookie:
|
125
|
+
- PHPSESSID=2d1c6478e0119b6c8c5117a6a469ff81; path=/
|
126
|
+
expires:
|
127
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
128
|
+
cache-control:
|
129
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
130
|
+
pragma:
|
131
|
+
- no-cache
|
132
|
+
content-type:
|
133
|
+
- text/plain;charset=UTF-8
|
134
|
+
transfer-encoding:
|
135
|
+
- chunked
|
136
|
+
date:
|
137
|
+
- Wed, 03 Aug 2011 15:29:09 GMT
|
138
|
+
server:
|
139
|
+
- lighttpd/1.4.28
|
140
|
+
body: "true"
|
141
|
+
http_version: "1.1"
|
@@ -0,0 +1,176 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?key=%{API_KEY}&method=List_Add_Public&name=campaign-standard-create-success
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
accept:
|
9
|
+
- application/json
|
10
|
+
user-agent:
|
11
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
12
|
+
response: !ruby/struct:VCR::Response
|
13
|
+
status: !ruby/struct:VCR::ResponseStatus
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
x-powered-by:
|
18
|
+
- PHP/5.2.10
|
19
|
+
set-cookie:
|
20
|
+
- PHPSESSID=8292d7fcf14d19a6c3841b079e61db81; path=/
|
21
|
+
expires:
|
22
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
23
|
+
cache-control:
|
24
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
25
|
+
pragma:
|
26
|
+
- no-cache
|
27
|
+
content-type:
|
28
|
+
- text/plain;charset=UTF-8
|
29
|
+
transfer-encoding:
|
30
|
+
- chunked
|
31
|
+
date:
|
32
|
+
- Wed, 03 Aug 2011 15:22:51 GMT
|
33
|
+
server:
|
34
|
+
- lighttpd/1.4.28
|
35
|
+
body: "41"
|
36
|
+
http_version: "1.1"
|
37
|
+
- !ruby/struct:VCR::HTTPInteraction
|
38
|
+
request: !ruby/struct:VCR::Request
|
39
|
+
method: :get
|
40
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?key=%{API_KEY}&listId=41&method=List_Get_Info
|
41
|
+
body:
|
42
|
+
headers:
|
43
|
+
accept:
|
44
|
+
- application/json
|
45
|
+
user-agent:
|
46
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
47
|
+
response: !ruby/struct:VCR::Response
|
48
|
+
status: !ruby/struct:VCR::ResponseStatus
|
49
|
+
code: 200
|
50
|
+
message: OK
|
51
|
+
headers:
|
52
|
+
x-powered-by:
|
53
|
+
- PHP/5.2.10
|
54
|
+
set-cookie:
|
55
|
+
- PHPSESSID=ebadff7cfd7bb8d3e6ea2d6e254f515b; path=/
|
56
|
+
expires:
|
57
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
58
|
+
cache-control:
|
59
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
60
|
+
pragma:
|
61
|
+
- no-cache
|
62
|
+
content-type:
|
63
|
+
- text/plain;charset=UTF-8
|
64
|
+
transfer-encoding:
|
65
|
+
- chunked
|
66
|
+
date:
|
67
|
+
- Wed, 03 Aug 2011 15:22:52 GMT
|
68
|
+
server:
|
69
|
+
- lighttpd/1.4.28
|
70
|
+
body: "{\"listId\":\"41\",\"name\":\"campaign-standard-create-success\",\"description\":null,\"type\":\"public\",\"optIn\":false}"
|
71
|
+
http_version: "1.1"
|
72
|
+
- !ruby/struct:VCR::HTTPInteraction
|
73
|
+
request: !ruby/struct:VCR::Request
|
74
|
+
method: :get
|
75
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?campaignName=factory%20campaign&key=%{API_KEY}&method=Campaign_Create_Standard&senderEmail=nate@envylabs.com&senderName=Nate%20Bibler&subject=Factory%20Campaign%20Message&content%5Btext%5D=This%20is%20a%20good%20message!%20%7BCOMPANY_ADDRESS%7D&recipients%5Blist%5D=41
|
76
|
+
body:
|
77
|
+
headers:
|
78
|
+
accept:
|
79
|
+
- application/json
|
80
|
+
user-agent:
|
81
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
82
|
+
response: !ruby/struct:VCR::Response
|
83
|
+
status: !ruby/struct:VCR::ResponseStatus
|
84
|
+
code: 200
|
85
|
+
message: OK
|
86
|
+
headers:
|
87
|
+
x-powered-by:
|
88
|
+
- PHP/5.2.10
|
89
|
+
set-cookie:
|
90
|
+
- PHPSESSID=1e4f34be0a57d06382ddc327aac645e4; path=/
|
91
|
+
expires:
|
92
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
93
|
+
cache-control:
|
94
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
95
|
+
pragma:
|
96
|
+
- no-cache
|
97
|
+
content-type:
|
98
|
+
- text/plain;charset=UTF-8
|
99
|
+
transfer-encoding:
|
100
|
+
- chunked
|
101
|
+
date:
|
102
|
+
- Wed, 03 Aug 2011 15:23:03 GMT
|
103
|
+
server:
|
104
|
+
- lighttpd/1.4.28
|
105
|
+
body: "12"
|
106
|
+
http_version: "1.1"
|
107
|
+
- !ruby/struct:VCR::HTTPInteraction
|
108
|
+
request: !ruby/struct:VCR::Request
|
109
|
+
method: :get
|
110
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?key=%{API_KEY}&listId=41&method=List_Delete
|
111
|
+
body:
|
112
|
+
headers:
|
113
|
+
accept:
|
114
|
+
- application/json
|
115
|
+
user-agent:
|
116
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
117
|
+
response: !ruby/struct:VCR::Response
|
118
|
+
status: !ruby/struct:VCR::ResponseStatus
|
119
|
+
code: 200
|
120
|
+
message: OK
|
121
|
+
headers:
|
122
|
+
x-powered-by:
|
123
|
+
- PHP/5.2.10
|
124
|
+
set-cookie:
|
125
|
+
- PHPSESSID=d67ac59b924042aef7283f616fe4f907; path=/
|
126
|
+
expires:
|
127
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
128
|
+
cache-control:
|
129
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
130
|
+
pragma:
|
131
|
+
- no-cache
|
132
|
+
content-type:
|
133
|
+
- text/plain;charset=UTF-8
|
134
|
+
transfer-encoding:
|
135
|
+
- chunked
|
136
|
+
date:
|
137
|
+
- Wed, 03 Aug 2011 15:23:04 GMT
|
138
|
+
server:
|
139
|
+
- lighttpd/1.4.28
|
140
|
+
body: "true"
|
141
|
+
http_version: "1.1"
|
142
|
+
- !ruby/struct:VCR::HTTPInteraction
|
143
|
+
request: !ruby/struct:VCR::Request
|
144
|
+
method: :get
|
145
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?campaignId=12&key=%{API_KEY}&method=Campaign_Delete
|
146
|
+
body:
|
147
|
+
headers:
|
148
|
+
accept:
|
149
|
+
- application/json
|
150
|
+
user-agent:
|
151
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
152
|
+
response: !ruby/struct:VCR::Response
|
153
|
+
status: !ruby/struct:VCR::ResponseStatus
|
154
|
+
code: 200
|
155
|
+
message: OK
|
156
|
+
headers:
|
157
|
+
x-powered-by:
|
158
|
+
- PHP/5.2.10
|
159
|
+
set-cookie:
|
160
|
+
- PHPSESSID=f77e9980baf4d37214ff321089f422a2; path=/
|
161
|
+
expires:
|
162
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
163
|
+
cache-control:
|
164
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
165
|
+
pragma:
|
166
|
+
- no-cache
|
167
|
+
content-type:
|
168
|
+
- text/plain;charset=UTF-8
|
169
|
+
transfer-encoding:
|
170
|
+
- chunked
|
171
|
+
date:
|
172
|
+
- Wed, 03 Aug 2011 15:23:05 GMT
|
173
|
+
server:
|
174
|
+
- lighttpd/1.4.28
|
175
|
+
body: "true"
|
176
|
+
http_version: "1.1"
|
@@ -0,0 +1,316 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?key=%{API_KEY}&method=List_Add_Public&name=send-standard-campaign-failure
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
accept:
|
9
|
+
- application/json
|
10
|
+
user-agent:
|
11
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
12
|
+
response: !ruby/struct:VCR::Response
|
13
|
+
status: !ruby/struct:VCR::ResponseStatus
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
x-powered-by:
|
18
|
+
- PHP/5.2.10
|
19
|
+
set-cookie:
|
20
|
+
- PHPSESSID=7f42245ecac8b3a5fe835c2a536919d1; path=/
|
21
|
+
expires:
|
22
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
23
|
+
cache-control:
|
24
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
25
|
+
pragma:
|
26
|
+
- no-cache
|
27
|
+
content-type:
|
28
|
+
- text/plain;charset=UTF-8
|
29
|
+
transfer-encoding:
|
30
|
+
- chunked
|
31
|
+
date:
|
32
|
+
- Wed, 03 Aug 2011 15:27:12 GMT
|
33
|
+
server:
|
34
|
+
- lighttpd/1.4.28
|
35
|
+
body: "44"
|
36
|
+
http_version: "1.1"
|
37
|
+
- !ruby/struct:VCR::HTTPInteraction
|
38
|
+
request: !ruby/struct:VCR::Request
|
39
|
+
method: :get
|
40
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?key=%{API_KEY}&listId=44&method=List_Get_Info
|
41
|
+
body:
|
42
|
+
headers:
|
43
|
+
accept:
|
44
|
+
- application/json
|
45
|
+
user-agent:
|
46
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
47
|
+
response: !ruby/struct:VCR::Response
|
48
|
+
status: !ruby/struct:VCR::ResponseStatus
|
49
|
+
code: 200
|
50
|
+
message: OK
|
51
|
+
headers:
|
52
|
+
x-powered-by:
|
53
|
+
- PHP/5.2.10
|
54
|
+
set-cookie:
|
55
|
+
- PHPSESSID=cbd6fa0f9dd1511a8c8b31162d429932; path=/
|
56
|
+
expires:
|
57
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
58
|
+
cache-control:
|
59
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
60
|
+
pragma:
|
61
|
+
- no-cache
|
62
|
+
content-type:
|
63
|
+
- text/plain;charset=UTF-8
|
64
|
+
transfer-encoding:
|
65
|
+
- chunked
|
66
|
+
date:
|
67
|
+
- Wed, 03 Aug 2011 15:27:02 GMT
|
68
|
+
server:
|
69
|
+
- lighttpd/1.4.28
|
70
|
+
body: "{\"listId\":\"44\",\"name\":\"send-standard-campaign-failure\",\"description\":null,\"type\":\"public\",\"optIn\":false}"
|
71
|
+
http_version: "1.1"
|
72
|
+
- !ruby/struct:VCR::HTTPInteraction
|
73
|
+
request: !ruby/struct:VCR::Request
|
74
|
+
method: :get
|
75
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?email=factory-contact@example.com&key=%{API_KEY}&method=Contact_Add&optionalParameters%5BupdateCustomFields%5D=true
|
76
|
+
body:
|
77
|
+
headers:
|
78
|
+
accept:
|
79
|
+
- application/json
|
80
|
+
user-agent:
|
81
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
82
|
+
response: !ruby/struct:VCR::Response
|
83
|
+
status: !ruby/struct:VCR::ResponseStatus
|
84
|
+
code: 200
|
85
|
+
message: OK
|
86
|
+
headers:
|
87
|
+
x-powered-by:
|
88
|
+
- PHP/5.2.10
|
89
|
+
set-cookie:
|
90
|
+
- PHPSESSID=266882955207858196b399f0cc04ceb2; path=/
|
91
|
+
expires:
|
92
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
93
|
+
cache-control:
|
94
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
95
|
+
pragma:
|
96
|
+
- no-cache
|
97
|
+
content-type:
|
98
|
+
- text/plain;charset=UTF-8
|
99
|
+
transfer-encoding:
|
100
|
+
- chunked
|
101
|
+
date:
|
102
|
+
- Wed, 03 Aug 2011 15:27:14 GMT
|
103
|
+
server:
|
104
|
+
- lighttpd/1.4.28
|
105
|
+
body: "true"
|
106
|
+
http_version: "1.1"
|
107
|
+
- !ruby/struct:VCR::HTTPInteraction
|
108
|
+
request: !ruby/struct:VCR::Request
|
109
|
+
method: :get
|
110
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?email=factory-contact@example.com&key=%{API_KEY}&listId=44&method=List_Subscribe
|
111
|
+
body:
|
112
|
+
headers:
|
113
|
+
accept:
|
114
|
+
- application/json
|
115
|
+
user-agent:
|
116
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
117
|
+
response: !ruby/struct:VCR::Response
|
118
|
+
status: !ruby/struct:VCR::ResponseStatus
|
119
|
+
code: 200
|
120
|
+
message: OK
|
121
|
+
headers:
|
122
|
+
x-powered-by:
|
123
|
+
- PHP/5.2.10
|
124
|
+
set-cookie:
|
125
|
+
- PHPSESSID=da2099e0bfa490ca92d699147ecf3bbe; path=/
|
126
|
+
expires:
|
127
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
128
|
+
cache-control:
|
129
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
130
|
+
pragma:
|
131
|
+
- no-cache
|
132
|
+
content-type:
|
133
|
+
- text/plain;charset=UTF-8
|
134
|
+
transfer-encoding:
|
135
|
+
- chunked
|
136
|
+
date:
|
137
|
+
- Wed, 03 Aug 2011 15:27:15 GMT
|
138
|
+
server:
|
139
|
+
- lighttpd/1.4.28
|
140
|
+
body: "true"
|
141
|
+
http_version: "1.1"
|
142
|
+
- !ruby/struct:VCR::HTTPInteraction
|
143
|
+
request: !ruby/struct:VCR::Request
|
144
|
+
method: :get
|
145
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?campaignName=factory%20campaign&key=%{API_KEY}&method=Campaign_Create_Standard&senderEmail=nate@envylabs.com&senderName=Nate%20Bibler&subject=Factory%20Campaign%20Message&content%5Btext%5D=OMG%20BUY%20VIAGRA&recipients%5Blist%5D=44
|
146
|
+
body:
|
147
|
+
headers:
|
148
|
+
accept:
|
149
|
+
- application/json
|
150
|
+
user-agent:
|
151
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
152
|
+
response: !ruby/struct:VCR::Response
|
153
|
+
status: !ruby/struct:VCR::ResponseStatus
|
154
|
+
code: 200
|
155
|
+
message: OK
|
156
|
+
headers:
|
157
|
+
x-powered-by:
|
158
|
+
- PHP/5.2.10
|
159
|
+
set-cookie:
|
160
|
+
- PHPSESSID=03cffb7faf8d33730da8635909bce9fc; path=/
|
161
|
+
expires:
|
162
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
163
|
+
cache-control:
|
164
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
165
|
+
pragma:
|
166
|
+
- no-cache
|
167
|
+
content-type:
|
168
|
+
- text/plain;charset=UTF-8
|
169
|
+
transfer-encoding:
|
170
|
+
- chunked
|
171
|
+
date:
|
172
|
+
- Wed, 03 Aug 2011 15:27:16 GMT
|
173
|
+
server:
|
174
|
+
- lighttpd/1.4.28
|
175
|
+
body: "14"
|
176
|
+
http_version: "1.1"
|
177
|
+
- !ruby/struct:VCR::HTTPInteraction
|
178
|
+
request: !ruby/struct:VCR::Request
|
179
|
+
method: :get
|
180
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?campaignId=14&key=%{API_KEY}&method=Campaign_Send
|
181
|
+
body:
|
182
|
+
headers:
|
183
|
+
accept:
|
184
|
+
- application/json
|
185
|
+
user-agent:
|
186
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
187
|
+
response: !ruby/struct:VCR::Response
|
188
|
+
status: !ruby/struct:VCR::ResponseStatus
|
189
|
+
code: 200
|
190
|
+
message: OK
|
191
|
+
headers:
|
192
|
+
x-powered-by:
|
193
|
+
- PHP/5.2.10
|
194
|
+
set-cookie:
|
195
|
+
- PHPSESSID=1c7a8315367840c4f423113098e9ecfe; path=/
|
196
|
+
expires:
|
197
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
198
|
+
cache-control:
|
199
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
200
|
+
pragma:
|
201
|
+
- no-cache
|
202
|
+
content-type:
|
203
|
+
- text/plain;charset=UTF-8
|
204
|
+
transfer-encoding:
|
205
|
+
- chunked
|
206
|
+
date:
|
207
|
+
- Wed, 03 Aug 2011 15:27:17 GMT
|
208
|
+
server:
|
209
|
+
- lighttpd/1.4.28
|
210
|
+
body: "{\"success\":false,\"issues\":{\"score\":0,\"issues\":[{\"level\":\"\",\"type\":\"SPAM\",\"text\":\"BODY: Mentions an E.D. drug\",\"message\":\"\",\"context\":\"\",\"col\":null,\"deduction\":15},{\"level\":\"\",\"type\":\"SPAM\",\"text\":\"No {COMPANY_ADDRESS} token or registered company name and address found in message, required by CAN-SPAM\",\"message\":\"\",\"context\":\"\",\"col\":null,\"deduction\":100},{\"level\":\"\",\"type\":\"SPAM\",\"text\":\"Refers to an erectile drug\",\"message\":\"\",\"context\":\"\",\"col\":null,\"deduction\":6}]}}"
|
211
|
+
http_version: "1.1"
|
212
|
+
- !ruby/struct:VCR::HTTPInteraction
|
213
|
+
request: !ruby/struct:VCR::Request
|
214
|
+
method: :get
|
215
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?key=%{API_KEY}&listId=44&method=List_Delete
|
216
|
+
body:
|
217
|
+
headers:
|
218
|
+
accept:
|
219
|
+
- application/json
|
220
|
+
user-agent:
|
221
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
222
|
+
response: !ruby/struct:VCR::Response
|
223
|
+
status: !ruby/struct:VCR::ResponseStatus
|
224
|
+
code: 200
|
225
|
+
message: OK
|
226
|
+
headers:
|
227
|
+
x-powered-by:
|
228
|
+
- PHP/5.2.10
|
229
|
+
set-cookie:
|
230
|
+
- PHPSESSID=003cf4ed03306b21a28cc32a967ba145; path=/
|
231
|
+
expires:
|
232
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
233
|
+
cache-control:
|
234
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
235
|
+
pragma:
|
236
|
+
- no-cache
|
237
|
+
content-type:
|
238
|
+
- text/plain;charset=UTF-8
|
239
|
+
transfer-encoding:
|
240
|
+
- chunked
|
241
|
+
date:
|
242
|
+
- Wed, 03 Aug 2011 15:27:21 GMT
|
243
|
+
server:
|
244
|
+
- lighttpd/1.4.28
|
245
|
+
body: "true"
|
246
|
+
http_version: "1.1"
|
247
|
+
- !ruby/struct:VCR::HTTPInteraction
|
248
|
+
request: !ruby/struct:VCR::Request
|
249
|
+
method: :get
|
250
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?email=factory-contact@example.com&key=%{API_KEY}&method=Contact_Delete
|
251
|
+
body:
|
252
|
+
headers:
|
253
|
+
accept:
|
254
|
+
- application/json
|
255
|
+
user-agent:
|
256
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
257
|
+
response: !ruby/struct:VCR::Response
|
258
|
+
status: !ruby/struct:VCR::ResponseStatus
|
259
|
+
code: 200
|
260
|
+
message: OK
|
261
|
+
headers:
|
262
|
+
x-powered-by:
|
263
|
+
- PHP/5.2.10
|
264
|
+
set-cookie:
|
265
|
+
- PHPSESSID=20dc75b089500ee86901eae53c1e721d; path=/
|
266
|
+
expires:
|
267
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
268
|
+
cache-control:
|
269
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
270
|
+
pragma:
|
271
|
+
- no-cache
|
272
|
+
content-type:
|
273
|
+
- text/plain;charset=UTF-8
|
274
|
+
transfer-encoding:
|
275
|
+
- chunked
|
276
|
+
date:
|
277
|
+
- Wed, 03 Aug 2011 15:27:13 GMT
|
278
|
+
server:
|
279
|
+
- lighttpd/1.4.28
|
280
|
+
body: "true"
|
281
|
+
http_version: "1.1"
|
282
|
+
- !ruby/struct:VCR::HTTPInteraction
|
283
|
+
request: !ruby/struct:VCR::Request
|
284
|
+
method: :get
|
285
|
+
uri: https://api.emailcampaigns.net:443/2/REST/?campaignId=14&key=%{API_KEY}&method=Campaign_Delete
|
286
|
+
body:
|
287
|
+
headers:
|
288
|
+
accept:
|
289
|
+
- application/json
|
290
|
+
user-agent:
|
291
|
+
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
292
|
+
response: !ruby/struct:VCR::Response
|
293
|
+
status: !ruby/struct:VCR::ResponseStatus
|
294
|
+
code: 200
|
295
|
+
message: OK
|
296
|
+
headers:
|
297
|
+
x-powered-by:
|
298
|
+
- PHP/5.2.10
|
299
|
+
set-cookie:
|
300
|
+
- PHPSESSID=8d8bb4f12ca124f92188b23c1b5423cf; path=/
|
301
|
+
expires:
|
302
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
303
|
+
cache-control:
|
304
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
305
|
+
pragma:
|
306
|
+
- no-cache
|
307
|
+
content-type:
|
308
|
+
- text/plain;charset=UTF-8
|
309
|
+
transfer-encoding:
|
310
|
+
- chunked
|
311
|
+
date:
|
312
|
+
- Wed, 03 Aug 2011 15:27:24 GMT
|
313
|
+
server:
|
314
|
+
- lighttpd/1.4.28
|
315
|
+
body: "true"
|
316
|
+
http_version: "1.1"
|