mailgun-ruby 1.4.5 → 1.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -1
  3. data/README.md +3 -1
  4. data/lib/mailgun/api_keys/api_keys.rb +2 -2
  5. data/lib/mailgun/client.rb +1 -1
  6. data/lib/mailgun/domains/domain_keys.rb +5 -5
  7. data/lib/mailgun/domains/domains.rb +12 -9
  8. data/lib/mailgun/events/events.rb +1 -1
  9. data/lib/mailgun/helpers/api_version_checker.rb +23 -12
  10. data/lib/mailgun/helpers/deprecation.rb +32 -0
  11. data/lib/mailgun/lists/mailing_lists.rb +250 -0
  12. data/lib/mailgun/messages/message_builder.rb +17 -7
  13. data/lib/mailgun/response.rb +1 -1
  14. data/lib/mailgun/routes/routes.rb +98 -0
  15. data/lib/mailgun/tags/analytics_tags.rb +2 -2
  16. data/lib/mailgun/tags/tags.rb +16 -8
  17. data/lib/mailgun/version.rb +1 -1
  18. data/lib/mailgun/webhooks/account_webhooks.rb +2 -2
  19. data/lib/mailgun/webhooks/webhooks.rb +17 -9
  20. data/lib/mailgun.rb +1 -0
  21. metadata +6 -326
  22. data/.github/workflows/ci.yml +0 -49
  23. data/.github_changelog_generator +0 -1
  24. data/.gitignore +0 -24
  25. data/.rubocop.yml +0 -68
  26. data/.ruby-env.yml.example +0 -13
  27. data/Gemfile +0 -9
  28. data/Rakefile +0 -32
  29. data/docs/AccountWebhooks.md +0 -55
  30. data/docs/AnalyticsTags.md +0 -63
  31. data/docs/ApiKeys.md +0 -65
  32. data/docs/DomainKeys.md +0 -49
  33. data/docs/Domains.md +0 -82
  34. data/docs/EmailValidation.md +0 -34
  35. data/docs/Events.md +0 -48
  36. data/docs/Logs.md +0 -67
  37. data/docs/MessageBuilder.md +0 -120
  38. data/docs/Metrics.md +0 -108
  39. data/docs/OptInHandler.md +0 -103
  40. data/docs/Snippets.md +0 -519
  41. data/docs/Subaccounts.md +0 -68
  42. data/docs/Suppressions.md +0 -92
  43. data/docs/Templates.md +0 -92
  44. data/docs/Webhooks.md +0 -65
  45. data/docs/railgun/EmailValidation.md +0 -34
  46. data/docs/railgun/Overview.md +0 -11
  47. data/docs/railgun/Parameters.md +0 -83
  48. data/mailgun.gemspec +0 -47
  49. data/spec/integration/account_webhooks_spec.rb +0 -57
  50. data/spec/integration/analytics_tags_spec.rb +0 -54
  51. data/spec/integration/api_keys_spec.rb +0 -50
  52. data/spec/integration/bounces_spec.rb +0 -45
  53. data/spec/integration/campaign_spec.rb +0 -62
  54. data/spec/integration/complaints_spec.rb +0 -40
  55. data/spec/integration/domain_keys_spec.rb +0 -124
  56. data/spec/integration/domains_spec.rb +0 -201
  57. data/spec/integration/email_validation_spec.rb +0 -73
  58. data/spec/integration/events_spec.rb +0 -28
  59. data/spec/integration/list_members_spec.rb +0 -64
  60. data/spec/integration/list_spec.rb +0 -59
  61. data/spec/integration/logs_spec.rb +0 -105
  62. data/spec/integration/mailer_spec.rb +0 -65
  63. data/spec/integration/mailgun_spec.rb +0 -198
  64. data/spec/integration/messages/sample_data/mime.txt +0 -38
  65. data/spec/integration/metrics_spec.rb +0 -224
  66. data/spec/integration/routes_spec.rb +0 -91
  67. data/spec/integration/stats_spec.rb +0 -17
  68. data/spec/integration/subaccounts_spec.rb +0 -57
  69. data/spec/integration/suppressions_spec.rb +0 -320
  70. data/spec/integration/templates_spec.rb +0 -137
  71. data/spec/integration/unsubscribes_spec.rb +0 -44
  72. data/spec/integration/webhook_spec.rb +0 -79
  73. data/spec/spec_helper.rb +0 -53
  74. data/spec/unit/client_spec.rb +0 -448
  75. data/spec/unit/connection/test_client.rb +0 -169
  76. data/spec/unit/events/events_spec.rb +0 -88
  77. data/spec/unit/exceptions/exceptions_spec.rb +0 -31
  78. data/spec/unit/helpers/api_version_checker_spec.rb +0 -206
  79. data/spec/unit/lists/opt_in_handler_spec.rb +0 -28
  80. data/spec/unit/mailgun_spec.rb +0 -171
  81. data/spec/unit/messages/batch_message_spec.rb +0 -148
  82. data/spec/unit/messages/message_builder_spec.rb +0 -745
  83. data/spec/unit/messages/sample_data/mailgun_icon.png +0 -0
  84. data/spec/unit/messages/sample_data/mime.txt +0 -38
  85. data/spec/unit/messages/sample_data/rackspace_logo.jpg +0 -0
  86. data/spec/unit/messages/sample_data/unknown.type +0 -0
  87. data/spec/unit/railgun/content_type_spec.rb +0 -89
  88. data/spec/unit/railgun/mailer_spec.rb +0 -391
  89. data/spec/unit/response_spec.rb +0 -225
  90. data/spec/unit/webhooks_spec.rb +0 -121
  91. data/vcr_cassettes/For_the_suppressions_handling_class/creates_a_single_bounce.yml +0 -55
  92. data/vcr_cassettes/account_webhooks.yml +0 -269
  93. data/vcr_cassettes/analytics_tags.yml +0 -187
  94. data/vcr_cassettes/api_keys.yml +0 -212
  95. data/vcr_cassettes/bounces.yml +0 -136
  96. data/vcr_cassettes/complaints.yml +0 -315
  97. data/vcr_cassettes/domains.todo.yml +0 -42
  98. data/vcr_cassettes/domains.yml +0 -1243
  99. data/vcr_cassettes/email_validation.yml +0 -152
  100. data/vcr_cassettes/events.yml +0 -69
  101. data/vcr_cassettes/exceptions-invalid-api-key.yml +0 -52
  102. data/vcr_cassettes/exceptions-invalid-data.yml +0 -52
  103. data/vcr_cassettes/exceptions-not-allowed.yml +0 -54
  104. data/vcr_cassettes/exceptions.yml +0 -92
  105. data/vcr_cassettes/list_members.yml +0 -328
  106. data/vcr_cassettes/logs.yml +0 -53
  107. data/vcr_cassettes/mailer_invalid_domain.yml +0 -109
  108. data/vcr_cassettes/mailing_list.todo.yml +0 -43
  109. data/vcr_cassettes/mailing_list.yml +0 -682
  110. data/vcr_cassettes/message_deliver.yml +0 -149
  111. data/vcr_cassettes/metrics.yml +0 -116
  112. data/vcr_cassettes/routes.yml +0 -359
  113. data/vcr_cassettes/send_message.yml +0 -158
  114. data/vcr_cassettes/stats.yml +0 -48
  115. data/vcr_cassettes/subaccounts.yml +0 -270
  116. data/vcr_cassettes/suppressions.yml +0 -1392
  117. data/vcr_cassettes/templates.yml +0 -1065
  118. data/vcr_cassettes/unsubscribes.yml +0 -401
  119. data/vcr_cassettes/webhooks.yml +0 -246
  120. data/vcr_cassettes/webhooks_v4.yml +0 -275
@@ -1,682 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://api.mailgun.net/v3/lists
6
- body:
7
- encoding: US-ASCII
8
- string: address=integration_test_list%40DOMAIN.TEST&name=Integration%20Test%20List&description=This%20list%20should%20be%20deleted%20automatically.&access_level=members
9
- headers:
10
- Accept:
11
- - "*/*; q=0.5, application/xml"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- Content-Length:
15
- - '195'
16
- Content-Type:
17
- - application/x-www-form-urlencoded
18
- User-Agent:
19
- - Ruby
20
- response:
21
- status:
22
- code: 200
23
- message: OK
24
- headers:
25
- Server:
26
- - nginx
27
- Date:
28
- - Fri, 08 Jan 2016 20:22:42 GMT
29
- Content-Type:
30
- - application/json
31
- Content-Length:
32
- - '361'
33
- Connection:
34
- - keep-alive
35
- Content-Disposition:
36
- - inline
37
- Access-Control-Allow-Origin:
38
- - "*"
39
- Access-Control-Max-Age:
40
- - '600'
41
- Access-Control-Allow-Methods:
42
- - GET, POST, PUT, DELETE, OPTIONS
43
- Access-Control-Allow-Headers:
44
- - Content-Type, x-requested-with
45
- body:
46
- encoding: UTF-8
47
- string: |-
48
- {
49
- "list": {
50
- "access_level": "members",
51
- "address": "integration_test_list@DOMAIN.TEST",
52
- "created_at": "Fri, 08 Jan 2016 20:22:42 -0000",
53
- "description": "This list should be deleted automatically.",
54
- "members_count": 0,
55
- "name": "Integration Test List"
56
- },
57
- "message": "Mailing list has been created"
58
- }
59
- http_version:
60
- recorded_at: Fri, 08 Jan 2016 20:22:43 GMT
61
- - request:
62
- method: get
63
- uri: https://api.mailgun.net/v3/lists/
64
- body:
65
- encoding: US-ASCII
66
- string: ''
67
- headers:
68
- Accept:
69
- - "*/*"
70
- Accept-Encoding:
71
- - gzip, deflate
72
- User-Agent:
73
- - Ruby
74
- response:
75
- status:
76
- code: 404
77
- message: Not Found
78
- headers:
79
- Server:
80
- - nginx
81
- Date:
82
- - Fri, 08 Jan 2016 20:22:43 GMT
83
- Content-Type:
84
- - text/html; charset=utf-8
85
- Content-Length:
86
- - '233'
87
- Connection:
88
- - keep-alive
89
- body:
90
- encoding: UTF-8
91
- string: |
92
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
93
- <title>404 Not Found</title>
94
- <h1>Not Found</h1>
95
- <p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>
96
- http_version:
97
- recorded_at: Fri, 08 Jan 2016 20:22:43 GMT
98
- - request:
99
- method: get
100
- uri: https://api.mailgun.net/v3/lists?limit=50
101
- body:
102
- encoding: US-ASCII
103
- string: ''
104
- headers:
105
- Accept:
106
- - "*/*"
107
- Accept-Encoding:
108
- - gzip, deflate
109
- User-Agent:
110
- - Ruby
111
- response:
112
- status:
113
- code: 200
114
- message: OK
115
- headers:
116
- Server:
117
- - nginx
118
- Date:
119
- - Fri, 08 Jan 2016 20:22:44 GMT
120
- Content-Type:
121
- - application/json
122
- Content-Length:
123
- - '360'
124
- Connection:
125
- - keep-alive
126
- Content-Disposition:
127
- - inline
128
- Access-Control-Allow-Origin:
129
- - "*"
130
- Access-Control-Max-Age:
131
- - '600'
132
- Access-Control-Allow-Methods:
133
- - GET, POST, PUT, DELETE, OPTIONS
134
- Access-Control-Allow-Headers:
135
- - Content-Type, x-requested-with
136
- body:
137
- encoding: UTF-8
138
- string: |-
139
- {
140
- "items": [
141
- {
142
- "access_level": "members",
143
- "address": "integration_test_list@DOMAIN.TEST",
144
- "created_at": "Fri, 08 Jan 2016 20:22:42 -0000",
145
- "description": "This list should be deleted automatically.",
146
- "members_count": 0,
147
- "name": "Integration Test List"
148
- }
149
- ],
150
- "total_count": 1
151
- }
152
- http_version:
153
- recorded_at: Fri, 08 Jan 2016 20:22:44 GMT
154
- - request:
155
- method: put
156
- uri: https://api.mailgun.net/v3/lists/
157
- body:
158
- encoding: US-ASCII
159
- string: address=&name=Integration%20Test%20List%20Update&description=This%20list%20should%20be%20deleted%20automatically.&access_level=readonly
160
- headers:
161
- Accept:
162
- - "*/*; q=0.5, application/xml"
163
- Accept-Encoding:
164
- - gzip, deflate
165
- Content-Length:
166
- - '135'
167
- Content-Type:
168
- - application/x-www-form-urlencoded
169
- User-Agent:
170
- - Ruby
171
- response:
172
- status:
173
- code: 404
174
- message: Not Found
175
- headers:
176
- Server:
177
- - nginx
178
- Date:
179
- - Fri, 08 Jan 2016 20:22:44 GMT
180
- Content-Type:
181
- - text/html; charset=utf-8
182
- Content-Length:
183
- - '233'
184
- Connection:
185
- - keep-alive
186
- body:
187
- encoding: UTF-8
188
- string: |
189
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
190
- <title>404 Not Found</title>
191
- <h1>Not Found</h1>
192
- <p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>
193
- http_version:
194
- recorded_at: Fri, 08 Jan 2016 20:22:45 GMT
195
- - request:
196
- method: delete
197
- uri: https://api.mailgun.net/v3/lists/
198
- body:
199
- encoding: US-ASCII
200
- string: ''
201
- headers:
202
- Accept:
203
- - "*/*; q=0.5, application/xml"
204
- Accept-Encoding:
205
- - gzip, deflate
206
- User-Agent:
207
- - Ruby
208
- response:
209
- status:
210
- code: 404
211
- message: Not Found
212
- headers:
213
- Server:
214
- - nginx
215
- Date:
216
- - Fri, 08 Jan 2016 20:22:45 GMT
217
- Content-Type:
218
- - text/html; charset=utf-8
219
- Content-Length:
220
- - '233'
221
- Connection:
222
- - keep-alive
223
- body:
224
- encoding: UTF-8
225
- string: |
226
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
227
- <title>404 Not Found</title>
228
- <h1>Not Found</h1>
229
- <p>The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.</p>
230
- http_version:
231
- recorded_at: Fri, 08 Jan 2016 20:22:45 GMT
232
- - request:
233
- method: get
234
- uri: https://api.mailgun.net/v3/lists/integration_test_list@DOMAIN.TEST
235
- body:
236
- encoding: US-ASCII
237
- string: ''
238
- headers:
239
- Accept:
240
- - "*/*"
241
- Accept-Encoding:
242
- - gzip, deflate
243
- User-Agent:
244
- - Ruby
245
- response:
246
- status:
247
- code: 200
248
- message: OK
249
- headers:
250
- Server:
251
- - nginx
252
- Date:
253
- - Fri, 08 Jan 2016 20:23:02 GMT
254
- Content-Type:
255
- - application/json
256
- Content-Length:
257
- - '315'
258
- Connection:
259
- - keep-alive
260
- Content-Disposition:
261
- - inline
262
- Access-Control-Allow-Origin:
263
- - "*"
264
- Access-Control-Max-Age:
265
- - '600'
266
- Access-Control-Allow-Methods:
267
- - GET, POST, PUT, DELETE, OPTIONS
268
- Access-Control-Allow-Headers:
269
- - Content-Type, x-requested-with
270
- body:
271
- encoding: UTF-8
272
- string: |-
273
- {
274
- "list": {
275
- "access_level": "members",
276
- "address": "integration_test_list@DOMAIN.TEST",
277
- "created_at": "Fri, 08 Jan 2016 20:22:42 -0000",
278
- "description": "This list should be deleted automatically.",
279
- "members_count": 0,
280
- "name": "Integration Test List"
281
- }
282
- }
283
- http_version:
284
- recorded_at: Fri, 08 Jan 2016 20:23:02 GMT
285
- - request:
286
- method: put
287
- uri: https://api.mailgun.net/v3/lists/integration_test_list@DOMAIN.TEST
288
- body:
289
- encoding: US-ASCII
290
- string: address=integration_test_list%40DOMAIN.TEST&name=Integration%20Test%20List%20Update&description=This%20list%20should%20be%20deleted%20automatically.&access_level=readonly
291
- headers:
292
- Accept:
293
- - "*/*; q=0.5, application/xml"
294
- Accept-Encoding:
295
- - gzip, deflate
296
- Content-Length:
297
- - '205'
298
- Content-Type:
299
- - application/x-www-form-urlencoded
300
- User-Agent:
301
- - Ruby
302
- response:
303
- status:
304
- code: 200
305
- message: OK
306
- headers:
307
- Server:
308
- - nginx
309
- Date:
310
- - Fri, 08 Jan 2016 20:23:02 GMT
311
- Content-Type:
312
- - application/json
313
- Content-Length:
314
- - '369'
315
- Connection:
316
- - keep-alive
317
- Content-Disposition:
318
- - inline
319
- Access-Control-Allow-Origin:
320
- - "*"
321
- Access-Control-Max-Age:
322
- - '600'
323
- Access-Control-Allow-Methods:
324
- - GET, POST, PUT, DELETE, OPTIONS
325
- Access-Control-Allow-Headers:
326
- - Content-Type, x-requested-with
327
- body:
328
- encoding: UTF-8
329
- string: |-
330
- {
331
- "list": {
332
- "access_level": "readonly",
333
- "address": "integration_test_list@DOMAIN.TEST",
334
- "created_at": "Fri, 08 Jan 2016 20:22:42 -0000",
335
- "description": "This list should be deleted automatically.",
336
- "members_count": 0,
337
- "name": "Integration Test List Update"
338
- },
339
- "message": "Mailing list has been updated"
340
- }
341
- http_version:
342
- recorded_at: Fri, 08 Jan 2016 20:23:03 GMT
343
- - request:
344
- method: delete
345
- uri: https://api.mailgun.net/v3/lists/integration_test_list@DOMAIN.TEST
346
- body:
347
- encoding: US-ASCII
348
- string: ''
349
- headers:
350
- Accept:
351
- - "*/*; q=0.5, application/xml"
352
- Accept-Encoding:
353
- - gzip, deflate
354
- User-Agent:
355
- - Ruby
356
- response:
357
- status:
358
- code: 200
359
- message: OK
360
- headers:
361
- Server:
362
- - nginx
363
- Date:
364
- - Fri, 08 Jan 2016 20:23:03 GMT
365
- Content-Type:
366
- - application/json
367
- Content-Length:
368
- - '133'
369
- Connection:
370
- - keep-alive
371
- Content-Disposition:
372
- - inline
373
- Access-Control-Allow-Origin:
374
- - "*"
375
- Access-Control-Max-Age:
376
- - '600'
377
- Access-Control-Allow-Methods:
378
- - GET, POST, PUT, DELETE, OPTIONS
379
- Access-Control-Allow-Headers:
380
- - Content-Type, x-requested-with
381
- body:
382
- encoding: UTF-8
383
- string: |-
384
- {
385
- "address": "integration_test_list@DOMAIN.TEST",
386
- "message": "Mailing list has been removed"
387
- }
388
- http_version:
389
- recorded_at: Fri, 08 Jan 2016 20:23:03 GMT
390
- - request:
391
- method: post
392
- uri: https://api.mailgun.net/v3/lists
393
- body:
394
- encoding: UTF-8
395
- string: access_level=members&address=integration_test_list%40DOMAIN.TEST&description=This+list+should+be+deleted+automatically.&name=Integration+Test+List
396
- headers:
397
- User-Agent:
398
- - mailgun-sdk-ruby/1.3.0
399
- Accept:
400
- - "*/*"
401
- Authorization:
402
- - Basic xxx==
403
- Content-Type:
404
- - application/x-www-form-urlencoded
405
- Accept-Encoding:
406
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
407
- response:
408
- status:
409
- code: 200
410
- message: OK
411
- headers:
412
- Access-Control-Allow-Credentials:
413
- - 'true'
414
- Access-Control-Allow-Origin:
415
- - "*"
416
- Cache-Control:
417
- - no-store
418
- Content-Disposition:
419
- - inline
420
- Content-Length:
421
- - '398'
422
- Content-Type:
423
- - application/json
424
- Date:
425
- - Sun, 26 Jan 2025 07:29:27 GMT
426
- Server:
427
- - TwistedWeb/20.3.0
428
- Strict-Transport-Security:
429
- - max-age=63072000; includeSubDomains
430
- X-Mailgun-Key-Id:
431
- - 90b59dea-f2d12a53
432
- X-Xss-Protection:
433
- - 1; mode=block
434
- body:
435
- encoding: UTF-8
436
- string: |-
437
- {
438
- "list": {
439
- "access_level": "members",
440
- "address": "integration_test_list@DOMAIN.TEST",
441
- "created_at": "Sun, 26 Jan 2025 07:29:27 -0000",
442
- "description": "This list should be deleted automatically.",
443
- "members_count": 0,
444
- "name": "Integration Test List",
445
- "reply_preference": "list"
446
- },
447
- "message": "Mailing list has been created"
448
- }
449
- http_version:
450
- recorded_at: Sun, 26 Jan 2025 07:29:27 GMT
451
- - request:
452
- method: get
453
- uri: https://api.mailgun.net/v3/lists/integration_test_list@DOMAIN.TEST
454
- body:
455
- encoding: US-ASCII
456
- string: ''
457
- headers:
458
- User-Agent:
459
- - mailgun-sdk-ruby/1.3.0
460
- Accept:
461
- - "*/*"
462
- Authorization:
463
- - Basic xxx==
464
- Accept-Encoding:
465
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
466
- response:
467
- status:
468
- code: 200
469
- message: OK
470
- headers:
471
- Access-Control-Allow-Credentials:
472
- - 'true'
473
- Access-Control-Allow-Origin:
474
- - "*"
475
- Cache-Control:
476
- - no-store
477
- Content-Disposition:
478
- - inline
479
- Content-Length:
480
- - '352'
481
- Content-Type:
482
- - application/json
483
- Date:
484
- - Sun, 26 Jan 2025 07:29:27 GMT
485
- Server:
486
- - TwistedWeb/20.3.0
487
- Strict-Transport-Security:
488
- - max-age=63072000; includeSubDomains
489
- X-Mailgun-Key-Id:
490
- - 90b59dea-f2d12a53
491
- X-Xss-Protection:
492
- - 1; mode=block
493
- body:
494
- encoding: UTF-8
495
- string: |-
496
- {
497
- "list": {
498
- "access_level": "members",
499
- "address": "integration_test_list@DOMAIN.TEST",
500
- "created_at": "Sun, 26 Jan 2025 07:29:27 -0000",
501
- "description": "This list should be deleted automatically.",
502
- "members_count": 0,
503
- "name": "Integration Test List",
504
- "reply_preference": "list"
505
- }
506
- }
507
- http_version:
508
- recorded_at: Sun, 26 Jan 2025 07:29:27 GMT
509
- - request:
510
- method: get
511
- uri: https://api.mailgun.net/v3/lists?limit=50
512
- body:
513
- encoding: US-ASCII
514
- string: ''
515
- headers:
516
- User-Agent:
517
- - mailgun-sdk-ruby/1.3.0
518
- Accept:
519
- - "*/*"
520
- Authorization:
521
- - Basic xxx==
522
- Accept-Encoding:
523
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
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-Disposition:
536
- - inline
537
- Content-Length:
538
- - '399'
539
- Content-Type:
540
- - application/json
541
- Date:
542
- - Sun, 26 Jan 2025 07:29:28 GMT
543
- Server:
544
- - TwistedWeb/20.3.0
545
- Strict-Transport-Security:
546
- - max-age=63072000; includeSubDomains
547
- X-Mailgun-Key-Id:
548
- - 90b59dea-f2d12a53
549
- X-Xss-Protection:
550
- - 1; mode=block
551
- body:
552
- encoding: UTF-8
553
- string: |-
554
- {
555
- "items": [
556
- {
557
- "access_level": "members",
558
- "address": "integration_test_list@DOMAIN.TEST",
559
- "created_at": "Sun, 26 Jan 2025 07:29:27 -0000",
560
- "description": "This list should be deleted automatically.",
561
- "members_count": 0,
562
- "name": "Integration Test List",
563
- "reply_preference": "list"
564
- }
565
- ],
566
- "total_count": 1
567
- }
568
- http_version:
569
- recorded_at: Sun, 26 Jan 2025 07:29:28 GMT
570
- - request:
571
- method: put
572
- uri: https://api.mailgun.net/v3/lists/integration_test_list@DOMAIN.TEST
573
- body:
574
- encoding: UTF-8
575
- string: access_level=readonly&address=integration_test_list%40DOMAIN.TEST&description=This+list+should+be+deleted+automatically.&name=Integration+Test+List+Update
576
- headers:
577
- User-Agent:
578
- - mailgun-sdk-ruby/1.3.0
579
- Accept:
580
- - "*/*"
581
- Authorization:
582
- - Basic xxx==
583
- Content-Type:
584
- - application/x-www-form-urlencoded
585
- Accept-Encoding:
586
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
587
- response:
588
- status:
589
- code: 200
590
- message: OK
591
- headers:
592
- Access-Control-Allow-Credentials:
593
- - 'true'
594
- Access-Control-Allow-Origin:
595
- - "*"
596
- Cache-Control:
597
- - no-store
598
- Content-Disposition:
599
- - inline
600
- Content-Length:
601
- - '406'
602
- Content-Type:
603
- - application/json
604
- Date:
605
- - Sun, 26 Jan 2025 07:29:29 GMT
606
- Server:
607
- - TwistedWeb/20.3.0
608
- Strict-Transport-Security:
609
- - max-age=63072000; includeSubDomains
610
- X-Mailgun-Key-Id:
611
- - 90b59dea-f2d12a53
612
- X-Xss-Protection:
613
- - 1; mode=block
614
- body:
615
- encoding: UTF-8
616
- string: |-
617
- {
618
- "list": {
619
- "access_level": "readonly",
620
- "address": "integration_test_list@DOMAIN.TEST",
621
- "created_at": "Sun, 26 Jan 2025 07:29:27 -0000",
622
- "description": "This list should be deleted automatically.",
623
- "members_count": 0,
624
- "name": "Integration Test List Update",
625
- "reply_preference": "list"
626
- },
627
- "message": "Mailing list has been updated"
628
- }
629
- http_version:
630
- recorded_at: Sun, 26 Jan 2025 07:29:29 GMT
631
- - request:
632
- method: delete
633
- uri: https://api.mailgun.net/v3/lists/integration_test_list@DOMAIN.TEST
634
- body:
635
- encoding: US-ASCII
636
- string: ''
637
- headers:
638
- User-Agent:
639
- - mailgun-sdk-ruby/1.3.0
640
- Accept:
641
- - "*/*"
642
- Authorization:
643
- - Basic xxx==
644
- Accept-Encoding:
645
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
646
- response:
647
- status:
648
- code: 200
649
- message: OK
650
- headers:
651
- Access-Control-Allow-Credentials:
652
- - 'true'
653
- Access-Control-Allow-Origin:
654
- - "*"
655
- Cache-Control:
656
- - no-store
657
- Content-Disposition:
658
- - inline
659
- Content-Length:
660
- - '138'
661
- Content-Type:
662
- - application/json
663
- Date:
664
- - Sun, 26 Jan 2025 07:29:29 GMT
665
- Server:
666
- - TwistedWeb/20.3.0
667
- Strict-Transport-Security:
668
- - max-age=63072000; includeSubDomains
669
- X-Mailgun-Key-Id:
670
- - 90b59dea-f2d12a53
671
- X-Xss-Protection:
672
- - 1; mode=block
673
- body:
674
- encoding: UTF-8
675
- string: |-
676
- {
677
- "address": "integration_test_list@DOMAIN.TEST",
678
- "message": "Mailing list has been removed"
679
- }
680
- http_version:
681
- recorded_at: Sun, 26 Jan 2025 07:29:29 GMT
682
- recorded_with: VCR 3.0.3