contactology 0.1.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +16 -2
- data/.rspec +0 -1
- data/.rvmrc +34 -23
- data/.travis.yml +9 -3
- data/CHANGELOG.markdown +46 -0
- data/Gemfile +0 -7
- data/README.markdown +5 -3
- data/contactology.gemspec +10 -10
- data/lib/contactology/version.rb +1 -1
- data/spec/cassettes/campaign/destroy.yml +293 -0
- data/spec/cassettes/campaign/find/failure.yml +45 -0
- data/spec/cassettes/campaign/find/success.yml +252 -0
- data/spec/cassettes/campaign/find_by_name/failure.yml +44 -0
- data/spec/cassettes/campaign/find_by_name/success.yml +252 -0
- data/spec/cassettes/campaign/preview.yml +135 -0
- data/spec/cassettes/campaigns/standard/create/failure.yml +127 -0
- data/spec/cassettes/campaigns/standard/create/invalid.yml +169 -0
- data/spec/cassettes/campaigns/standard/create/success.yml +209 -0
- data/spec/cassettes/campaigns/standard/send_campaign/failure.yml +374 -0
- data/spec/cassettes/campaigns/standard/send_campaign/failure_missing_attributes.yml +373 -0
- data/spec/cassettes/campaigns/standard/send_campaign/success.yml +374 -0
- data/spec/cassettes/campaigns/transactional/create/failure.yml +44 -0
- data/spec/cassettes/campaigns/transactional/create/success.yml +85 -0
- data/spec/cassettes/campaigns/transactional/send_campaign/failure.yml +127 -0
- data/spec/cassettes/campaigns/transactional/send_campaign/success.yml +208 -0
- data/spec/cassettes/contact/active.yml +127 -0
- data/spec/cassettes/contact/change_email/success.yml +210 -0
- data/spec/cassettes/contact/change_email/unknown.yml +45 -0
- data/spec/cassettes/contact/create.yml +127 -0
- data/spec/cassettes/contact/destroy.yml +85 -0
- data/spec/cassettes/contact/find/active.yml +127 -0
- data/spec/cassettes/contact/find/suppressed.yml +168 -0
- data/spec/cassettes/contact/find/unknown.yml +44 -0
- data/spec/cassettes/contact/lists/empty.yml +126 -0
- data/spec/cassettes/contact/lists/full.yml +333 -0
- data/spec/cassettes/contact/lists/unknown.yml +86 -0
- data/spec/cassettes/contact/suppress.yml +168 -0
- data/spec/cassettes/list/all.yml +168 -0
- data/spec/cassettes/list/create.yml +127 -0
- data/spec/cassettes/list/destroy.yml +210 -0
- data/spec/cassettes/list/find/success.yml +169 -0
- data/spec/cassettes/list/find/unknown.yml +45 -0
- data/spec/cassettes/list/import/success.yml +251 -0
- data/spec/cassettes/list/subscribe/success.yml +250 -0
- data/spec/cassettes/list/unsubscribe/success.yml +291 -0
- data/spec/cassettes/transactional_message/send_message/failure.yml +209 -0
- data/spec/cassettes/transactional_message/send_message/success.yml +208 -0
- data/spec/factories/campaigns.rb +18 -16
- data/spec/factories/contacts.rb +6 -2
- data/spec/factories/issues.rb +12 -8
- data/spec/factories/lists.rb +6 -2
- data/spec/factories/transactional_messages.rb +8 -4
- data/spec/models/contactology/campaign_spec.rb +16 -22
- data/spec/models/contactology/campaigns/standard_spec.rb +31 -27
- data/spec/models/contactology/campaigns/transactional_spec.rb +26 -16
- data/spec/models/contactology/contact_spec.rb +28 -35
- data/spec/models/contactology/issues_spec.rb +2 -2
- data/spec/models/contactology/list_spec.rb +12 -20
- data/spec/models/contactology/transactional_message_spec.rb +13 -15
- data/spec/spec_helper.rb +9 -5
- data/spec/support/factory_girl.rb +4 -18
- data/spec/support/vcr.rb +9 -6
- metadata +208 -177
- data/.infinity_test +0 -16
- data/.watchr +0 -36
- data/Changelog.markdown +0 -30
- data/spec/fixtures/net/campaign/destroy.yml +0 -248
- data/spec/fixtures/net/campaign/find/failure.yml +0 -36
- data/spec/fixtures/net/campaign/find/success.yml +0 -283
- data/spec/fixtures/net/campaign/find_by_name/failure.yml +0 -36
- data/spec/fixtures/net/campaign/find_by_name/success.yml +0 -283
- data/spec/fixtures/net/campaign/preview.yml +0 -181
- data/spec/fixtures/net/campaigns/standard/create/failure.yml +0 -106
- data/spec/fixtures/net/campaigns/standard/create/invalid.yml +0 -141
- data/spec/fixtures/net/campaigns/standard/create/success.yml +0 -176
- data/spec/fixtures/net/campaigns/standard/send_campaign/failure.yml +0 -316
- data/spec/fixtures/net/campaigns/standard/send_campaign/failure_missing_attributes.yml +0 -316
- data/spec/fixtures/net/campaigns/standard/send_campaign/success.yml +0 -316
- data/spec/fixtures/net/campaigns/transactional/create/failure.yml +0 -36
- data/spec/fixtures/net/campaigns/transactional/create/success.yml +0 -71
- data/spec/fixtures/net/campaigns/transactional/send_campaign/failure.yml +0 -106
- data/spec/fixtures/net/campaigns/transactional/send_campaign/success.yml +0 -176
- data/spec/fixtures/net/contact/active.yml +0 -106
- data/spec/fixtures/net/contact/change_email/success.yml +0 -176
- data/spec/fixtures/net/contact/change_email/unknown.yml +0 -36
- data/spec/fixtures/net/contact/create.yml +0 -106
- data/spec/fixtures/net/contact/destroy.yml +0 -141
- data/spec/fixtures/net/contact/find/active.yml +0 -106
- data/spec/fixtures/net/contact/find/suppressed.yml +0 -141
- data/spec/fixtures/net/contact/find/unknown.yml +0 -36
- data/spec/fixtures/net/contact/lists/empty.yml +0 -106
- data/spec/fixtures/net/contact/lists/full.yml +0 -246
- data/spec/fixtures/net/contact/lists/unknown.yml +0 -71
- data/spec/fixtures/net/contact/suppress.yml +0 -141
- data/spec/fixtures/net/list/all.yml +0 -141
- data/spec/fixtures/net/list/create.yml +0 -106
- data/spec/fixtures/net/list/destroy.yml +0 -176
- data/spec/fixtures/net/list/find/success.yml +0 -141
- data/spec/fixtures/net/list/find/unknown.yml +0 -36
- data/spec/fixtures/net/list/import/success.yml +0 -351
- data/spec/fixtures/net/list/subscribe/success.yml +0 -211
- data/spec/fixtures/net/list/unsubscribe/success.yml +0 -246
- data/spec/fixtures/net/transactional_message/send_message/failure.yml +0 -176
- data/spec/fixtures/net/transactional_message/send_message/success.yml +0 -176
- data/spec/requests/contacts_spec.rb +0 -6
@@ -1,36 +0,0 @@
|
|
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=Campaign_Find&searchParameters%5BcampaignName%5D=unknown
|
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=4c8b7e66a550ba59130cefa8d0aef6a6; 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 18:24:36 GMT
|
33
|
-
server:
|
34
|
-
- lighttpd/1.4.28
|
35
|
-
body: "null"
|
36
|
-
http_version: "1.1"
|
@@ -1,283 +0,0 @@
|
|
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=Factory%20List
|
6
|
-
body: !!null
|
7
|
-
headers:
|
8
|
-
accept:
|
9
|
-
- application/json
|
10
|
-
user-agent:
|
11
|
-
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.8.0)
|
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=82a857132853896e8f4bc1a5172ae386; 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
|
-
- Thu, 04 Aug 2011 01:43:54 GMT
|
33
|
-
server:
|
34
|
-
- lighttpd/1.4.28
|
35
|
-
body: '51'
|
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=51&method=List_Get_Info
|
41
|
-
body: !!null
|
42
|
-
headers:
|
43
|
-
accept:
|
44
|
-
- application/json
|
45
|
-
user-agent:
|
46
|
-
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.8.0)
|
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=8840784a32b3cfdf50044d20b6d537ad; 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
|
-
- Thu, 04 Aug 2011 01:43:55 GMT
|
68
|
-
server:
|
69
|
-
- lighttpd/1.4.28
|
70
|
-
body: ! '{"listId":"51","name":"Factory List","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=test-find-by-name&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=51
|
76
|
-
body: !!null
|
77
|
-
headers:
|
78
|
-
accept:
|
79
|
-
- application/json
|
80
|
-
user-agent:
|
81
|
-
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.8.0)
|
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=26f0c3275e342cd8b8a57f64072a8d9d; 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
|
-
- Thu, 04 Aug 2011 01:43:55 GMT
|
103
|
-
server:
|
104
|
-
- lighttpd/1.4.28
|
105
|
-
body: '45'
|
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}&method=Campaign_Find&searchParameters%5BcampaignName%5D=test-find-by-name
|
111
|
-
body: !!null
|
112
|
-
headers:
|
113
|
-
accept:
|
114
|
-
- application/json
|
115
|
-
user-agent:
|
116
|
-
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.8.0)
|
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=00d8bb52927e7717806edad3b68c1030; 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
|
-
- Thu, 04 Aug 2011 01:43:55 GMT
|
138
|
-
server:
|
139
|
-
- lighttpd/1.4.28
|
140
|
-
body: ! '{"45":{"campaignId":"45","campaignName":"test-find-by-name","type":"standard","contentType":"standard","status":"draft","recipients":{"list":["51"]},"subject":"Factory
|
141
|
-
Campaign Message","senderName":"Nate Bibler","senderEmail":"nate@envylabs.com","recipientName":"","replyToName":"","replyToEmail":null,"content":{"html":"","text":"This
|
142
|
-
is a good message! {COMPANY_ADDRESS}"},"startTime":"2011-08-04 01:43:55","authenticate":false,"trackReplies":false,"showInArchive":false,"viewInBrowser":false,"trackOpens":true,"trackClickThruHTML":true,"trackClickThruText":true,"googleAnalyticsName":null,"automaticTweet":false,"clickTaleName":null,"clickTaleCustomFields":[""],"useCustomUrlParameters":null,"customUrlParameters":null}}'
|
143
|
-
http_version: '1.1'
|
144
|
-
- !ruby/struct:VCR::HTTPInteraction
|
145
|
-
request: !ruby/struct:VCR::Request
|
146
|
-
method: :get
|
147
|
-
uri: https://api.emailcampaigns.net:443/2/REST/?key=%{API_KEY}&listId=51&method=List_Delete
|
148
|
-
body: !!null
|
149
|
-
headers:
|
150
|
-
accept:
|
151
|
-
- application/json
|
152
|
-
user-agent:
|
153
|
-
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.8.0)
|
154
|
-
response: !ruby/struct:VCR::Response
|
155
|
-
status: !ruby/struct:VCR::ResponseStatus
|
156
|
-
code: 200
|
157
|
-
message: OK
|
158
|
-
headers:
|
159
|
-
x-powered-by:
|
160
|
-
- PHP/5.2.10
|
161
|
-
set-cookie:
|
162
|
-
- PHPSESSID=688cc29f2c6a133842e7f09e0ce9b86c; path=/
|
163
|
-
expires:
|
164
|
-
- Thu, 19 Nov 1981 08:52:00 GMT
|
165
|
-
cache-control:
|
166
|
-
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
167
|
-
pragma:
|
168
|
-
- no-cache
|
169
|
-
content-type:
|
170
|
-
- text/plain;charset=UTF-8
|
171
|
-
transfer-encoding:
|
172
|
-
- chunked
|
173
|
-
date:
|
174
|
-
- Thu, 04 Aug 2011 01:43:44 GMT
|
175
|
-
server:
|
176
|
-
- lighttpd/1.4.28
|
177
|
-
body: 'true'
|
178
|
-
http_version: '1.1'
|
179
|
-
- !ruby/struct:VCR::HTTPInteraction
|
180
|
-
request: !ruby/struct:VCR::Request
|
181
|
-
method: :get
|
182
|
-
uri: https://api.emailcampaigns.net:443/2/REST/?campaignId=45&key=%{API_KEY}&method=Campaign_Delete
|
183
|
-
body: !!null
|
184
|
-
headers:
|
185
|
-
accept:
|
186
|
-
- application/json
|
187
|
-
user-agent:
|
188
|
-
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.8.0)
|
189
|
-
response: !ruby/struct:VCR::Response
|
190
|
-
status: !ruby/struct:VCR::ResponseStatus
|
191
|
-
code: 200
|
192
|
-
message: OK
|
193
|
-
headers:
|
194
|
-
x-powered-by:
|
195
|
-
- PHP/5.2.10
|
196
|
-
set-cookie:
|
197
|
-
- PHPSESSID=c73d67971851751d4439325d08e1ed26; path=/
|
198
|
-
expires:
|
199
|
-
- Thu, 19 Nov 1981 08:52:00 GMT
|
200
|
-
cache-control:
|
201
|
-
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
202
|
-
pragma:
|
203
|
-
- no-cache
|
204
|
-
content-type:
|
205
|
-
- text/plain;charset=UTF-8
|
206
|
-
transfer-encoding:
|
207
|
-
- chunked
|
208
|
-
date:
|
209
|
-
- Thu, 04 Aug 2011 01:43:48 GMT
|
210
|
-
server:
|
211
|
-
- lighttpd/1.4.28
|
212
|
-
body: 'true'
|
213
|
-
http_version: '1.1'
|
214
|
-
- !ruby/struct:VCR::HTTPInteraction
|
215
|
-
request: !ruby/struct:VCR::Request
|
216
|
-
method: :get
|
217
|
-
uri: https://api.emailcampaigns.net:443/2/REST/?key=%{API_KEY}&method=List_Get_Info&listId%5B0%5D=51
|
218
|
-
body: !!null
|
219
|
-
headers:
|
220
|
-
accept:
|
221
|
-
- application/json
|
222
|
-
user-agent:
|
223
|
-
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.8.0)
|
224
|
-
response: !ruby/struct:VCR::Response
|
225
|
-
status: !ruby/struct:VCR::ResponseStatus
|
226
|
-
code: 200
|
227
|
-
message: OK
|
228
|
-
headers:
|
229
|
-
x-powered-by:
|
230
|
-
- PHP/5.2.10
|
231
|
-
set-cookie:
|
232
|
-
- PHPSESSID=c232f9779ce23968fa97e1de9527acce; path=/
|
233
|
-
expires:
|
234
|
-
- Thu, 19 Nov 1981 08:52:00 GMT
|
235
|
-
cache-control:
|
236
|
-
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
237
|
-
pragma:
|
238
|
-
- no-cache
|
239
|
-
content-type:
|
240
|
-
- text/plain;charset=UTF-8
|
241
|
-
transfer-encoding:
|
242
|
-
- chunked
|
243
|
-
date:
|
244
|
-
- Thu, 04 Aug 2011 02:13:50 GMT
|
245
|
-
server:
|
246
|
-
- lighttpd/1.4.28
|
247
|
-
body: ! '{"result":"error","message":"Input Error: List 1 does not exist","code":601}'
|
248
|
-
http_version: '1.1'
|
249
|
-
- !ruby/struct:VCR::HTTPInteraction
|
250
|
-
request: !ruby/struct:VCR::Request
|
251
|
-
method: :get
|
252
|
-
uri: https://api.emailcampaigns.net:443/2/REST/?key=%{API_KEY}&method=List_Get_Info&listId%5B0%5D=51
|
253
|
-
body: !!null
|
254
|
-
headers:
|
255
|
-
accept:
|
256
|
-
- application/json
|
257
|
-
user-agent:
|
258
|
-
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.8.0)
|
259
|
-
response: !ruby/struct:VCR::Response
|
260
|
-
status: !ruby/struct:VCR::ResponseStatus
|
261
|
-
code: 200
|
262
|
-
message: OK
|
263
|
-
headers:
|
264
|
-
x-powered-by:
|
265
|
-
- PHP/5.2.10
|
266
|
-
set-cookie:
|
267
|
-
- PHPSESSID=98652def9e9e1f6bf89d93fada557531; path=/
|
268
|
-
expires:
|
269
|
-
- Thu, 19 Nov 1981 08:52:00 GMT
|
270
|
-
cache-control:
|
271
|
-
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
272
|
-
pragma:
|
273
|
-
- no-cache
|
274
|
-
content-type:
|
275
|
-
- text/plain;charset=UTF-8
|
276
|
-
transfer-encoding:
|
277
|
-
- chunked
|
278
|
-
date:
|
279
|
-
- Thu, 04 Aug 2011 02:13:39 GMT
|
280
|
-
server:
|
281
|
-
- lighttpd/1.4.28
|
282
|
-
body: ! '{"result":"error","message":"Input Error: List 1 does not exist","code":601}'
|
283
|
-
http_version: '1.1'
|
@@ -1,181 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
4
|
-
method: :get
|
5
|
-
uri: https://api.emailcampaigns.net:443/2/REST/?campaignName=factory%20campaign&key=%{API_KEY}&method=Campaign_Create_Transactional&senderEmail=sender@example.com&senderName=Sender%20Example&subject=Test%20Creation&content%5Btext%5D=This%20is%20a%20good%20email.%20%7BCOMPANY_ADDRESS%7D&testContact%5Bemail%5D=test-contact@example.com&testReplacements%5Bfirst_name%5D=John
|
6
|
-
body: !!null
|
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=52d93bd350333509a8408946083c9e9c; 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 19:44:47 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/?campaignId=42&key=%{API_KEY}&method=Campaign_Preview
|
41
|
-
body: !!null
|
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=dd9488706f6a3ec57062351c82577b93; 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 19:44:58 GMT
|
68
|
-
server:
|
69
|
-
- lighttpd/1.4.28
|
70
|
-
body: ! '{"html":"","text":"This is a good email. \tEnvy Labs LLC\n\t\n\t\n\t, \n\n\nGo
|
71
|
-
to the following url to unsubscribe: http:\/\/clicks.skem1.com\/r\/?g=42&c=10509&p=&l=0\n\nAbout
|
72
|
-
this list: http:\/\/clicks.skem1.com\/manage\/about_list.php?g=42&c=10509&p=\n\n\n\nUpdate
|
73
|
-
Profile\/Email Address: http:\/\/clicks.skem1.com\/manage\/?g=42&c=10509&p=\n\nForward
|
74
|
-
to Friend: http:\/\/clicks.skem1.com\/f\/?g=42&c=10509&p=\n\nPowered By Contactology
|
75
|
-
http:\/\/www.contactology.com","links":[]}'
|
76
|
-
http_version: '1.1'
|
77
|
-
- !ruby/struct:VCR::HTTPInteraction
|
78
|
-
request: !ruby/struct:VCR::Request
|
79
|
-
method: :get
|
80
|
-
uri: https://api.emailcampaigns.net:443/2/REST/?campaignId=42&key=%{API_KEY}&method=Campaign_Delete
|
81
|
-
body: !!null
|
82
|
-
headers:
|
83
|
-
accept:
|
84
|
-
- application/json
|
85
|
-
user-agent:
|
86
|
-
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.7.1)
|
87
|
-
response: !ruby/struct:VCR::Response
|
88
|
-
status: !ruby/struct:VCR::ResponseStatus
|
89
|
-
code: 200
|
90
|
-
message: OK
|
91
|
-
headers:
|
92
|
-
x-powered-by:
|
93
|
-
- PHP/5.2.10
|
94
|
-
set-cookie:
|
95
|
-
- PHPSESSID=8a310ecf8b58215b062b0cd4e8128f70; path=/
|
96
|
-
expires:
|
97
|
-
- Thu, 19 Nov 1981 08:52:00 GMT
|
98
|
-
cache-control:
|
99
|
-
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
100
|
-
pragma:
|
101
|
-
- no-cache
|
102
|
-
content-type:
|
103
|
-
- text/plain;charset=UTF-8
|
104
|
-
transfer-encoding:
|
105
|
-
- chunked
|
106
|
-
date:
|
107
|
-
- Wed, 03 Aug 2011 19:44:59 GMT
|
108
|
-
server:
|
109
|
-
- lighttpd/1.4.28
|
110
|
-
body: 'true'
|
111
|
-
http_version: '1.1'
|
112
|
-
- !ruby/struct:VCR::HTTPInteraction
|
113
|
-
request: !ruby/struct:VCR::Request
|
114
|
-
method: :get
|
115
|
-
uri: https://api.emailcampaigns.net:443/2/REST/?key=%{API_KEY}&method=Campaign_Preview&campaignId%5B0%5D=42
|
116
|
-
body: !!null
|
117
|
-
headers:
|
118
|
-
accept:
|
119
|
-
- application/json
|
120
|
-
user-agent:
|
121
|
-
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.8.0)
|
122
|
-
response: !ruby/struct:VCR::Response
|
123
|
-
status: !ruby/struct:VCR::ResponseStatus
|
124
|
-
code: 200
|
125
|
-
message: OK
|
126
|
-
headers:
|
127
|
-
x-powered-by:
|
128
|
-
- PHP/5.2.10
|
129
|
-
set-cookie:
|
130
|
-
- PHPSESSID=a3e019d4ff519d12a2f41b9f672a8c85; path=/
|
131
|
-
expires:
|
132
|
-
- Thu, 19 Nov 1981 08:52:00 GMT
|
133
|
-
cache-control:
|
134
|
-
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
135
|
-
pragma:
|
136
|
-
- no-cache
|
137
|
-
content-type:
|
138
|
-
- text/plain;charset=UTF-8
|
139
|
-
transfer-encoding:
|
140
|
-
- chunked
|
141
|
-
date:
|
142
|
-
- Thu, 04 Aug 2011 02:13:50 GMT
|
143
|
-
server:
|
144
|
-
- lighttpd/1.4.28
|
145
|
-
body: ! '{"result":"error","message":"Input Error: campaignId Array not found","code":601}'
|
146
|
-
http_version: '1.1'
|
147
|
-
- !ruby/struct:VCR::HTTPInteraction
|
148
|
-
request: !ruby/struct:VCR::Request
|
149
|
-
method: :get
|
150
|
-
uri: https://api.emailcampaigns.net:443/2/REST/?key=%{API_KEY}&method=Campaign_Delete&campaignId%5B0%5D=42
|
151
|
-
body: !!null
|
152
|
-
headers:
|
153
|
-
accept:
|
154
|
-
- application/json
|
155
|
-
user-agent:
|
156
|
-
- contactology/0.0.1 (Rubygems; Ruby 1.9.2 x86_64-darwin10.8.0)
|
157
|
-
response: !ruby/struct:VCR::Response
|
158
|
-
status: !ruby/struct:VCR::ResponseStatus
|
159
|
-
code: 200
|
160
|
-
message: OK
|
161
|
-
headers:
|
162
|
-
x-powered-by:
|
163
|
-
- PHP/5.2.10
|
164
|
-
set-cookie:
|
165
|
-
- PHPSESSID=ca79bcee5ab677be60eeb1331d1f40ff; path=/
|
166
|
-
expires:
|
167
|
-
- Thu, 19 Nov 1981 08:52:00 GMT
|
168
|
-
cache-control:
|
169
|
-
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
170
|
-
pragma:
|
171
|
-
- no-cache
|
172
|
-
content-type:
|
173
|
-
- text/plain;charset=UTF-8
|
174
|
-
transfer-encoding:
|
175
|
-
- chunked
|
176
|
-
date:
|
177
|
-
- Thu, 04 Aug 2011 02:13:51 GMT
|
178
|
-
server:
|
179
|
-
- lighttpd/1.4.28
|
180
|
-
body: ! '{"result":"error","message":"Input Error: campaignId Array not found","code":601}'
|
181
|
-
http_version: '1.1'
|