mailgun-ruby 1.2.15 → 1.3.5
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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +52 -3
- data/Gemfile +1 -0
- data/README.md +2 -2
- data/docs/MessageBuilder.md +12 -0
- data/docs/Metrics.md +108 -0
- data/docs/Webhooks.md +4 -2
- data/lib/mailgun/chains.rb +1 -1
- data/lib/mailgun/client.rb +40 -30
- data/lib/mailgun/domains/domains.rb +19 -0
- data/lib/mailgun/events/events.rb +4 -4
- data/lib/mailgun/exceptions/exceptions.rb +7 -7
- data/lib/mailgun/messages/message_builder.rb +14 -2
- data/lib/mailgun/metrics/metrics.rb +61 -0
- data/lib/mailgun/response.rb +11 -10
- data/lib/mailgun/version.rb +1 -1
- data/lib/mailgun.rb +2 -1
- data/mailgun.gemspec +6 -3
- data/spec/integration/domains_spec.rb +95 -92
- data/spec/integration/email_validation_spec.rb +2 -1
- data/spec/integration/list_spec.rb +1 -1
- data/spec/integration/mailer_spec.rb +5 -5
- data/spec/integration/mailgun_spec.rb +14 -12
- data/spec/integration/metrics_spec.rb +218 -0
- data/spec/integration/routes_spec.rb +17 -1
- data/spec/integration/stats_spec.rb +1 -1
- data/spec/integration/unsubscribes_spec.rb +2 -2
- data/spec/integration/webhook_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -0
- data/spec/unit/connection/test_client.rb +1 -1
- data/spec/unit/events/events_spec.rb +1 -1
- data/spec/unit/exceptions/exceptions_spec.rb +3 -3
- data/spec/unit/messages/message_builder_spec.rb +4 -3
- data/vcr_cassettes/bounces.yml +59 -98
- data/vcr_cassettes/complaints.yml +237 -97
- data/vcr_cassettes/domains.yml +332 -763
- data/vcr_cassettes/email_validation.yml +81 -144
- data/vcr_cassettes/events.yml +24 -63
- data/vcr_cassettes/exceptions.yml +49 -2
- data/vcr_cassettes/list_members.yml +187 -179
- data/vcr_cassettes/mailing_list.yml +309 -17
- data/vcr_cassettes/metrics.yml +116 -0
- data/vcr_cassettes/routes.yml +246 -246
- data/vcr_cassettes/send_message.yml +54 -3
- data/vcr_cassettes/stats.yml +28 -24
- data/vcr_cassettes/suppressions.yml +229 -447
- data/vcr_cassettes/unsubscribes.yml +219 -9
- metadata +58 -15
- data/docs/Messages.md +0 -107
- /data/docs/{railgun/Templates.md → Templates.md} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
http_interactions:
|
|
3
3
|
- request:
|
|
4
4
|
method: post
|
|
5
|
-
uri: https://api
|
|
5
|
+
uri: https://api.mailgun.net/v3/lists
|
|
6
6
|
body:
|
|
7
7
|
encoding: US-ASCII
|
|
8
8
|
string: address=integration_test_list%40DOMAIN.TEST&name=Integration%20Test%20List&description=This%20list%20should%20be%20deleted%20automatically.&access_level=members
|
|
@@ -56,11 +56,11 @@ 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
|
|
63
|
-
uri: https://api
|
|
63
|
+
uri: https://api.mailgun.net/v3/lists/
|
|
64
64
|
body:
|
|
65
65
|
encoding: US-ASCII
|
|
66
66
|
string: ''
|
|
@@ -93,11 +93,11 @@ 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
|
|
100
|
-
uri: https://api
|
|
100
|
+
uri: https://api.mailgun.net/v3/lists?limit=50
|
|
101
101
|
body:
|
|
102
102
|
encoding: US-ASCII
|
|
103
103
|
string: ''
|
|
@@ -149,11 +149,11 @@ 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
|
|
156
|
-
uri: https://api
|
|
156
|
+
uri: https://api.mailgun.net/v3/lists/
|
|
157
157
|
body:
|
|
158
158
|
encoding: US-ASCII
|
|
159
159
|
string: address=&name=Integration%20Test%20List%20Update&description=This%20list%20should%20be%20deleted%20automatically.&access_level=readonly
|
|
@@ -190,11 +190,11 @@ 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
|
|
197
|
-
uri: https://api
|
|
197
|
+
uri: https://api.mailgun.net/v3/lists/
|
|
198
198
|
body:
|
|
199
199
|
encoding: US-ASCII
|
|
200
200
|
string: ''
|
|
@@ -227,11 +227,11 @@ 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
|
|
234
|
-
uri: https://api
|
|
234
|
+
uri: https://api.mailgun.net/v3/lists/integration_test_list@DOMAIN.TEST
|
|
235
235
|
body:
|
|
236
236
|
encoding: US-ASCII
|
|
237
237
|
string: ''
|
|
@@ -280,11 +280,11 @@ 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
|
|
287
|
-
uri: https://api
|
|
287
|
+
uri: https://api.mailgun.net/v3/lists/integration_test_list@DOMAIN.TEST
|
|
288
288
|
body:
|
|
289
289
|
encoding: US-ASCII
|
|
290
290
|
string: address=integration_test_list%40DOMAIN.TEST&name=Integration%20Test%20List%20Update&description=This%20list%20should%20be%20deleted%20automatically.&access_level=readonly
|
|
@@ -338,11 +338,11 @@ 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
|
|
345
|
-
uri: https://api
|
|
345
|
+
uri: https://api.mailgun.net/v3/lists/integration_test_list@DOMAIN.TEST
|
|
346
346
|
body:
|
|
347
347
|
encoding: US-ASCII
|
|
348
348
|
string: ''
|
|
@@ -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
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://api.mailgun.net/v1/analytics/metrics
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: '{"resolution":"hour","metrics":["accepted_count","delivered_count","clicked_rate","opened_rate"],"include_aggregates":true,"start":"Tue,
|
|
9
|
+
26 Nov 2024 20:56:50 -0500","duration":"1m","filter":{"AND":[{"attribute":"domain","comparator":"!=","values":[{"label":"example.com","value":"example.com"}]}]},"dimensions":["time"],"end":"Tue,
|
|
10
|
+
30 Nov 2024 20:56:50 -0500","include_subaccounts":true}'
|
|
11
|
+
headers:
|
|
12
|
+
Accept:
|
|
13
|
+
- "*/*"
|
|
14
|
+
User-Agent:
|
|
15
|
+
- rest-client/2.1.0 (darwin23 x86_64) ruby/3.1.4p223
|
|
16
|
+
Content-Type:
|
|
17
|
+
- application/json
|
|
18
|
+
Content-Length:
|
|
19
|
+
- '387'
|
|
20
|
+
Accept-Encoding:
|
|
21
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
22
|
+
Host:
|
|
23
|
+
- api.mailgun.net
|
|
24
|
+
Authorization:
|
|
25
|
+
- Basic xxx
|
|
26
|
+
response:
|
|
27
|
+
status:
|
|
28
|
+
code: 200
|
|
29
|
+
message: OK
|
|
30
|
+
headers:
|
|
31
|
+
Access-Control-Allow-Credentials:
|
|
32
|
+
- 'true'
|
|
33
|
+
Access-Control-Allow-Origin:
|
|
34
|
+
- "*"
|
|
35
|
+
Cache-Control:
|
|
36
|
+
- no-store
|
|
37
|
+
Content-Length:
|
|
38
|
+
- '1006'
|
|
39
|
+
Content-Type:
|
|
40
|
+
- application/json; charset=utf-8
|
|
41
|
+
Date:
|
|
42
|
+
- Thu, 28 Nov 2024 18:20:22 GMT
|
|
43
|
+
Strict-Transport-Security:
|
|
44
|
+
- max-age=63072000; includeSubDomains
|
|
45
|
+
X-Mailgun-Key-Id:
|
|
46
|
+
- c02fd0ba-d8dbad66
|
|
47
|
+
X-Xss-Protection:
|
|
48
|
+
- 1; mode=block
|
|
49
|
+
body:
|
|
50
|
+
encoding: UTF-8
|
|
51
|
+
string: '{"start":"Fri, 01 Nov 2024 01:00:00 +0000","end":"Sun, 01 Dec 2024
|
|
52
|
+
01:00:00 +0000","resolution":"hour","duration":"1m","dimensions":["time"],"pagination":{"sort":"","skip":0,"limit":1500,"total":3},"items":[{"dimensions":[{"dimension":"time","value":"Wed,
|
|
53
|
+
27 Nov 2024 12:00:00 +0000","display_value":"Wed, 27 Nov 2024 12:00:00 +0000"}],"metrics":{"accepted_count":1,"delivered_count":1,"opened_rate":"0.0000","clicked_rate":"0.0000"}},{"dimensions":[{"dimension":"time","value":"Wed,
|
|
54
|
+
27 Nov 2024 13:00:00 +0000","display_value":"Wed, 27 Nov 2024 13:00:00 +0000"}],"metrics":{"accepted_count":1,"delivered_count":1,"opened_rate":"0.0000","clicked_rate":"0.0000"}},{"dimensions":[{"dimension":"time","value":"Thu,
|
|
55
|
+
28 Nov 2024 15:00:00 +0000","display_value":"Thu, 28 Nov 2024 15:00:00 +0000"}],"metrics":{"accepted_count":1,"delivered_count":1,"opened_rate":"0.0000","clicked_rate":"0.0000"}}],"aggregates":{"metrics":{"accepted_count":3,"delivered_count":3,"opened_rate":"0.0000","clicked_rate":"0.0000"}}}
|
|
56
|
+
|
|
57
|
+
'
|
|
58
|
+
http_version:
|
|
59
|
+
recorded_at: Thu, 28 Nov 2024 18:20:22 GMT
|
|
60
|
+
- request:
|
|
61
|
+
method: post
|
|
62
|
+
uri: https://api.mailgun.net/v1/analytics/usage/metrics
|
|
63
|
+
body:
|
|
64
|
+
encoding: UTF-8
|
|
65
|
+
string: '{"resolution":"hour","metrics":["email_preview_count","email_preview_failed_count","email_validation_bulk_count","email_validation_count","email_validation_list_count","email_validation_mailgun_count","email_validation_mailjet_count","email_validation_public_count","email_validation_single_count","email_validation_valid_count","link_validation_count","link_validation_failed_count","processed_count","seed_test_count"],"include_aggregates":true,"start":"Tue,
|
|
66
|
+
26 Nov 2024 20:56:50 -0500","duration":"1m","filter":{"AND":[{"attribute":"subaccount","comparator":"!=","values":[{"label":"12345","value":"12345"}]}]},"dimensions":["time"],"end":"Tue,
|
|
67
|
+
28 Nov 2024 20:56:50 -0500","include_subaccounts":true}'
|
|
68
|
+
headers:
|
|
69
|
+
Accept:
|
|
70
|
+
- "*/*"
|
|
71
|
+
User-Agent:
|
|
72
|
+
- rest-client/2.1.0 (darwin23 x86_64) ruby/3.1.4p223
|
|
73
|
+
Content-Type:
|
|
74
|
+
- application/json
|
|
75
|
+
Content-Length:
|
|
76
|
+
- '703'
|
|
77
|
+
Accept-Encoding:
|
|
78
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
79
|
+
Host:
|
|
80
|
+
- api.mailgun.net
|
|
81
|
+
Authorization:
|
|
82
|
+
- Basic xxx
|
|
83
|
+
response:
|
|
84
|
+
status:
|
|
85
|
+
code: 200
|
|
86
|
+
message: OK
|
|
87
|
+
headers:
|
|
88
|
+
Access-Control-Allow-Credentials:
|
|
89
|
+
- 'true'
|
|
90
|
+
Access-Control-Allow-Origin:
|
|
91
|
+
- "*"
|
|
92
|
+
Cache-Control:
|
|
93
|
+
- no-store
|
|
94
|
+
Content-Length:
|
|
95
|
+
- '1795'
|
|
96
|
+
Content-Type:
|
|
97
|
+
- application/json; charset=utf-8
|
|
98
|
+
Date:
|
|
99
|
+
- Thu, 28 Nov 2024 18:20:23 GMT
|
|
100
|
+
Strict-Transport-Security:
|
|
101
|
+
- max-age=63072000; includeSubDomains
|
|
102
|
+
X-Mailgun-Key-Id:
|
|
103
|
+
- c02fd0ba-d8dbad66
|
|
104
|
+
X-Xss-Protection:
|
|
105
|
+
- 1; mode=block
|
|
106
|
+
body:
|
|
107
|
+
encoding: UTF-8
|
|
108
|
+
string: '{"start":"Tue, 29 Oct 2024 01:00:00 +0000","end":"Fri, 29 Nov 2024
|
|
109
|
+
01:00:00 +0000","resolution":"hour","duration":"1m","dimensions":["time"],"pagination":{"sort":"","skip":0,"limit":1500,"total":2},"items":[{"dimensions":[{"dimension":"time","value":"Wed,
|
|
110
|
+
27 Nov 2024 00:00:00 +0000","display_value":"Wed, 27 Nov 2024 00:00:00 +0000"}],"metrics":{"processed_count":2,"email_validation_count":0,"email_validation_public_count":0,"email_validation_valid_count":0,"email_validation_single_count":0,"email_validation_bulk_count":0,"email_validation_list_count":0,"email_validation_mailgun_count":0,"email_validation_mailjet_count":0,"email_preview_count":0,"email_preview_failed_count":0,"link_validation_count":0,"link_validation_failed_count":0,"seed_test_count":0}},{"dimensions":[{"dimension":"time","value":"Thu,
|
|
111
|
+
28 Nov 2024 00:00:00 +0000","display_value":"Thu, 28 Nov 2024 00:00:00 +0000"}],"metrics":{"processed_count":1,"email_validation_count":0,"email_validation_public_count":0,"email_validation_valid_count":0,"email_validation_single_count":0,"email_validation_bulk_count":0,"email_validation_list_count":0,"email_validation_mailgun_count":0,"email_validation_mailjet_count":0,"email_preview_count":0,"email_preview_failed_count":0,"link_validation_count":0,"link_validation_failed_count":0,"seed_test_count":0}}],"aggregates":{"metrics":{"permanent_failed_count":0,"processed_count":3,"email_validation_count":0,"email_validation_public_count":0,"email_validation_valid_count":0,"email_validation_single_count":0,"email_validation_bulk_count":0,"email_validation_list_count":0,"email_validation_mailgun_count":0,"email_validation_mailjet_count":0,"email_preview_count":0,"email_preview_failed_count":0,"link_validation_count":0,"link_validation_failed_count":0,"seed_test_count":0}}}
|
|
112
|
+
|
|
113
|
+
'
|
|
114
|
+
http_version:
|
|
115
|
+
recorded_at: Thu, 28 Nov 2024 18:20:23 GMT
|
|
116
|
+
recorded_with: VCR 3.0.3
|