mailgun-ruby 1.2.11 → 1.2.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1065 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.mailgun.net/v3/integration-test.domain.invalid/templates
6
+ body:
7
+ encoding: UTF-8
8
+ string: name=test.template&description=Test&template=%7B%7Bfname%7D%7D+%7B%7Blname%7D%7D&comment=test+comment&headers=%7B%22Subject%22%3A+%22%7B%7Bsubject%7D%7D%22%7D&tag=V1
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ User-Agent:
13
+ - rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
14
+ Content-Length:
15
+ - '165'
16
+ Content-Type:
17
+ - application/x-www-form-urlencoded
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ Host:
21
+ - api.mailgun.net
22
+ Authorization:
23
+ - Basic YXBpOmFjZWM0YzA1YjFmMmZjZWJjZjY4ZGE2NDVkYTAwMjMxLTQxM2UzNzNjLTBhYWQzYzM3
24
+ response:
25
+ status:
26
+ code: 200
27
+ message: OK
28
+ headers:
29
+ Access-Control-Allow-Credentials:
30
+ - 'true'
31
+ Access-Control-Allow-Origin:
32
+ - "*"
33
+ Cache-Control:
34
+ - no-store
35
+ Content-Length:
36
+ - '450'
37
+ Content-Type:
38
+ - application/json; charset=utf-8
39
+ Date:
40
+ - Sun, 15 Oct 2023 15:33:22 GMT
41
+ Strict-Transport-Security:
42
+ - max-age=63072000; includeSubDomains
43
+ X-Mailgun-Key-Id:
44
+ - 413e373c-0aad3c37
45
+ X-Xss-Protection:
46
+ - 1; mode=block
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"message":"template has been stored","template":{"name":"test.template","description":"Test","createdAt":"Sun,
50
+ 15 Oct 2023 15:33:22 UTC","createdBy":"","id":"b6894275-acd8-49da-ae60-04ea61f860e0","version":{"tag":"v1","template":"{{fname}}
51
+ {{lname}}","engine":"handlebars","mjml":"","createdAt":"Sun, 15 Oct 2023 15:33:22
52
+ UTC","comment":"test comment","active":true,"id":"2eb9b5cf-2a5d-4b12-a3bb-74bd4ef946aa","headers":{"Subject":"{{subject}}"}}}}
53
+
54
+ '
55
+ http_version:
56
+ recorded_at: Sun, 15 Oct 2023 15:33:22 GMT
57
+ - request:
58
+ method: get
59
+ uri: https://api.mailgun.net/v3/integration-test.domain.invalid/templates/test.template
60
+ body:
61
+ encoding: US-ASCII
62
+ string: ''
63
+ headers:
64
+ Accept:
65
+ - "*/*"
66
+ User-Agent:
67
+ - rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
68
+ Accept-Encoding:
69
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
70
+ Host:
71
+ - api.mailgun.net
72
+ Authorization:
73
+ - Basic YXBpOmFjZWM0YzA1YjFmMmZjZWJjZjY4ZGE2NDVkYTAwMjMxLTQxM2UzNzNjLTBhYWQzYzM3
74
+ response:
75
+ status:
76
+ code: 200
77
+ message: OK
78
+ headers:
79
+ Access-Control-Allow-Credentials:
80
+ - 'true'
81
+ Access-Control-Allow-Origin:
82
+ - "*"
83
+ Cache-Control:
84
+ - no-store
85
+ Content-Length:
86
+ - '162'
87
+ Content-Type:
88
+ - application/json; charset=utf-8
89
+ Date:
90
+ - Sun, 15 Oct 2023 15:37:06 GMT
91
+ Strict-Transport-Security:
92
+ - max-age=63072000; includeSubDomains
93
+ X-Mailgun-Key-Id:
94
+ - 413e373c-0aad3c37
95
+ X-Xss-Protection:
96
+ - 1; mode=block
97
+ body:
98
+ encoding: UTF-8
99
+ string: '{"template":{"name":"test.template","description":"Test","createdAt":"Sun,
100
+ 15 Oct 2023 15:33:22 UTC","createdBy":"","id":"b6894275-acd8-49da-ae60-04ea61f860e0"}}
101
+
102
+ '
103
+ http_version:
104
+ recorded_at: Sun, 15 Oct 2023 15:37:06 GMT
105
+ - request:
106
+ method: put
107
+ uri: https://api.mailgun.net/v3/integration-test.domain.invalid/templates/test.template
108
+ body:
109
+ encoding: UTF-8
110
+ string: description=Updated+Description
111
+ headers:
112
+ Accept:
113
+ - "*/*"
114
+ User-Agent:
115
+ - rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
116
+ Content-Length:
117
+ - '31'
118
+ Content-Type:
119
+ - application/x-www-form-urlencoded
120
+ Accept-Encoding:
121
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
122
+ Host:
123
+ - api.mailgun.net
124
+ Authorization:
125
+ - Basic YXBpOmFjZWM0YzA1YjFmMmZjZWJjZjY4ZGE2NDVkYTAwMjMxLTQxM2UzNzNjLTBhYWQzYzM3
126
+ response:
127
+ status:
128
+ code: 200
129
+ message: OK
130
+ headers:
131
+ Access-Control-Allow-Credentials:
132
+ - 'true'
133
+ Access-Control-Allow-Origin:
134
+ - "*"
135
+ Cache-Control:
136
+ - no-store
137
+ Content-Length:
138
+ - '76'
139
+ Content-Type:
140
+ - application/json; charset=utf-8
141
+ Date:
142
+ - Sun, 15 Oct 2023 15:39:57 GMT
143
+ Strict-Transport-Security:
144
+ - max-age=63072000; includeSubDomains
145
+ X-Mailgun-Key-Id:
146
+ - 413e373c-0aad3c37
147
+ X-Xss-Protection:
148
+ - 1; mode=block
149
+ body:
150
+ encoding: UTF-8
151
+ string: '{"message":"template has been updated","template":{"name":"test.template"}}
152
+
153
+ '
154
+ http_version:
155
+ recorded_at: Sun, 15 Oct 2023 15:39:57 GMT
156
+ - request:
157
+ method: get
158
+ uri: https://api.mailgun.net/v3/integration-test.domain.invalid/templates
159
+ body:
160
+ encoding: US-ASCII
161
+ string: ''
162
+ headers:
163
+ Accept:
164
+ - "*/*"
165
+ User-Agent:
166
+ - rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
167
+ Accept-Encoding:
168
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
169
+ Host:
170
+ - api.mailgun.net
171
+ Authorization:
172
+ - Basic YXBpOmFjZWM0YzA1YjFmMmZjZWJjZjY4ZGE2NDVkYTAwMjMxLTQxM2UzNzNjLTBhYWQzYzM3
173
+ response:
174
+ status:
175
+ code: 200
176
+ message: OK
177
+ headers:
178
+ Access-Control-Allow-Credentials:
179
+ - 'true'
180
+ Access-Control-Allow-Origin:
181
+ - "*"
182
+ Cache-Control:
183
+ - no-store
184
+ Content-Length:
185
+ - '1138'
186
+ Content-Type:
187
+ - application/json; charset=utf-8
188
+ Date:
189
+ - Sun, 15 Oct 2023 17:09:40 GMT
190
+ Strict-Transport-Security:
191
+ - max-age=63072000; includeSubDomains
192
+ X-Mailgun-Key-Id:
193
+ - 413e373c-0aad3c37
194
+ X-Xss-Protection:
195
+ - 1; mode=block
196
+ body:
197
+ encoding: UTF-8
198
+ string: '{"items":[{"name":"api test","description":"Petro","createdAt":"Sun,
199
+ 17 Sep 2023 09:16:33 UTC","createdBy":"","id":"03474355-4818-492f-8a40-7dec43354bf9"},{"name":"petro.test","description":"Petro","createdAt":"Sun,
200
+ 08 Oct 2023 13:52:28 UTC","createdBy":"","id":"1dc4114c-6eea-41df-a66c-6ad78a481629"},{"name":"test
201
+ name","description":"template description","createdAt":"Sun, 17 Sep 2023 09:07:40
202
+ UTC","createdBy":"","id":"4e35b965-3151-421d-8523-4b100b8e0428"},{"name":"test.template","description":"Updated
203
+ Description","createdAt":"Sun, 15 Oct 2023 15:33:22 UTC","createdBy":"","id":"b6894275-acd8-49da-ae60-04ea61f860e0"}],"paging":{"first":"https://api.mailgun.net/v3/integration-test.domain.invalid/templates?limit=100","last":"https://api.mailgun.net/v3/integration-test.domain.invalid/templates?page=last&limit=100","next":"https://api.mailgun.net/v3/integration-test.domain.invalid/templates?page=next&p=test.template&limit=100","previous":"https://api.mailgun.net/v3/integration-test.domain.invalid/templates?page=previous&p=api+test&limit=100"}}
204
+
205
+ '
206
+ http_version:
207
+ recorded_at: Sun, 15 Oct 2023 17:09:40 GMT
208
+ - request:
209
+ method: delete
210
+ uri: https://api.mailgun.net/v3/integration-test.domain.invalid/templates/test.template
211
+ body:
212
+ encoding: US-ASCII
213
+ string: ''
214
+ headers:
215
+ Accept:
216
+ - "*/*"
217
+ User-Agent:
218
+ - rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
219
+ Accept-Encoding:
220
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
221
+ Host:
222
+ - api.mailgun.net
223
+ Authorization:
224
+ - Basic YXBpOmFjZWM0YzA1YjFmMmZjZWJjZjY4ZGE2NDVkYTAwMjMxLTQxM2UzNzNjLTBhYWQzYzM3
225
+ response:
226
+ status:
227
+ code: 200
228
+ message: OK
229
+ headers:
230
+ Access-Control-Allow-Credentials:
231
+ - 'true'
232
+ Access-Control-Allow-Origin:
233
+ - "*"
234
+ Cache-Control:
235
+ - no-store
236
+ Content-Length:
237
+ - '76'
238
+ Content-Type:
239
+ - application/json; charset=utf-8
240
+ Date:
241
+ - Sun, 15 Oct 2023 17:13:58 GMT
242
+ Strict-Transport-Security:
243
+ - max-age=63072000; includeSubDomains
244
+ X-Mailgun-Key-Id:
245
+ - 413e373c-0aad3c37
246
+ X-Xss-Protection:
247
+ - 1; mode=block
248
+ body:
249
+ encoding: UTF-8
250
+ string: '{"message":"template has been deleted","template":{"name":"test.template"}}
251
+
252
+ '
253
+ http_version:
254
+ recorded_at: Sun, 15 Oct 2023 17:13:58 GMT
255
+ - request:
256
+ method: delete
257
+ uri: https://api.mailgun.net/v3/integration-test.domain.invalid/templates
258
+ body:
259
+ encoding: US-ASCII
260
+ string: ''
261
+ headers:
262
+ Accept:
263
+ - "*/*"
264
+ User-Agent:
265
+ - rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
266
+ Accept-Encoding:
267
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
268
+ Host:
269
+ - api.mailgun.net
270
+ Authorization:
271
+ - Basic YXBpOmFjZWM0YzA1YjFmMmZjZWJjZjY4ZGE2NDVkYTAwMjMxLTQxM2UzNzNjLTBhYWQzYzM3
272
+ response:
273
+ status:
274
+ code: 200
275
+ message: OK
276
+ headers:
277
+ Access-Control-Allow-Credentials:
278
+ - 'true'
279
+ Access-Control-Allow-Origin:
280
+ - "*"
281
+ Cache-Control:
282
+ - no-store
283
+ Content-Length:
284
+ - '42'
285
+ Content-Type:
286
+ - application/json; charset=utf-8
287
+ Date:
288
+ - Sun, 15 Oct 2023 17:15:57 GMT
289
+ Strict-Transport-Security:
290
+ - max-age=63072000; includeSubDomains
291
+ X-Mailgun-Key-Id:
292
+ - 413e373c-0aad3c37
293
+ X-Xss-Protection:
294
+ - 1; mode=block
295
+ body:
296
+ encoding: UTF-8
297
+ string: '{"message":"templates have been deleted"}
298
+
299
+ '
300
+ http_version:
301
+ recorded_at: Sun, 15 Oct 2023 17:15:57 GMT
302
+ - request:
303
+ method: post
304
+ uri: https://api.mailgun.net/v3/integration-test.domain.invalid/templates/test.template/versions
305
+ body:
306
+ encoding: UTF-8
307
+ string: template=%7B%7Bfname%7D%7D+%7B%7Blname%7D%7D&comment=test+comment&headers=%7B%22Subject%22%3A+%22%7B%7Bsubject%7D%7D%22%7D&tag=V2&active=yes
308
+ headers:
309
+ Accept:
310
+ - "*/*"
311
+ User-Agent:
312
+ - rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
313
+ Content-Length:
314
+ - '140'
315
+ Content-Type:
316
+ - application/x-www-form-urlencoded
317
+ Accept-Encoding:
318
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
319
+ Host:
320
+ - api.mailgun.net
321
+ Authorization:
322
+ - Basic YXBpOmFjZWM0YzA1YjFmMmZjZWJjZjY4ZGE2NDVkYTAwMjMxLTQxM2UzNzNjLTBhYWQzYzM3
323
+ response:
324
+ status:
325
+ code: 200
326
+ message: OK
327
+ headers:
328
+ Access-Control-Allow-Credentials:
329
+ - 'true'
330
+ Access-Control-Allow-Origin:
331
+ - "*"
332
+ Cache-Control:
333
+ - no-store
334
+ Content-Length:
335
+ - '469'
336
+ Content-Type:
337
+ - application/json; charset=utf-8
338
+ Date:
339
+ - Sun, 15 Oct 2023 17:19:10 GMT
340
+ Strict-Transport-Security:
341
+ - max-age=63072000; includeSubDomains
342
+ X-Mailgun-Key-Id:
343
+ - 413e373c-0aad3c37
344
+ X-Xss-Protection:
345
+ - 1; mode=block
346
+ body:
347
+ encoding: UTF-8
348
+ string: '{"message":"new version of the template has been stored","template":{"name":"test.template","description":"Test","createdAt":"Sun,
349
+ 15 Oct 2023 17:16:39 UTC","createdBy":"","id":"7cc6ae25-4d2c-450e-b771-b0611328b8b0","version":{"tag":"v2","template":"{{fname}}
350
+ {{lname}}","engine":"handlebars","mjml":"","createdAt":"Sun, 15 Oct 2023 17:19:10
351
+ UTC","comment":"test comment","active":true,"id":"36616e31-3a79-490f-9202-4d388d67b164","headers":{"Subject":"{{subject}}"}}}}
352
+
353
+ '
354
+ http_version:
355
+ recorded_at: Sun, 15 Oct 2023 17:19:10 GMT
356
+ - request:
357
+ method: get
358
+ uri: https://api.mailgun.net/v3/integration-test.domain.invalid/templates/test.template/versions/v2
359
+ body:
360
+ encoding: US-ASCII
361
+ string: ''
362
+ headers:
363
+ Accept:
364
+ - "*/*"
365
+ User-Agent:
366
+ - rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
367
+ Accept-Encoding:
368
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
369
+ Host:
370
+ - api.mailgun.net
371
+ Authorization:
372
+ - Basic YXBpOmFjZWM0YzA1YjFmMmZjZWJjZjY4ZGE2NDVkYTAwMjMxLTQxM2UzNzNjLTBhYWQzYzM3
373
+ response:
374
+ status:
375
+ code: 200
376
+ message: OK
377
+ headers:
378
+ Access-Control-Allow-Credentials:
379
+ - 'true'
380
+ Access-Control-Allow-Origin:
381
+ - "*"
382
+ Cache-Control:
383
+ - no-store
384
+ Content-Length:
385
+ - '413'
386
+ Content-Type:
387
+ - application/json; charset=utf-8
388
+ Date:
389
+ - Sun, 15 Oct 2023 17:21:10 GMT
390
+ Strict-Transport-Security:
391
+ - max-age=63072000; includeSubDomains
392
+ X-Mailgun-Key-Id:
393
+ - 413e373c-0aad3c37
394
+ X-Xss-Protection:
395
+ - 1; mode=block
396
+ body:
397
+ encoding: UTF-8
398
+ string: '{"template":{"name":"test.template","description":"Test","createdAt":"Sun,
399
+ 15 Oct 2023 17:16:39 UTC","createdBy":"","id":"7cc6ae25-4d2c-450e-b771-b0611328b8b0","version":{"tag":"v2","template":"{{fname}}
400
+ {{lname}}","engine":"handlebars","mjml":"","createdAt":"Sun, 15 Oct 2023 17:19:10
401
+ UTC","comment":"test comment","active":true,"id":"36616e31-3a79-490f-9202-4d388d67b164","headers":{"Subject":"{{subject}}"}}}}
402
+
403
+ '
404
+ http_version:
405
+ recorded_at: Sun, 15 Oct 2023 17:21:10 GMT
406
+ - request:
407
+ method: put
408
+ uri: https://api.mailgun.net/v3/integration-test.domain.invalid/templates/test.template/versions/v2
409
+ body:
410
+ encoding: UTF-8
411
+ string: template=%7B%7Bfname%7D%7D+%7B%7Blname%7D%7D&comment=test+comment+2&headers=%7B%22Subject%22%3A+%22%7B%7Bsubject%7D%7D%22%7D
412
+ headers:
413
+ Accept:
414
+ - "*/*"
415
+ User-Agent:
416
+ - rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
417
+ Content-Length:
418
+ - '124'
419
+ Content-Type:
420
+ - application/x-www-form-urlencoded
421
+ Accept-Encoding:
422
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
423
+ Host:
424
+ - api.mailgun.net
425
+ Authorization:
426
+ - Basic YXBpOmFjZWM0YzA1YjFmMmZjZWJjZjY4ZGE2NDVkYTAwMjMxLTQxM2UzNzNjLTBhYWQzYzM3
427
+ response:
428
+ status:
429
+ code: 200
430
+ message: OK
431
+ headers:
432
+ Access-Control-Allow-Credentials:
433
+ - 'true'
434
+ Access-Control-Allow-Origin:
435
+ - "*"
436
+ Cache-Control:
437
+ - no-store
438
+ Content-Length:
439
+ - '98'
440
+ Content-Type:
441
+ - application/json; charset=utf-8
442
+ Date:
443
+ - Sun, 15 Oct 2023 17:23:28 GMT
444
+ Strict-Transport-Security:
445
+ - max-age=63072000; includeSubDomains
446
+ X-Mailgun-Key-Id:
447
+ - 413e373c-0aad3c37
448
+ X-Xss-Protection:
449
+ - 1; mode=block
450
+ body:
451
+ encoding: UTF-8
452
+ string: '{"message":"version has been updated","template":{"name":"test.template","version":{"tag":"v2"}}}
453
+
454
+ '
455
+ http_version:
456
+ recorded_at: Sun, 15 Oct 2023 17:23:28 GMT
457
+ - request:
458
+ method: get
459
+ uri: https://api.mailgun.net/v3/integration-test.domain.invalid/templates/test.template/versions
460
+ body:
461
+ encoding: US-ASCII
462
+ string: ''
463
+ headers:
464
+ Accept:
465
+ - "*/*"
466
+ User-Agent:
467
+ - rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
468
+ Accept-Encoding:
469
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
470
+ Host:
471
+ - api.mailgun.net
472
+ Authorization:
473
+ - Basic YXBpOmFjZWM0YzA1YjFmMmZjZWJjZjY4ZGE2NDVkYTAwMjMxLTQxM2UzNzNjLTBhYWQzYzM3
474
+ response:
475
+ status:
476
+ code: 200
477
+ message: OK
478
+ headers:
479
+ Access-Control-Allow-Credentials:
480
+ - 'true'
481
+ Access-Control-Allow-Origin:
482
+ - "*"
483
+ Cache-Control:
484
+ - no-store
485
+ Content-Length:
486
+ - '1106'
487
+ Content-Type:
488
+ - application/json; charset=utf-8
489
+ Date:
490
+ - Sun, 15 Oct 2023 17:26:01 GMT
491
+ Strict-Transport-Security:
492
+ - max-age=63072000; includeSubDomains
493
+ X-Mailgun-Key-Id:
494
+ - 413e373c-0aad3c37
495
+ X-Xss-Protection:
496
+ - 1; mode=block
497
+ body:
498
+ encoding: UTF-8
499
+ string: '{"template":{"name":"test.template","description":"Test","createdAt":"Sun,
500
+ 15 Oct 2023 17:16:39 UTC","createdBy":"","id":"7cc6ae25-4d2c-450e-b771-b0611328b8b0","versions":[{"tag":"v1","engine":"handlebars","mjml":"","createdAt":"Sun,
501
+ 15 Oct 2023 17:16:39 UTC","comment":"test comment","active":false,"id":"695f8e2c-ed36-4fb8-bed2-903afa458768"},{"tag":"v2","engine":"handlebars","mjml":"","createdAt":"Sun,
502
+ 15 Oct 2023 17:19:10 UTC","comment":"test comment 2","active":true,"id":"36616e31-3a79-490f-9202-4d388d67b164"}]},"paging":{"first":"https://api.mailgun.net/v3/integration-test.domain.invalid/templates/test.template/versions?limit=100","last":"https://api.mailgun.net/v3/integration-test.domain.invalid/templates/test.template/versions?page=last&limit=100","next":"https://api.mailgun.net/v3/integration-test.domain.invalid/templates/test.template/versions?page=next&p=v2&limit=100","previous":"https://api.mailgun.net/v3/integration-test.domain.invalid/templates/test.template/versions?page=previous&p=v1&limit=100"}}
503
+
504
+ '
505
+ http_version:
506
+ recorded_at: Sun, 15 Oct 2023 17:26:01 GMT
507
+ - request:
508
+ method: delete
509
+ uri: https://api.mailgun.net/v3/integration-test.domain.invalid/templates/test.template/versions/v2
510
+ body:
511
+ encoding: US-ASCII
512
+ string: ''
513
+ headers:
514
+ Accept:
515
+ - "*/*"
516
+ User-Agent:
517
+ - rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
518
+ Accept-Encoding:
519
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
520
+ Host:
521
+ - api.mailgun.net
522
+ Authorization:
523
+ - Basic YXBpOmFjZWM0YzA1YjFmMmZjZWJjZjY4ZGE2NDVkYTAwMjMxLTQxM2UzNzNjLTBhYWQzYzM3
524
+ response:
525
+ status:
526
+ code: 200
527
+ message: OK
528
+ headers:
529
+ Access-Control-Allow-Credentials:
530
+ - 'true'
531
+ Access-Control-Allow-Origin:
532
+ - "*"
533
+ Cache-Control:
534
+ - no-store
535
+ Content-Length:
536
+ - '98'
537
+ Content-Type:
538
+ - application/json; charset=utf-8
539
+ Date:
540
+ - Sun, 15 Oct 2023 17:29:17 GMT
541
+ Strict-Transport-Security:
542
+ - max-age=63072000; includeSubDomains
543
+ X-Mailgun-Key-Id:
544
+ - 413e373c-0aad3c37
545
+ X-Xss-Protection:
546
+ - 1; mode=block
547
+ body:
548
+ encoding: UTF-8
549
+ string: '{"message":"version has been deleted","template":{"name":"test.template","version":{"tag":"v2"}}}
550
+
551
+ '
552
+ http_version:
553
+ recorded_at: Sun, 15 Oct 2023 17:29:17 GMT
554
+ - request:
555
+ method: post
556
+ uri: https://api.mailgun.net/v3/integration-test.domain.invalid/templates
557
+ body:
558
+ encoding: UTF-8
559
+ string: name=test.template&description=Test&template=%7B%7Bfname%7D%7D+%7B%7Blname%7D%7D&comment=test+comment&headers=%7B%22Subject%22%3A+%22%7B%7Bsubject%7D%7D%22%7D&tag=V1
560
+ headers:
561
+ Accept:
562
+ - "*/*"
563
+ User-Agent:
564
+ - rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
565
+ Content-Length:
566
+ - '165'
567
+ Content-Type:
568
+ - application/x-www-form-urlencoded
569
+ Accept-Encoding:
570
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
571
+ Host:
572
+ - api.mailgun.net
573
+ Authorization:
574
+ - Basic YXBpOmQ5MTViNWNkYjlhNTgzNjg1ZDhmM2ZiMWJlYzBmMjBmLTA3YmM3YjA1LWZhNDgxNmEx
575
+ response:
576
+ status:
577
+ code: 404
578
+ message: Not Found
579
+ headers:
580
+ Access-Control-Allow-Credentials:
581
+ - 'true'
582
+ Access-Control-Allow-Origin:
583
+ - "*"
584
+ Cache-Control:
585
+ - no-store
586
+ Content-Length:
587
+ - '31'
588
+ Content-Type:
589
+ - application/json; charset=utf-8
590
+ Date:
591
+ - Sun, 15 Oct 2023 17:30:16 GMT
592
+ Strict-Transport-Security:
593
+ - max-age=63072000; includeSubDomains
594
+ X-Xss-Protection:
595
+ - 1; mode=block
596
+ body:
597
+ encoding: UTF-8
598
+ string: '{"message":"domain not found"}
599
+
600
+ '
601
+ http_version:
602
+ recorded_at: Sun, 15 Oct 2023 17:30:16 GMT
603
+ - request:
604
+ method: get
605
+ uri: https://api.mailgun.net/v3/integration-test.domain.invalid/templates/test.template
606
+ body:
607
+ encoding: US-ASCII
608
+ string: ''
609
+ headers:
610
+ Accept:
611
+ - "*/*"
612
+ User-Agent:
613
+ - rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
614
+ Accept-Encoding:
615
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
616
+ Host:
617
+ - api.mailgun.net
618
+ Authorization:
619
+ - Basic YXBpOmQ5MTViNWNkYjlhNTgzNjg1ZDhmM2ZiMWJlYzBmMjBmLTA3YmM3YjA1LWZhNDgxNmEx
620
+ response:
621
+ status:
622
+ code: 404
623
+ message: Not Found
624
+ headers:
625
+ Access-Control-Allow-Credentials:
626
+ - 'true'
627
+ Access-Control-Allow-Origin:
628
+ - "*"
629
+ Cache-Control:
630
+ - no-store
631
+ Content-Length:
632
+ - '31'
633
+ Content-Type:
634
+ - application/json; charset=utf-8
635
+ Date:
636
+ - Sun, 15 Oct 2023 17:30:17 GMT
637
+ Strict-Transport-Security:
638
+ - max-age=63072000; includeSubDomains
639
+ X-Xss-Protection:
640
+ - 1; mode=block
641
+ body:
642
+ encoding: UTF-8
643
+ string: '{"message":"domain not found"}
644
+
645
+ '
646
+ http_version:
647
+ recorded_at: Sun, 15 Oct 2023 17:30:17 GMT
648
+ - request:
649
+ method: put
650
+ uri: https://api.mailgun.net/v3/integration-test.domain.invalid/templates/test.template
651
+ body:
652
+ encoding: UTF-8
653
+ string: description=Updated+Description
654
+ headers:
655
+ Accept:
656
+ - "*/*"
657
+ User-Agent:
658
+ - rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
659
+ Content-Length:
660
+ - '31'
661
+ Content-Type:
662
+ - application/x-www-form-urlencoded
663
+ Accept-Encoding:
664
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
665
+ Host:
666
+ - api.mailgun.net
667
+ Authorization:
668
+ - Basic YXBpOmQ5MTViNWNkYjlhNTgzNjg1ZDhmM2ZiMWJlYzBmMjBmLTA3YmM3YjA1LWZhNDgxNmEx
669
+ response:
670
+ status:
671
+ code: 404
672
+ message: Not Found
673
+ headers:
674
+ Access-Control-Allow-Credentials:
675
+ - 'true'
676
+ Access-Control-Allow-Origin:
677
+ - "*"
678
+ Cache-Control:
679
+ - no-store
680
+ Content-Length:
681
+ - '31'
682
+ Content-Type:
683
+ - application/json; charset=utf-8
684
+ Date:
685
+ - Sun, 15 Oct 2023 17:30:18 GMT
686
+ Strict-Transport-Security:
687
+ - max-age=63072000; includeSubDomains
688
+ X-Xss-Protection:
689
+ - 1; mode=block
690
+ body:
691
+ encoding: UTF-8
692
+ string: '{"message":"domain not found"}
693
+
694
+ '
695
+ http_version:
696
+ recorded_at: Sun, 15 Oct 2023 17:30:18 GMT
697
+ - request:
698
+ method: get
699
+ uri: https://api.mailgun.net/v3/integration-test.domain.invalid/templates
700
+ body:
701
+ encoding: US-ASCII
702
+ string: ''
703
+ headers:
704
+ Accept:
705
+ - "*/*"
706
+ User-Agent:
707
+ - rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
708
+ Accept-Encoding:
709
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
710
+ Host:
711
+ - api.mailgun.net
712
+ Authorization:
713
+ - Basic YXBpOmQ5MTViNWNkYjlhNTgzNjg1ZDhmM2ZiMWJlYzBmMjBmLTA3YmM3YjA1LWZhNDgxNmEx
714
+ response:
715
+ status:
716
+ code: 404
717
+ message: Not Found
718
+ headers:
719
+ Access-Control-Allow-Credentials:
720
+ - 'true'
721
+ Access-Control-Allow-Origin:
722
+ - "*"
723
+ Cache-Control:
724
+ - no-store
725
+ Content-Length:
726
+ - '31'
727
+ Content-Type:
728
+ - application/json; charset=utf-8
729
+ Date:
730
+ - Sun, 15 Oct 2023 17:30:18 GMT
731
+ Strict-Transport-Security:
732
+ - max-age=63072000; includeSubDomains
733
+ X-Xss-Protection:
734
+ - 1; mode=block
735
+ body:
736
+ encoding: UTF-8
737
+ string: '{"message":"domain not found"}
738
+
739
+ '
740
+ http_version:
741
+ recorded_at: Sun, 15 Oct 2023 17:30:18 GMT
742
+ - request:
743
+ method: delete
744
+ uri: https://api.mailgun.net/v3/integration-test.domain.invalid/templates/test.template
745
+ body:
746
+ encoding: US-ASCII
747
+ string: ''
748
+ headers:
749
+ Accept:
750
+ - "*/*"
751
+ User-Agent:
752
+ - rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
753
+ Accept-Encoding:
754
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
755
+ Host:
756
+ - api.mailgun.net
757
+ Authorization:
758
+ - Basic YXBpOmQ5MTViNWNkYjlhNTgzNjg1ZDhmM2ZiMWJlYzBmMjBmLTA3YmM3YjA1LWZhNDgxNmEx
759
+ response:
760
+ status:
761
+ code: 404
762
+ message: Not Found
763
+ headers:
764
+ Access-Control-Allow-Credentials:
765
+ - 'true'
766
+ Access-Control-Allow-Origin:
767
+ - "*"
768
+ Cache-Control:
769
+ - no-store
770
+ Content-Length:
771
+ - '31'
772
+ Content-Type:
773
+ - application/json; charset=utf-8
774
+ Date:
775
+ - Sun, 15 Oct 2023 17:30:19 GMT
776
+ Strict-Transport-Security:
777
+ - max-age=63072000; includeSubDomains
778
+ X-Xss-Protection:
779
+ - 1; mode=block
780
+ body:
781
+ encoding: UTF-8
782
+ string: '{"message":"domain not found"}
783
+
784
+ '
785
+ http_version:
786
+ recorded_at: Sun, 15 Oct 2023 17:30:19 GMT
787
+ - request:
788
+ method: delete
789
+ uri: https://api.mailgun.net/v3/integration-test.domain.invalid/templates
790
+ body:
791
+ encoding: US-ASCII
792
+ string: ''
793
+ headers:
794
+ Accept:
795
+ - "*/*"
796
+ User-Agent:
797
+ - rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
798
+ Accept-Encoding:
799
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
800
+ Host:
801
+ - api.mailgun.net
802
+ Authorization:
803
+ - Basic YXBpOmQ5MTViNWNkYjlhNTgzNjg1ZDhmM2ZiMWJlYzBmMjBmLTA3YmM3YjA1LWZhNDgxNmEx
804
+ response:
805
+ status:
806
+ code: 404
807
+ message: Not Found
808
+ headers:
809
+ Access-Control-Allow-Credentials:
810
+ - 'true'
811
+ Access-Control-Allow-Origin:
812
+ - "*"
813
+ Cache-Control:
814
+ - no-store
815
+ Content-Length:
816
+ - '31'
817
+ Content-Type:
818
+ - application/json; charset=utf-8
819
+ Date:
820
+ - Sun, 15 Oct 2023 17:30:19 GMT
821
+ Strict-Transport-Security:
822
+ - max-age=63072000; includeSubDomains
823
+ X-Xss-Protection:
824
+ - 1; mode=block
825
+ body:
826
+ encoding: UTF-8
827
+ string: '{"message":"domain not found"}
828
+
829
+ '
830
+ http_version:
831
+ recorded_at: Sun, 15 Oct 2023 17:30:19 GMT
832
+ - request:
833
+ method: post
834
+ uri: https://api.mailgun.net/v3/integration-test.domain.invalid/templates/test.template/versions
835
+ body:
836
+ encoding: UTF-8
837
+ string: template=%7B%7Bfname%7D%7D+%7B%7Blname%7D%7D&comment=test+comment&headers=%7B%22Subject%22%3A+%22%7B%7Bsubject%7D%7D%22%7D&tag=v2&active=yes
838
+ headers:
839
+ Accept:
840
+ - "*/*"
841
+ User-Agent:
842
+ - rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
843
+ Content-Length:
844
+ - '140'
845
+ Content-Type:
846
+ - application/x-www-form-urlencoded
847
+ Accept-Encoding:
848
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
849
+ Host:
850
+ - api.mailgun.net
851
+ Authorization:
852
+ - Basic YXBpOmQ5MTViNWNkYjlhNTgzNjg1ZDhmM2ZiMWJlYzBmMjBmLTA3YmM3YjA1LWZhNDgxNmEx
853
+ response:
854
+ status:
855
+ code: 404
856
+ message: Not Found
857
+ headers:
858
+ Access-Control-Allow-Credentials:
859
+ - 'true'
860
+ Access-Control-Allow-Origin:
861
+ - "*"
862
+ Cache-Control:
863
+ - no-store
864
+ Content-Length:
865
+ - '31'
866
+ Content-Type:
867
+ - application/json; charset=utf-8
868
+ Date:
869
+ - Sun, 15 Oct 2023 17:30:20 GMT
870
+ Strict-Transport-Security:
871
+ - max-age=63072000; includeSubDomains
872
+ X-Xss-Protection:
873
+ - 1; mode=block
874
+ body:
875
+ encoding: UTF-8
876
+ string: '{"message":"domain not found"}
877
+
878
+ '
879
+ http_version:
880
+ recorded_at: Sun, 15 Oct 2023 17:30:20 GMT
881
+ - request:
882
+ method: get
883
+ uri: https://api.mailgun.net/v3/integration-test.domain.invalid/templates/test.template/versions/v2
884
+ body:
885
+ encoding: US-ASCII
886
+ string: ''
887
+ headers:
888
+ Accept:
889
+ - "*/*"
890
+ User-Agent:
891
+ - rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
892
+ Accept-Encoding:
893
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
894
+ Host:
895
+ - api.mailgun.net
896
+ Authorization:
897
+ - Basic YXBpOmQ5MTViNWNkYjlhNTgzNjg1ZDhmM2ZiMWJlYzBmMjBmLTA3YmM3YjA1LWZhNDgxNmEx
898
+ response:
899
+ status:
900
+ code: 404
901
+ message: Not Found
902
+ headers:
903
+ Access-Control-Allow-Credentials:
904
+ - 'true'
905
+ Access-Control-Allow-Origin:
906
+ - "*"
907
+ Cache-Control:
908
+ - no-store
909
+ Content-Length:
910
+ - '31'
911
+ Content-Type:
912
+ - application/json; charset=utf-8
913
+ Date:
914
+ - Sun, 15 Oct 2023 17:30:20 GMT
915
+ Strict-Transport-Security:
916
+ - max-age=63072000; includeSubDomains
917
+ X-Xss-Protection:
918
+ - 1; mode=block
919
+ body:
920
+ encoding: UTF-8
921
+ string: '{"message":"domain not found"}
922
+
923
+ '
924
+ http_version:
925
+ recorded_at: Sun, 15 Oct 2023 17:30:21 GMT
926
+ - request:
927
+ method: put
928
+ uri: https://api.mailgun.net/v3/integration-test.domain.invalid/templates/test.template/versions/v2
929
+ body:
930
+ encoding: UTF-8
931
+ string: template=%7B%7Bfname%7D%7D+%7B%7Blname%7D%7D&comment=test+comment+2&headers=%7B%22Subject%22%3A+%22%7B%7Bsubject%7D%7D%22%7D
932
+ headers:
933
+ Accept:
934
+ - "*/*"
935
+ User-Agent:
936
+ - rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
937
+ Content-Length:
938
+ - '124'
939
+ Content-Type:
940
+ - application/x-www-form-urlencoded
941
+ Accept-Encoding:
942
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
943
+ Host:
944
+ - api.mailgun.net
945
+ Authorization:
946
+ - Basic YXBpOmQ5MTViNWNkYjlhNTgzNjg1ZDhmM2ZiMWJlYzBmMjBmLTA3YmM3YjA1LWZhNDgxNmEx
947
+ response:
948
+ status:
949
+ code: 404
950
+ message: Not Found
951
+ headers:
952
+ Access-Control-Allow-Credentials:
953
+ - 'true'
954
+ Access-Control-Allow-Origin:
955
+ - "*"
956
+ Cache-Control:
957
+ - no-store
958
+ Content-Length:
959
+ - '31'
960
+ Content-Type:
961
+ - application/json; charset=utf-8
962
+ Date:
963
+ - Sun, 15 Oct 2023 17:30:21 GMT
964
+ Strict-Transport-Security:
965
+ - max-age=63072000; includeSubDomains
966
+ X-Xss-Protection:
967
+ - 1; mode=block
968
+ body:
969
+ encoding: UTF-8
970
+ string: '{"message":"domain not found"}
971
+
972
+ '
973
+ http_version:
974
+ recorded_at: Sun, 15 Oct 2023 17:30:21 GMT
975
+ - request:
976
+ method: get
977
+ uri: https://api.mailgun.net/v3/integration-test.domain.invalid/templates/test.template/versions
978
+ body:
979
+ encoding: US-ASCII
980
+ string: ''
981
+ headers:
982
+ Accept:
983
+ - "*/*"
984
+ User-Agent:
985
+ - rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
986
+ Accept-Encoding:
987
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
988
+ Host:
989
+ - api.mailgun.net
990
+ Authorization:
991
+ - Basic YXBpOmQ5MTViNWNkYjlhNTgzNjg1ZDhmM2ZiMWJlYzBmMjBmLTA3YmM3YjA1LWZhNDgxNmEx
992
+ response:
993
+ status:
994
+ code: 404
995
+ message: Not Found
996
+ headers:
997
+ Access-Control-Allow-Credentials:
998
+ - 'true'
999
+ Access-Control-Allow-Origin:
1000
+ - "*"
1001
+ Cache-Control:
1002
+ - no-store
1003
+ Content-Length:
1004
+ - '31'
1005
+ Content-Type:
1006
+ - application/json; charset=utf-8
1007
+ Date:
1008
+ - Sun, 15 Oct 2023 17:30:22 GMT
1009
+ Strict-Transport-Security:
1010
+ - max-age=63072000; includeSubDomains
1011
+ X-Xss-Protection:
1012
+ - 1; mode=block
1013
+ body:
1014
+ encoding: UTF-8
1015
+ string: '{"message":"domain not found"}
1016
+
1017
+ '
1018
+ http_version:
1019
+ recorded_at: Sun, 15 Oct 2023 17:30:22 GMT
1020
+ - request:
1021
+ method: delete
1022
+ uri: https://api.mailgun.net/v3/integration-test.domain.invalid/templates/test.template/versions/v2
1023
+ body:
1024
+ encoding: US-ASCII
1025
+ string: ''
1026
+ headers:
1027
+ Accept:
1028
+ - "*/*"
1029
+ User-Agent:
1030
+ - rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
1031
+ Accept-Encoding:
1032
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1033
+ Host:
1034
+ - api.mailgun.net
1035
+ Authorization:
1036
+ - Basic YXBpOmQ5MTViNWNkYjlhNTgzNjg1ZDhmM2ZiMWJlYzBmMjBmLTA3YmM3YjA1LWZhNDgxNmEx
1037
+ response:
1038
+ status:
1039
+ code: 404
1040
+ message: Not Found
1041
+ headers:
1042
+ Access-Control-Allow-Credentials:
1043
+ - 'true'
1044
+ Access-Control-Allow-Origin:
1045
+ - "*"
1046
+ Cache-Control:
1047
+ - no-store
1048
+ Content-Length:
1049
+ - '31'
1050
+ Content-Type:
1051
+ - application/json; charset=utf-8
1052
+ Date:
1053
+ - Sun, 15 Oct 2023 17:30:22 GMT
1054
+ Strict-Transport-Security:
1055
+ - max-age=63072000; includeSubDomains
1056
+ X-Xss-Protection:
1057
+ - 1; mode=block
1058
+ body:
1059
+ encoding: UTF-8
1060
+ string: '{"message":"domain not found"}
1061
+
1062
+ '
1063
+ http_version:
1064
+ recorded_at: Sun, 15 Oct 2023 17:30:22 GMT
1065
+ recorded_with: VCR 3.0.3