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
@@ -0,0 +1,333 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.emailcampaigns.net/2/REST/?key=%{API_KEY}&method=List_Add_Public&name=contact-list-test
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
User-Agent:
|
13
|
+
- contactology/0.1.2 (Rubygems; Ruby 1.9.3 x86_64-darwin12.2.0)
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
X-Powered-By:
|
20
|
+
- PHP/5.2.10
|
21
|
+
Set-Cookie:
|
22
|
+
- PHPSESSID=0200603c64a66e6d2400c55e4ba53852; path=/
|
23
|
+
Expires:
|
24
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
25
|
+
Cache-Control:
|
26
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
27
|
+
Pragma:
|
28
|
+
- no-cache
|
29
|
+
Content-Type:
|
30
|
+
- text/plain;charset=UTF-8
|
31
|
+
Connection:
|
32
|
+
- close
|
33
|
+
Transfer-Encoding:
|
34
|
+
- chunked
|
35
|
+
Date:
|
36
|
+
- Wed, 20 Feb 2013 05:21:12 GMT
|
37
|
+
Server:
|
38
|
+
- lighttpd/1.4.28
|
39
|
+
body:
|
40
|
+
encoding: US-ASCII
|
41
|
+
string: '191'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Wed, 20 Feb 2013 05:21:12 GMT
|
44
|
+
- request:
|
45
|
+
method: get
|
46
|
+
uri: https://api.emailcampaigns.net/2/REST/?key=%{API_KEY}&listId=191&method=List_Get_Info
|
47
|
+
body:
|
48
|
+
encoding: US-ASCII
|
49
|
+
string: ''
|
50
|
+
headers:
|
51
|
+
Accept:
|
52
|
+
- application/json
|
53
|
+
User-Agent:
|
54
|
+
- contactology/0.1.2 (Rubygems; Ruby 1.9.3 x86_64-darwin12.2.0)
|
55
|
+
response:
|
56
|
+
status:
|
57
|
+
code: 200
|
58
|
+
message: OK
|
59
|
+
headers:
|
60
|
+
X-Powered-By:
|
61
|
+
- PHP/5.2.10
|
62
|
+
Set-Cookie:
|
63
|
+
- PHPSESSID=56495f045f1de6d925f04e1d7ec0e39d; path=/
|
64
|
+
Expires:
|
65
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
66
|
+
Cache-Control:
|
67
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
68
|
+
Pragma:
|
69
|
+
- no-cache
|
70
|
+
Content-Type:
|
71
|
+
- text/plain;charset=UTF-8
|
72
|
+
Connection:
|
73
|
+
- close
|
74
|
+
Transfer-Encoding:
|
75
|
+
- chunked
|
76
|
+
Date:
|
77
|
+
- Wed, 20 Feb 2013 05:21:12 GMT
|
78
|
+
Server:
|
79
|
+
- lighttpd/1.4.28
|
80
|
+
body:
|
81
|
+
encoding: US-ASCII
|
82
|
+
string: ! '{"listId":"191","name":"contact-list-test","description":null,"type":"public","created":"2013-02-20
|
83
|
+
05:21:12","optIn":false}'
|
84
|
+
http_version:
|
85
|
+
recorded_at: Wed, 20 Feb 2013 05:21:12 GMT
|
86
|
+
- request:
|
87
|
+
method: get
|
88
|
+
uri: https://api.emailcampaigns.net/2/REST/?email=lists@example.com&key=%{API_KEY}&method=Contact_Add&optionalParameters%5BupdateCustomFields%5D=true
|
89
|
+
body:
|
90
|
+
encoding: US-ASCII
|
91
|
+
string: ''
|
92
|
+
headers:
|
93
|
+
Accept:
|
94
|
+
- application/json
|
95
|
+
User-Agent:
|
96
|
+
- contactology/0.1.2 (Rubygems; Ruby 1.9.3 x86_64-darwin12.2.0)
|
97
|
+
response:
|
98
|
+
status:
|
99
|
+
code: 200
|
100
|
+
message: OK
|
101
|
+
headers:
|
102
|
+
X-Powered-By:
|
103
|
+
- PHP/5.2.10
|
104
|
+
Set-Cookie:
|
105
|
+
- PHPSESSID=67a3b4125bf0bc8983ce71e212355207; path=/
|
106
|
+
Expires:
|
107
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
108
|
+
Cache-Control:
|
109
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
110
|
+
Pragma:
|
111
|
+
- no-cache
|
112
|
+
Content-Type:
|
113
|
+
- text/plain;charset=UTF-8
|
114
|
+
Connection:
|
115
|
+
- close
|
116
|
+
Transfer-Encoding:
|
117
|
+
- chunked
|
118
|
+
Date:
|
119
|
+
- Wed, 20 Feb 2013 05:21:12 GMT
|
120
|
+
Server:
|
121
|
+
- lighttpd/1.4.28
|
122
|
+
body:
|
123
|
+
encoding: US-ASCII
|
124
|
+
string: 'true'
|
125
|
+
http_version:
|
126
|
+
recorded_at: Wed, 20 Feb 2013 05:21:13 GMT
|
127
|
+
- request:
|
128
|
+
method: get
|
129
|
+
uri: https://api.emailcampaigns.net/2/REST/?email=lists@example.com&key=%{API_KEY}&listId=191&method=List_Subscribe
|
130
|
+
body:
|
131
|
+
encoding: US-ASCII
|
132
|
+
string: ''
|
133
|
+
headers:
|
134
|
+
Accept:
|
135
|
+
- application/json
|
136
|
+
User-Agent:
|
137
|
+
- contactology/0.1.2 (Rubygems; Ruby 1.9.3 x86_64-darwin12.2.0)
|
138
|
+
response:
|
139
|
+
status:
|
140
|
+
code: 200
|
141
|
+
message: OK
|
142
|
+
headers:
|
143
|
+
X-Powered-By:
|
144
|
+
- PHP/5.2.10
|
145
|
+
Set-Cookie:
|
146
|
+
- PHPSESSID=d2f942da164c10ee1275fd7d080f3f97; path=/
|
147
|
+
Expires:
|
148
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
149
|
+
Cache-Control:
|
150
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
151
|
+
Pragma:
|
152
|
+
- no-cache
|
153
|
+
Content-Type:
|
154
|
+
- text/plain;charset=UTF-8
|
155
|
+
Connection:
|
156
|
+
- close
|
157
|
+
Transfer-Encoding:
|
158
|
+
- chunked
|
159
|
+
Date:
|
160
|
+
- Wed, 20 Feb 2013 05:21:13 GMT
|
161
|
+
Server:
|
162
|
+
- lighttpd/1.4.28
|
163
|
+
body:
|
164
|
+
encoding: US-ASCII
|
165
|
+
string: 'true'
|
166
|
+
http_version:
|
167
|
+
recorded_at: Wed, 20 Feb 2013 05:21:13 GMT
|
168
|
+
- request:
|
169
|
+
method: get
|
170
|
+
uri: https://api.emailcampaigns.net/2/REST/?email=lists@example.com&key=%{API_KEY}&method=Contact_Get_Subscriptions
|
171
|
+
body:
|
172
|
+
encoding: US-ASCII
|
173
|
+
string: ''
|
174
|
+
headers:
|
175
|
+
Accept:
|
176
|
+
- application/json
|
177
|
+
User-Agent:
|
178
|
+
- contactology/0.1.2 (Rubygems; Ruby 1.9.3 x86_64-darwin12.2.0)
|
179
|
+
response:
|
180
|
+
status:
|
181
|
+
code: 200
|
182
|
+
message: OK
|
183
|
+
headers:
|
184
|
+
X-Powered-By:
|
185
|
+
- PHP/5.2.10
|
186
|
+
Set-Cookie:
|
187
|
+
- PHPSESSID=262b2ad4d1d91448987168cdfbe7afa9; path=/
|
188
|
+
Expires:
|
189
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
190
|
+
Cache-Control:
|
191
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
192
|
+
Pragma:
|
193
|
+
- no-cache
|
194
|
+
Content-Type:
|
195
|
+
- text/plain;charset=UTF-8
|
196
|
+
Connection:
|
197
|
+
- close
|
198
|
+
Transfer-Encoding:
|
199
|
+
- chunked
|
200
|
+
Date:
|
201
|
+
- Wed, 20 Feb 2013 05:21:13 GMT
|
202
|
+
Server:
|
203
|
+
- lighttpd/1.4.28
|
204
|
+
body:
|
205
|
+
encoding: US-ASCII
|
206
|
+
string: ! '["191"]'
|
207
|
+
http_version:
|
208
|
+
recorded_at: Wed, 20 Feb 2013 05:21:13 GMT
|
209
|
+
- request:
|
210
|
+
method: get
|
211
|
+
uri: https://api.emailcampaigns.net/2/REST/?key=%{API_KEY}&listId=191&method=List_Get_Info
|
212
|
+
body:
|
213
|
+
encoding: US-ASCII
|
214
|
+
string: ''
|
215
|
+
headers:
|
216
|
+
Accept:
|
217
|
+
- application/json
|
218
|
+
User-Agent:
|
219
|
+
- contactology/0.1.2 (Rubygems; Ruby 1.9.3 x86_64-darwin12.2.0)
|
220
|
+
response:
|
221
|
+
status:
|
222
|
+
code: 200
|
223
|
+
message: OK
|
224
|
+
headers:
|
225
|
+
X-Powered-By:
|
226
|
+
- PHP/5.2.10
|
227
|
+
Set-Cookie:
|
228
|
+
- PHPSESSID=1473b84d1a46352b3d56cb7f13919a12; path=/
|
229
|
+
Expires:
|
230
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
231
|
+
Cache-Control:
|
232
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
233
|
+
Pragma:
|
234
|
+
- no-cache
|
235
|
+
Content-Type:
|
236
|
+
- text/plain;charset=UTF-8
|
237
|
+
Connection:
|
238
|
+
- close
|
239
|
+
Transfer-Encoding:
|
240
|
+
- chunked
|
241
|
+
Date:
|
242
|
+
- Wed, 20 Feb 2013 05:21:14 GMT
|
243
|
+
Server:
|
244
|
+
- lighttpd/1.4.28
|
245
|
+
body:
|
246
|
+
encoding: US-ASCII
|
247
|
+
string: ! '{"listId":"191","name":"contact-list-test","description":null,"type":"public","created":"2013-02-20
|
248
|
+
05:21:12","optIn":false}'
|
249
|
+
http_version:
|
250
|
+
recorded_at: Wed, 20 Feb 2013 05:21:14 GMT
|
251
|
+
- request:
|
252
|
+
method: get
|
253
|
+
uri: https://api.emailcampaigns.net/2/REST/?email=lists@example.com&key=%{API_KEY}&method=Contact_Delete
|
254
|
+
body:
|
255
|
+
encoding: US-ASCII
|
256
|
+
string: ''
|
257
|
+
headers:
|
258
|
+
Accept:
|
259
|
+
- application/json
|
260
|
+
User-Agent:
|
261
|
+
- contactology/0.1.2 (Rubygems; Ruby 1.9.3 x86_64-darwin12.2.0)
|
262
|
+
response:
|
263
|
+
status:
|
264
|
+
code: 200
|
265
|
+
message: OK
|
266
|
+
headers:
|
267
|
+
X-Powered-By:
|
268
|
+
- PHP/5.2.10
|
269
|
+
Set-Cookie:
|
270
|
+
- PHPSESSID=c2d00220afe20b29fe61ca257c1a2189; path=/
|
271
|
+
Expires:
|
272
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
273
|
+
Cache-Control:
|
274
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
275
|
+
Pragma:
|
276
|
+
- no-cache
|
277
|
+
Content-Type:
|
278
|
+
- text/plain;charset=UTF-8
|
279
|
+
Connection:
|
280
|
+
- close
|
281
|
+
Transfer-Encoding:
|
282
|
+
- chunked
|
283
|
+
Date:
|
284
|
+
- Wed, 20 Feb 2013 05:21:14 GMT
|
285
|
+
Server:
|
286
|
+
- lighttpd/1.4.28
|
287
|
+
body:
|
288
|
+
encoding: US-ASCII
|
289
|
+
string: 'true'
|
290
|
+
http_version:
|
291
|
+
recorded_at: Wed, 20 Feb 2013 05:21:14 GMT
|
292
|
+
- request:
|
293
|
+
method: get
|
294
|
+
uri: https://api.emailcampaigns.net/2/REST/?key=%{API_KEY}&listId=191&method=List_Delete
|
295
|
+
body:
|
296
|
+
encoding: US-ASCII
|
297
|
+
string: ''
|
298
|
+
headers:
|
299
|
+
Accept:
|
300
|
+
- application/json
|
301
|
+
User-Agent:
|
302
|
+
- contactology/0.1.2 (Rubygems; Ruby 1.9.3 x86_64-darwin12.2.0)
|
303
|
+
response:
|
304
|
+
status:
|
305
|
+
code: 200
|
306
|
+
message: OK
|
307
|
+
headers:
|
308
|
+
X-Powered-By:
|
309
|
+
- PHP/5.2.10
|
310
|
+
Set-Cookie:
|
311
|
+
- PHPSESSID=d6a457a24678643189fc9973a87d2d74; path=/
|
312
|
+
Expires:
|
313
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
314
|
+
Cache-Control:
|
315
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
316
|
+
Pragma:
|
317
|
+
- no-cache
|
318
|
+
Content-Type:
|
319
|
+
- text/plain;charset=UTF-8
|
320
|
+
Connection:
|
321
|
+
- close
|
322
|
+
Transfer-Encoding:
|
323
|
+
- chunked
|
324
|
+
Date:
|
325
|
+
- Wed, 20 Feb 2013 05:21:14 GMT
|
326
|
+
Server:
|
327
|
+
- lighttpd/1.4.28
|
328
|
+
body:
|
329
|
+
encoding: US-ASCII
|
330
|
+
string: 'true'
|
331
|
+
http_version:
|
332
|
+
recorded_at: Wed, 20 Feb 2013 05:21:14 GMT
|
333
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,86 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.emailcampaigns.net/2/REST/?email=unknown@example.com&key=%{API_KEY}&method=Contact_Get_Subscriptions
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
User-Agent:
|
13
|
+
- contactology/0.1.2 (Rubygems; Ruby 1.9.3 x86_64-darwin12.2.0)
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
X-Powered-By:
|
20
|
+
- PHP/5.2.10
|
21
|
+
Set-Cookie:
|
22
|
+
- PHPSESSID=d174254d5efcb4004ebfc3f42b404ff5; path=/
|
23
|
+
Expires:
|
24
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
25
|
+
Cache-Control:
|
26
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
27
|
+
Pragma:
|
28
|
+
- no-cache
|
29
|
+
Content-Type:
|
30
|
+
- text/plain;charset=UTF-8
|
31
|
+
Connection:
|
32
|
+
- close
|
33
|
+
Transfer-Encoding:
|
34
|
+
- chunked
|
35
|
+
Date:
|
36
|
+
- Wed, 20 Feb 2013 05:16:32 GMT
|
37
|
+
Server:
|
38
|
+
- lighttpd/1.4.28
|
39
|
+
body:
|
40
|
+
encoding: US-ASCII
|
41
|
+
string: ! '{"result":"error","message":"Input error: no contact found for email
|
42
|
+
unknown@example.com","code":601}'
|
43
|
+
http_version:
|
44
|
+
recorded_at: Wed, 20 Feb 2013 05:16:32 GMT
|
45
|
+
- request:
|
46
|
+
method: get
|
47
|
+
uri: https://api.emailcampaigns.net/2/REST/?email=unknown@example.com&key=%{API_KEY}&method=Contact_Delete
|
48
|
+
body:
|
49
|
+
encoding: US-ASCII
|
50
|
+
string: ''
|
51
|
+
headers:
|
52
|
+
Accept:
|
53
|
+
- application/json
|
54
|
+
User-Agent:
|
55
|
+
- contactology/0.1.2 (Rubygems; Ruby 1.9.3 x86_64-darwin12.2.0)
|
56
|
+
response:
|
57
|
+
status:
|
58
|
+
code: 200
|
59
|
+
message: OK
|
60
|
+
headers:
|
61
|
+
X-Powered-By:
|
62
|
+
- PHP/5.2.10
|
63
|
+
Set-Cookie:
|
64
|
+
- PHPSESSID=5eeb715f26bb39bafca9d88e1655796e; path=/
|
65
|
+
Expires:
|
66
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
67
|
+
Cache-Control:
|
68
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
69
|
+
Pragma:
|
70
|
+
- no-cache
|
71
|
+
Content-Type:
|
72
|
+
- text/plain;charset=UTF-8
|
73
|
+
Connection:
|
74
|
+
- close
|
75
|
+
Transfer-Encoding:
|
76
|
+
- chunked
|
77
|
+
Date:
|
78
|
+
- Wed, 20 Feb 2013 05:16:32 GMT
|
79
|
+
Server:
|
80
|
+
- lighttpd/1.4.28
|
81
|
+
body:
|
82
|
+
encoding: US-ASCII
|
83
|
+
string: 'false'
|
84
|
+
http_version:
|
85
|
+
recorded_at: Wed, 20 Feb 2013 05:16:33 GMT
|
86
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,168 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.emailcampaigns.net/2/REST/?email=suppressed@example.com&key=%{API_KEY}&method=Contact_Add&optionalParameters%5BupdateCustomFields%5D=true
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
User-Agent:
|
13
|
+
- contactology/0.1.2 (Rubygems; Ruby 1.9.3 x86_64-darwin12.2.0)
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
X-Powered-By:
|
20
|
+
- PHP/5.2.10
|
21
|
+
Set-Cookie:
|
22
|
+
- PHPSESSID=dcc964d889e57cf1d29c5380fe6e7a2b; path=/
|
23
|
+
Expires:
|
24
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
25
|
+
Cache-Control:
|
26
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
27
|
+
Pragma:
|
28
|
+
- no-cache
|
29
|
+
Content-Type:
|
30
|
+
- text/plain;charset=UTF-8
|
31
|
+
Connection:
|
32
|
+
- close
|
33
|
+
Transfer-Encoding:
|
34
|
+
- chunked
|
35
|
+
Date:
|
36
|
+
- Wed, 20 Feb 2013 05:16:24 GMT
|
37
|
+
Server:
|
38
|
+
- lighttpd/1.4.28
|
39
|
+
body:
|
40
|
+
encoding: US-ASCII
|
41
|
+
string: 'true'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Wed, 20 Feb 2013 05:16:24 GMT
|
44
|
+
- request:
|
45
|
+
method: get
|
46
|
+
uri: https://api.emailcampaigns.net/2/REST/?email=suppressed@example.com&key=%{API_KEY}&method=Contact_Get&optionalParameters%5BgetAllCustomFields%5D=true
|
47
|
+
body:
|
48
|
+
encoding: US-ASCII
|
49
|
+
string: ''
|
50
|
+
headers:
|
51
|
+
Accept:
|
52
|
+
- application/json
|
53
|
+
User-Agent:
|
54
|
+
- contactology/0.1.2 (Rubygems; Ruby 1.9.3 x86_64-darwin12.2.0)
|
55
|
+
response:
|
56
|
+
status:
|
57
|
+
code: 200
|
58
|
+
message: OK
|
59
|
+
headers:
|
60
|
+
X-Powered-By:
|
61
|
+
- PHP/5.2.10
|
62
|
+
Set-Cookie:
|
63
|
+
- PHPSESSID=6e3e08801456c504e9c638b57a287ac9; path=/
|
64
|
+
Expires:
|
65
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
66
|
+
Cache-Control:
|
67
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
68
|
+
Pragma:
|
69
|
+
- no-cache
|
70
|
+
Content-Type:
|
71
|
+
- text/plain;charset=UTF-8
|
72
|
+
Connection:
|
73
|
+
- close
|
74
|
+
Transfer-Encoding:
|
75
|
+
- chunked
|
76
|
+
Date:
|
77
|
+
- Wed, 20 Feb 2013 05:16:25 GMT
|
78
|
+
Server:
|
79
|
+
- lighttpd/1.4.28
|
80
|
+
body:
|
81
|
+
encoding: US-ASCII
|
82
|
+
string: ! '{"suppressed@example.com":{"contactId":"10","email":"suppressed@example.com","source":"API
|
83
|
+
2 Contact_Add","status":"active","customFields":{"first_name":"","last_name":"","email_address":"suppressed@example.com"}}}'
|
84
|
+
http_version:
|
85
|
+
recorded_at: Wed, 20 Feb 2013 05:16:25 GMT
|
86
|
+
- request:
|
87
|
+
method: get
|
88
|
+
uri: https://api.emailcampaigns.net/2/REST/?email=suppressed@example.com&key=%{API_KEY}&method=Contact_Suppress
|
89
|
+
body:
|
90
|
+
encoding: US-ASCII
|
91
|
+
string: ''
|
92
|
+
headers:
|
93
|
+
Accept:
|
94
|
+
- application/json
|
95
|
+
User-Agent:
|
96
|
+
- contactology/0.1.2 (Rubygems; Ruby 1.9.3 x86_64-darwin12.2.0)
|
97
|
+
response:
|
98
|
+
status:
|
99
|
+
code: 200
|
100
|
+
message: OK
|
101
|
+
headers:
|
102
|
+
X-Powered-By:
|
103
|
+
- PHP/5.2.10
|
104
|
+
Set-Cookie:
|
105
|
+
- PHPSESSID=bc27c31afcca94af2353f1ef58a3071c; path=/
|
106
|
+
Expires:
|
107
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
108
|
+
Cache-Control:
|
109
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
110
|
+
Pragma:
|
111
|
+
- no-cache
|
112
|
+
Content-Type:
|
113
|
+
- text/plain;charset=UTF-8
|
114
|
+
Connection:
|
115
|
+
- close
|
116
|
+
Transfer-Encoding:
|
117
|
+
- chunked
|
118
|
+
Date:
|
119
|
+
- Wed, 20 Feb 2013 05:16:25 GMT
|
120
|
+
Server:
|
121
|
+
- lighttpd/1.4.28
|
122
|
+
body:
|
123
|
+
encoding: US-ASCII
|
124
|
+
string: 'false'
|
125
|
+
http_version:
|
126
|
+
recorded_at: Wed, 20 Feb 2013 05:16:25 GMT
|
127
|
+
- request:
|
128
|
+
method: get
|
129
|
+
uri: https://api.emailcampaigns.net/2/REST/?email=suppressed@example.com&key=%{API_KEY}&method=Contact_Delete
|
130
|
+
body:
|
131
|
+
encoding: US-ASCII
|
132
|
+
string: ''
|
133
|
+
headers:
|
134
|
+
Accept:
|
135
|
+
- application/json
|
136
|
+
User-Agent:
|
137
|
+
- contactology/0.1.2 (Rubygems; Ruby 1.9.3 x86_64-darwin12.2.0)
|
138
|
+
response:
|
139
|
+
status:
|
140
|
+
code: 200
|
141
|
+
message: OK
|
142
|
+
headers:
|
143
|
+
X-Powered-By:
|
144
|
+
- PHP/5.2.10
|
145
|
+
Set-Cookie:
|
146
|
+
- PHPSESSID=af6ebf112ba5c0c2dbf949d05e827f0d; path=/
|
147
|
+
Expires:
|
148
|
+
- Thu, 19 Nov 1981 08:52:00 GMT
|
149
|
+
Cache-Control:
|
150
|
+
- no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
151
|
+
Pragma:
|
152
|
+
- no-cache
|
153
|
+
Content-Type:
|
154
|
+
- text/plain;charset=UTF-8
|
155
|
+
Connection:
|
156
|
+
- close
|
157
|
+
Transfer-Encoding:
|
158
|
+
- chunked
|
159
|
+
Date:
|
160
|
+
- Wed, 20 Feb 2013 05:16:25 GMT
|
161
|
+
Server:
|
162
|
+
- lighttpd/1.4.28
|
163
|
+
body:
|
164
|
+
encoding: US-ASCII
|
165
|
+
string: 'false'
|
166
|
+
http_version:
|
167
|
+
recorded_at: Wed, 20 Feb 2013 05:16:26 GMT
|
168
|
+
recorded_with: VCR 2.4.0
|