mailgun-ruby 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mailgun/events/events.rb +4 -4
- data/lib/mailgun/version.rb +1 -1
- data/mailgun.gemspec +1 -1
- data/vcr_cassettes/bounces.yml +210 -1
- data/vcr_cassettes/complaints.yml +215 -5
- data/vcr_cassettes/domains.yml +777 -45
- data/vcr_cassettes/email_validation.yml +137 -8
- data/vcr_cassettes/events.yml +735 -2
- data/vcr_cassettes/exceptions.yml +48 -1
- data/vcr_cassettes/list_members.yml +343 -7
- data/vcr_cassettes/mailing_list.yml +301 -9
- data/vcr_cassettes/routes.yml +309 -1
- data/vcr_cassettes/send_message.yml +54 -3
- data/vcr_cassettes/stats.yml +47 -2
- data/vcr_cassettes/suppressions.yml +785 -0
- data/vcr_cassettes/unsubscribes.yml +215 -5
- metadata +15 -15
@@ -56,7 +56,7 @@ http_interactions:
|
|
56
56
|
},
|
57
57
|
"message": "Mailing list has been created"
|
58
58
|
}
|
59
|
-
http_version:
|
59
|
+
http_version:
|
60
60
|
recorded_at: Fri, 08 Jan 2016 20:22:43 GMT
|
61
61
|
- request:
|
62
62
|
method: get
|
@@ -93,7 +93,7 @@ http_interactions:
|
|
93
93
|
<title>404 Not Found</title>
|
94
94
|
<h1>Not Found</h1>
|
95
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:
|
96
|
+
http_version:
|
97
97
|
recorded_at: Fri, 08 Jan 2016 20:22:43 GMT
|
98
98
|
- request:
|
99
99
|
method: get
|
@@ -149,7 +149,7 @@ http_interactions:
|
|
149
149
|
],
|
150
150
|
"total_count": 1
|
151
151
|
}
|
152
|
-
http_version:
|
152
|
+
http_version:
|
153
153
|
recorded_at: Fri, 08 Jan 2016 20:22:44 GMT
|
154
154
|
- request:
|
155
155
|
method: put
|
@@ -190,7 +190,7 @@ http_interactions:
|
|
190
190
|
<title>404 Not Found</title>
|
191
191
|
<h1>Not Found</h1>
|
192
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:
|
193
|
+
http_version:
|
194
194
|
recorded_at: Fri, 08 Jan 2016 20:22:45 GMT
|
195
195
|
- request:
|
196
196
|
method: delete
|
@@ -227,7 +227,7 @@ http_interactions:
|
|
227
227
|
<title>404 Not Found</title>
|
228
228
|
<h1>Not Found</h1>
|
229
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:
|
230
|
+
http_version:
|
231
231
|
recorded_at: Fri, 08 Jan 2016 20:22:45 GMT
|
232
232
|
- request:
|
233
233
|
method: get
|
@@ -280,7 +280,7 @@ http_interactions:
|
|
280
280
|
"name": "Integration Test List"
|
281
281
|
}
|
282
282
|
}
|
283
|
-
http_version:
|
283
|
+
http_version:
|
284
284
|
recorded_at: Fri, 08 Jan 2016 20:23:02 GMT
|
285
285
|
- request:
|
286
286
|
method: put
|
@@ -338,7 +338,7 @@ http_interactions:
|
|
338
338
|
},
|
339
339
|
"message": "Mailing list has been updated"
|
340
340
|
}
|
341
|
-
http_version:
|
341
|
+
http_version:
|
342
342
|
recorded_at: Fri, 08 Jan 2016 20:23:03 GMT
|
343
343
|
- request:
|
344
344
|
method: delete
|
@@ -385,6 +385,298 @@ http_interactions:
|
|
385
385
|
"address": "integration_test_list@DOMAIN.TEST",
|
386
386
|
"message": "Mailing list has been removed"
|
387
387
|
}
|
388
|
-
http_version:
|
388
|
+
http_version:
|
389
389
|
recorded_at: Fri, 08 Jan 2016 20:23:03 GMT
|
390
|
-
|
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
|
data/vcr_cassettes/routes.yml
CHANGED
@@ -356,4 +356,312 @@ http_interactions:
|
|
356
356
|
}
|
357
357
|
http_version:
|
358
358
|
recorded_at: Fri, 08 Jan 2016 20:08:20 GMT
|
359
|
-
|
359
|
+
- request:
|
360
|
+
method: post
|
361
|
+
uri: https://api.mailgun.net/v3/routes
|
362
|
+
body:
|
363
|
+
encoding: UTF-8
|
364
|
+
string: action=forward%28%22.%2A%40DOMAIN.TEST%22%29&description=Integration+Test+Route&expression=match_recipient%28%22alice%40DOMAIN.TEST%22%29&priority=10
|
365
|
+
headers:
|
366
|
+
User-Agent:
|
367
|
+
- mailgun-sdk-ruby/1.3.0
|
368
|
+
Accept:
|
369
|
+
- "*/*"
|
370
|
+
Authorization:
|
371
|
+
- Basic xxx==
|
372
|
+
Content-Type:
|
373
|
+
- application/x-www-form-urlencoded
|
374
|
+
Accept-Encoding:
|
375
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
376
|
+
response:
|
377
|
+
status:
|
378
|
+
code: 200
|
379
|
+
message: OK
|
380
|
+
headers:
|
381
|
+
Access-Control-Allow-Credentials:
|
382
|
+
- 'true'
|
383
|
+
Access-Control-Allow-Origin:
|
384
|
+
- "*"
|
385
|
+
Cache-Control:
|
386
|
+
- no-store
|
387
|
+
Content-Disposition:
|
388
|
+
- inline
|
389
|
+
Content-Length:
|
390
|
+
- '353'
|
391
|
+
Content-Type:
|
392
|
+
- application/json
|
393
|
+
Date:
|
394
|
+
- Sun, 26 Jan 2025 07:29:31 GMT
|
395
|
+
Server:
|
396
|
+
- TwistedWeb/22.10.0
|
397
|
+
Strict-Transport-Security:
|
398
|
+
- max-age=63072000; includeSubDomains
|
399
|
+
X-Mailgun-Key-Id:
|
400
|
+
- 90b59dea-f2d12a53
|
401
|
+
X-Xss-Protection:
|
402
|
+
- 1; mode=block
|
403
|
+
body:
|
404
|
+
encoding: UTF-8
|
405
|
+
string: '{"message":"Route has been created","route":{"actions":["forward(\".*@DOMAIN.TEST\")"],"created_at":"Sun,
|
406
|
+
26 Jan 2025 07:29:31 GMT","description":"Integration Test Route","expression":"match_recipient(\"alice@DOMAIN.TEST\")","id":"6795e45ba0be5b9e2e38da98","priority":10}}
|
407
|
+
|
408
|
+
'
|
409
|
+
http_version:
|
410
|
+
recorded_at: Sun, 26 Jan 2025 07:29:31 GMT
|
411
|
+
- request:
|
412
|
+
method: get
|
413
|
+
uri: https://api.mailgun.net/v3/routes?limit=50
|
414
|
+
body:
|
415
|
+
encoding: US-ASCII
|
416
|
+
string: ''
|
417
|
+
headers:
|
418
|
+
User-Agent:
|
419
|
+
- mailgun-sdk-ruby/1.3.0
|
420
|
+
Accept:
|
421
|
+
- "*/*"
|
422
|
+
Authorization:
|
423
|
+
- Basic xxx==
|
424
|
+
Accept-Encoding:
|
425
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
426
|
+
response:
|
427
|
+
status:
|
428
|
+
code: 200
|
429
|
+
message: OK
|
430
|
+
headers:
|
431
|
+
Access-Control-Allow-Credentials:
|
432
|
+
- 'true'
|
433
|
+
Access-Control-Allow-Origin:
|
434
|
+
- "*"
|
435
|
+
Cache-Control:
|
436
|
+
- no-store
|
437
|
+
Content-Disposition:
|
438
|
+
- inline
|
439
|
+
Content-Length:
|
440
|
+
- '1398'
|
441
|
+
Content-Type:
|
442
|
+
- application/json
|
443
|
+
Date:
|
444
|
+
- Sun, 26 Jan 2025 07:29:32 GMT
|
445
|
+
Server:
|
446
|
+
- TwistedWeb/22.10.0
|
447
|
+
Strict-Transport-Security:
|
448
|
+
- max-age=63072000; includeSubDomains
|
449
|
+
X-Mailgun-Key-Id:
|
450
|
+
- 90b59dea-f2d12a53
|
451
|
+
X-Xss-Protection:
|
452
|
+
- 1; mode=block
|
453
|
+
body:
|
454
|
+
encoding: UTF-8
|
455
|
+
string: '{"items":[{"actions":[],"created_at":"Mon, 24 Jul 2023 11:28:49 GMT","description":"Sample
|
456
|
+
route","expression":"match_recipient(''.*@sandbox8a33e7ac5fb74b4186ba64b030e88904.mailgun.org'')","id":"64be607123bfc82c0c79c6b5","priority":0},{"actions":[],"created_at":"Mon,
|
457
|
+
24 Jul 2023 11:28:21 GMT","description":"Sample route","expression":"match_recipient(''.*@sandbox8a33e7ac5fb74b4186ba64b030e88904.mailgun.org'')","id":"64be60550916aca1ab9b554a","priority":0},{"actions":["forward(\".*@DOMAIN.TEST\")"],"created_at":"Sun,
|
458
|
+
26 Jan 2025 07:29:31 GMT","description":"Integration Test Route","expression":"match_recipient(\"alice@DOMAIN.TEST\")","id":"6795e45ba0be5b9e2e38da98","priority":10},{"actions":["forward(\".*@DOMAIN.TEST\")"],"created_at":"Sun,
|
459
|
+
26 Jan 2025 07:21:17 GMT","description":"Integration Test Route","expression":"match_recipient(\"alice@DOMAIN.TEST\")","id":"6795e26d5dddff0a1558835c","priority":10},{"actions":["forward(\".*@DOMAIN.TEST\")"],"created_at":"Sun,
|
460
|
+
26 Jan 2025 07:16:55 GMT","description":"Integration Test Route","expression":"match_recipient(\"alice@DOMAIN.TEST\")","id":"6795e167182d2aff87d9263c","priority":10}],"total_count":5}
|
461
|
+
|
462
|
+
'
|
463
|
+
http_version:
|
464
|
+
recorded_at: Sun, 26 Jan 2025 07:29:32 GMT
|
465
|
+
- request:
|
466
|
+
method: get
|
467
|
+
uri: https://api.mailgun.net/v3/routes?limit=1
|
468
|
+
body:
|
469
|
+
encoding: US-ASCII
|
470
|
+
string: ''
|
471
|
+
headers:
|
472
|
+
User-Agent:
|
473
|
+
- mailgun-sdk-ruby/1.3.0
|
474
|
+
Accept:
|
475
|
+
- "*/*"
|
476
|
+
Authorization:
|
477
|
+
- Basic xxx==
|
478
|
+
Accept-Encoding:
|
479
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
480
|
+
response:
|
481
|
+
status:
|
482
|
+
code: 200
|
483
|
+
message: OK
|
484
|
+
headers:
|
485
|
+
Access-Control-Allow-Credentials:
|
486
|
+
- 'true'
|
487
|
+
Access-Control-Allow-Origin:
|
488
|
+
- "*"
|
489
|
+
Cache-Control:
|
490
|
+
- no-store
|
491
|
+
Content-Disposition:
|
492
|
+
- inline
|
493
|
+
Content-Length:
|
494
|
+
- '251'
|
495
|
+
Content-Type:
|
496
|
+
- application/json
|
497
|
+
Date:
|
498
|
+
- Sun, 26 Jan 2025 07:29:33 GMT
|
499
|
+
Server:
|
500
|
+
- TwistedWeb/22.10.0
|
501
|
+
Strict-Transport-Security:
|
502
|
+
- max-age=63072000; includeSubDomains
|
503
|
+
X-Mailgun-Key-Id:
|
504
|
+
- 90b59dea-f2d12a53
|
505
|
+
X-Xss-Protection:
|
506
|
+
- 1; mode=block
|
507
|
+
body:
|
508
|
+
encoding: UTF-8
|
509
|
+
string: '{"items":[{"actions":[],"created_at":"Mon, 24 Jul 2023 11:28:49 GMT","description":"Sample
|
510
|
+
route","expression":"match_recipient(''.*@sandbox8a33e7ac5fb74b4186ba64b030e88904.mailgun.org'')","id":"64be607123bfc82c0c79c6b5","priority":0}],"total_count":5}
|
511
|
+
|
512
|
+
'
|
513
|
+
http_version:
|
514
|
+
recorded_at: Sun, 26 Jan 2025 07:29:33 GMT
|
515
|
+
- request:
|
516
|
+
method: get
|
517
|
+
uri: https://api.mailgun.net/v3/routes/64be607123bfc82c0c79c6b5
|
518
|
+
body:
|
519
|
+
encoding: US-ASCII
|
520
|
+
string: ''
|
521
|
+
headers:
|
522
|
+
User-Agent:
|
523
|
+
- mailgun-sdk-ruby/1.3.0
|
524
|
+
Accept:
|
525
|
+
- "*/*"
|
526
|
+
Authorization:
|
527
|
+
- Basic xxx==
|
528
|
+
Accept-Encoding:
|
529
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
530
|
+
response:
|
531
|
+
status:
|
532
|
+
code: 200
|
533
|
+
message: OK
|
534
|
+
headers:
|
535
|
+
Access-Control-Allow-Credentials:
|
536
|
+
- 'true'
|
537
|
+
Access-Control-Allow-Origin:
|
538
|
+
- "*"
|
539
|
+
Cache-Control:
|
540
|
+
- no-store
|
541
|
+
Content-Disposition:
|
542
|
+
- inline
|
543
|
+
Content-Length:
|
544
|
+
- '233'
|
545
|
+
Content-Type:
|
546
|
+
- application/json
|
547
|
+
Date:
|
548
|
+
- Sun, 26 Jan 2025 07:29:34 GMT
|
549
|
+
Server:
|
550
|
+
- TwistedWeb/22.10.0
|
551
|
+
Strict-Transport-Security:
|
552
|
+
- max-age=63072000; includeSubDomains
|
553
|
+
X-Mailgun-Key-Id:
|
554
|
+
- 90b59dea-f2d12a53
|
555
|
+
X-Xss-Protection:
|
556
|
+
- 1; mode=block
|
557
|
+
body:
|
558
|
+
encoding: UTF-8
|
559
|
+
string: '{"route":{"actions":[],"created_at":"Mon, 24 Jul 2023 11:28:49 GMT","description":"Sample
|
560
|
+
route","expression":"match_recipient(''.*@sandbox8a33e7ac5fb74b4186ba64b030e88904.mailgun.org'')","id":"64be607123bfc82c0c79c6b5","priority":0}}
|
561
|
+
|
562
|
+
'
|
563
|
+
http_version:
|
564
|
+
recorded_at: Sun, 26 Jan 2025 07:29:34 GMT
|
565
|
+
- request:
|
566
|
+
method: put
|
567
|
+
uri: https://api.mailgun.net/v3/routes/64be607123bfc82c0c79c6b5
|
568
|
+
body:
|
569
|
+
encoding: UTF-8
|
570
|
+
string: action=forward%28%22.%2A%40DOMAIN.TEST%22%29&description=Integration+Test+Route+Update&expression=match_recipient%28%22alice%40DOMAIN.TEST%22%29&priority=10
|
571
|
+
headers:
|
572
|
+
User-Agent:
|
573
|
+
- mailgun-sdk-ruby/1.3.0
|
574
|
+
Accept:
|
575
|
+
- "*/*"
|
576
|
+
Authorization:
|
577
|
+
- Basic xxx==
|
578
|
+
Content-Type:
|
579
|
+
- application/x-www-form-urlencoded
|
580
|
+
Accept-Encoding:
|
581
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
582
|
+
response:
|
583
|
+
status:
|
584
|
+
code: 200
|
585
|
+
message: OK
|
586
|
+
headers:
|
587
|
+
Access-Control-Allow-Credentials:
|
588
|
+
- 'true'
|
589
|
+
Access-Control-Allow-Origin:
|
590
|
+
- "*"
|
591
|
+
Cache-Control:
|
592
|
+
- no-store
|
593
|
+
Content-Disposition:
|
594
|
+
- inline
|
595
|
+
Content-Length:
|
596
|
+
- '350'
|
597
|
+
Content-Type:
|
598
|
+
- application/json
|
599
|
+
Date:
|
600
|
+
- Sun, 26 Jan 2025 07:29:34 GMT
|
601
|
+
Server:
|
602
|
+
- TwistedWeb/22.10.0
|
603
|
+
Strict-Transport-Security:
|
604
|
+
- max-age=63072000; includeSubDomains
|
605
|
+
X-Mailgun-Key-Id:
|
606
|
+
- 90b59dea-f2d12a53
|
607
|
+
X-Xss-Protection:
|
608
|
+
- 1; mode=block
|
609
|
+
body:
|
610
|
+
encoding: UTF-8
|
611
|
+
string: '{"actions":["forward(\".*@DOMAIN.TEST\")"],"created_at":"Mon, 24 Jul
|
612
|
+
2023 11:28:49 GMT","description":"Integration Test Route Update","expression":"match_recipient(\"alice@DOMAIN.TEST\")","id":"64be607123bfc82c0c79c6b5","message":"Route
|
613
|
+
has been updated","priority":10}
|
614
|
+
|
615
|
+
'
|
616
|
+
http_version:
|
617
|
+
recorded_at: Sun, 26 Jan 2025 07:29:35 GMT
|
618
|
+
- request:
|
619
|
+
method: delete
|
620
|
+
uri: https://api.mailgun.net/v3/routes/64be607123bfc82c0c79c6b5
|
621
|
+
body:
|
622
|
+
encoding: US-ASCII
|
623
|
+
string: ''
|
624
|
+
headers:
|
625
|
+
User-Agent:
|
626
|
+
- mailgun-sdk-ruby/1.3.0
|
627
|
+
Accept:
|
628
|
+
- "*/*"
|
629
|
+
Authorization:
|
630
|
+
- Basic xxx==
|
631
|
+
Accept-Encoding:
|
632
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
633
|
+
response:
|
634
|
+
status:
|
635
|
+
code: 200
|
636
|
+
message: OK
|
637
|
+
headers:
|
638
|
+
Access-Control-Allow-Credentials:
|
639
|
+
- 'true'
|
640
|
+
Access-Control-Allow-Origin:
|
641
|
+
- "*"
|
642
|
+
Cache-Control:
|
643
|
+
- no-store
|
644
|
+
Content-Disposition:
|
645
|
+
- inline
|
646
|
+
Content-Length:
|
647
|
+
- '69'
|
648
|
+
Content-Type:
|
649
|
+
- application/json
|
650
|
+
Date:
|
651
|
+
- Sun, 26 Jan 2025 07:29:35 GMT
|
652
|
+
Server:
|
653
|
+
- TwistedWeb/22.10.0
|
654
|
+
Strict-Transport-Security:
|
655
|
+
- max-age=63072000; includeSubDomains
|
656
|
+
X-Mailgun-Key-Id:
|
657
|
+
- 90b59dea-f2d12a53
|
658
|
+
X-Xss-Protection:
|
659
|
+
- 1; mode=block
|
660
|
+
body:
|
661
|
+
encoding: UTF-8
|
662
|
+
string: '{"id":"64be607123bfc82c0c79c6b5","message":"Route has been deleted"}
|
663
|
+
|
664
|
+
'
|
665
|
+
http_version:
|
666
|
+
recorded_at: Sun, 26 Jan 2025 07:29:35 GMT
|
667
|
+
recorded_with: VCR 3.0.3
|