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.
@@ -40,6 +40,53 @@ http_interactions:
40
40
  {
41
41
  "message": "Domain not found: not-our-doma.in"
42
42
  }
43
- http_version:
43
+ http_version:
44
44
  recorded_at: Wed, 02 Nov 2016 19:43:40 GMT
45
+ - request:
46
+ method: post
47
+ uri: https://api.mailgun.net/v3/not-our-doma.in/messages
48
+ body:
49
+ encoding: UTF-8
50
+ string: from=sally%40not-our-doma.in&subject=Exception+Integration+Test&text=INTEGRATION+TESTING&to=bob%40DOMAIN.TEST
51
+ headers:
52
+ User-Agent:
53
+ - mailgun-sdk-ruby/1.3.0
54
+ Accept:
55
+ - "*/*"
56
+ Authorization:
57
+ - Basic xxx==
58
+ Content-Type:
59
+ - application/x-www-form-urlencoded
60
+ Accept-Encoding:
61
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
62
+ response:
63
+ status:
64
+ code: 401
65
+ message: Unauthorized
66
+ headers:
67
+ Access-Control-Allow-Credentials:
68
+ - 'true'
69
+ Access-Control-Allow-Origin:
70
+ - "*"
71
+ Cache-Control:
72
+ - no-store
73
+ Content-Length:
74
+ - '9'
75
+ Content-Type:
76
+ - text/plain; charset=utf-8
77
+ Date:
78
+ - Sun, 26 Jan 2025 07:29:30 GMT
79
+ Strict-Transport-Security:
80
+ - max-age=63072000; includeSubDomains
81
+ Www-Authenticate:
82
+ - Basic realm="MG API"
83
+ X-Server:
84
+ - influx
85
+ X-Xss-Protection:
86
+ - 1; mode=block
87
+ body:
88
+ encoding: UTF-8
89
+ string: Forbidden
90
+ http_version:
91
+ recorded_at: Sun, 26 Jan 2025 07:29:30 GMT
45
92
  recorded_with: VCR 3.0.3
@@ -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:20:43 GMT
61
61
  - request:
62
62
  method: post
@@ -112,7 +112,7 @@ http_interactions:
112
112
  },
113
113
  "message": "Mailing list member has been created"
114
114
  }
115
- http_version:
115
+ http_version:
116
116
  recorded_at: Fri, 08 Jan 2016 20:20:44 GMT
117
117
  - request:
118
118
  method: get
@@ -163,7 +163,7 @@ http_interactions:
163
163
  "vars": {}
164
164
  }
165
165
  }
166
- http_version:
166
+ http_version:
167
167
  recorded_at: Fri, 08 Jan 2016 20:20:44 GMT
168
168
  - request:
169
169
  method: put
@@ -219,7 +219,7 @@ http_interactions:
219
219
  },
220
220
  "message": "Mailing list member has been updated"
221
221
  }
222
- http_version:
222
+ http_version:
223
223
  recorded_at: Fri, 08 Jan 2016 20:20:44 GMT
224
224
  - request:
225
225
  method: delete
@@ -268,7 +268,7 @@ http_interactions:
268
268
  },
269
269
  "message": "Mailing list member has been deleted"
270
270
  }
271
- http_version:
271
+ http_version:
272
272
  recorded_at: Fri, 08 Jan 2016 20:20:44 GMT
273
273
  - request:
274
274
  method: delete
@@ -315,6 +315,342 @@ http_interactions:
315
315
  "address": "integration_test_list@DOMAIN.TEST",
316
316
  "message": "Mailing list has been removed"
317
317
  }
318
- http_version:
318
+ http_version:
319
319
  recorded_at: Fri, 08 Jan 2016 20:20:45 GMT
320
- recorded_with: VCR 3.0.1
320
+ - request:
321
+ method: post
322
+ uri: https://api.mailgun.net/v3/lists
323
+ body:
324
+ encoding: UTF-8
325
+ string: access_level=members&address=integration_test_list%40DOMAIN.TEST&description=This+list+should+be+deleted+automatically.&name=Integration+Test+List
326
+ headers:
327
+ User-Agent:
328
+ - mailgun-sdk-ruby/1.3.0
329
+ Accept:
330
+ - "*/*"
331
+ Authorization:
332
+ - Basic xxx==
333
+ Content-Type:
334
+ - application/x-www-form-urlencoded
335
+ Accept-Encoding:
336
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
337
+ response:
338
+ status:
339
+ code: 200
340
+ message: OK
341
+ headers:
342
+ Access-Control-Allow-Credentials:
343
+ - 'true'
344
+ Access-Control-Allow-Origin:
345
+ - "*"
346
+ Cache-Control:
347
+ - no-store
348
+ Content-Disposition:
349
+ - inline
350
+ Content-Length:
351
+ - '398'
352
+ Content-Type:
353
+ - application/json
354
+ Date:
355
+ - Sun, 26 Jan 2025 07:29:23 GMT
356
+ Server:
357
+ - TwistedWeb/20.3.0
358
+ Strict-Transport-Security:
359
+ - max-age=63072000; includeSubDomains
360
+ X-Mailgun-Key-Id:
361
+ - 90b59dea-f2d12a53
362
+ X-Xss-Protection:
363
+ - 1; mode=block
364
+ body:
365
+ encoding: UTF-8
366
+ string: |-
367
+ {
368
+ "list": {
369
+ "access_level": "members",
370
+ "address": "integration_test_list@DOMAIN.TEST",
371
+ "created_at": "Sun, 26 Jan 2025 07:29:23 -0000",
372
+ "description": "This list should be deleted automatically.",
373
+ "members_count": 0,
374
+ "name": "Integration Test List",
375
+ "reply_preference": "list"
376
+ },
377
+ "message": "Mailing list has been created"
378
+ }
379
+ http_version:
380
+ recorded_at: Sun, 26 Jan 2025 07:29:23 GMT
381
+ - request:
382
+ method: post
383
+ uri: https://api.mailgun.net/v3/lists/integration_test_list@DOMAIN.TEST/members
384
+ body:
385
+ encoding: UTF-8
386
+ string: address=integration_test_member_member%40DOMAIN.TEST&name=Jane+Doe&subscribed=true&upsert=no
387
+ headers:
388
+ User-Agent:
389
+ - mailgun-sdk-ruby/1.3.0
390
+ Accept:
391
+ - "*/*"
392
+ Authorization:
393
+ - Basic xxx==
394
+ Content-Type:
395
+ - application/x-www-form-urlencoded
396
+ Accept-Encoding:
397
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
398
+ response:
399
+ status:
400
+ code: 200
401
+ message: OK
402
+ headers:
403
+ Access-Control-Allow-Credentials:
404
+ - 'true'
405
+ Access-Control-Allow-Origin:
406
+ - "*"
407
+ Cache-Control:
408
+ - no-store
409
+ Content-Disposition:
410
+ - inline
411
+ Content-Length:
412
+ - '238'
413
+ Content-Type:
414
+ - application/json
415
+ Date:
416
+ - Sun, 26 Jan 2025 07:29:23 GMT
417
+ Server:
418
+ - TwistedWeb/20.3.0
419
+ Strict-Transport-Security:
420
+ - max-age=63072000; includeSubDomains
421
+ X-Mailgun-Key-Id:
422
+ - 90b59dea-f2d12a53
423
+ X-Xss-Protection:
424
+ - 1; mode=block
425
+ body:
426
+ encoding: UTF-8
427
+ string: |-
428
+ {
429
+ "member": {
430
+ "address": "integration_test_member_member@DOMAIN.TEST",
431
+ "name": "Jane Doe",
432
+ "subscribed": true,
433
+ "vars": {}
434
+ },
435
+ "message": "Mailing list member has been created"
436
+ }
437
+ http_version:
438
+ recorded_at: Sun, 26 Jan 2025 07:29:23 GMT
439
+ - request:
440
+ method: get
441
+ uri: https://api.mailgun.net/v3/lists/integration_test_list@DOMAIN.TEST/members/integration_test_member_member@DOMAIN.TEST
442
+ body:
443
+ encoding: US-ASCII
444
+ string: ''
445
+ headers:
446
+ User-Agent:
447
+ - mailgun-sdk-ruby/1.3.0
448
+ Accept:
449
+ - "*/*"
450
+ Authorization:
451
+ - Basic xxx==
452
+ Accept-Encoding:
453
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
454
+ response:
455
+ status:
456
+ code: 200
457
+ message: OK
458
+ headers:
459
+ Access-Control-Allow-Credentials:
460
+ - 'true'
461
+ Access-Control-Allow-Origin:
462
+ - "*"
463
+ Cache-Control:
464
+ - no-store
465
+ Content-Disposition:
466
+ - inline
467
+ Content-Length:
468
+ - '185'
469
+ Content-Type:
470
+ - application/json
471
+ Date:
472
+ - Sun, 26 Jan 2025 07:29:24 GMT
473
+ Server:
474
+ - TwistedWeb/20.3.0
475
+ Strict-Transport-Security:
476
+ - max-age=63072000; includeSubDomains
477
+ X-Mailgun-Key-Id:
478
+ - 90b59dea-f2d12a53
479
+ X-Xss-Protection:
480
+ - 1; mode=block
481
+ body:
482
+ encoding: UTF-8
483
+ string: |-
484
+ {
485
+ "member": {
486
+ "address": "integration_test_member_member@DOMAIN.TEST",
487
+ "name": "Jane Doe",
488
+ "subscribed": true,
489
+ "vars": {}
490
+ }
491
+ }
492
+ http_version:
493
+ recorded_at: Sun, 26 Jan 2025 07:29:24 GMT
494
+ - request:
495
+ method: put
496
+ uri: https://api.mailgun.net/v3/lists/integration_test_list@DOMAIN.TEST/members/integration_test_member_member@DOMAIN.TEST
497
+ body:
498
+ encoding: UTF-8
499
+ string: name=Jane+Doe+Update&subscribed=false
500
+ headers:
501
+ User-Agent:
502
+ - mailgun-sdk-ruby/1.3.0
503
+ Accept:
504
+ - "*/*"
505
+ Authorization:
506
+ - Basic xxx==
507
+ Content-Type:
508
+ - application/x-www-form-urlencoded
509
+ Accept-Encoding:
510
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
511
+ response:
512
+ status:
513
+ code: 200
514
+ message: OK
515
+ headers:
516
+ Access-Control-Allow-Credentials:
517
+ - 'true'
518
+ Access-Control-Allow-Origin:
519
+ - "*"
520
+ Cache-Control:
521
+ - no-store
522
+ Content-Disposition:
523
+ - inline
524
+ Content-Length:
525
+ - '246'
526
+ Content-Type:
527
+ - application/json
528
+ Date:
529
+ - Sun, 26 Jan 2025 07:29:24 GMT
530
+ Server:
531
+ - TwistedWeb/20.3.0
532
+ Strict-Transport-Security:
533
+ - max-age=63072000; includeSubDomains
534
+ X-Mailgun-Key-Id:
535
+ - 90b59dea-f2d12a53
536
+ X-Xss-Protection:
537
+ - 1; mode=block
538
+ body:
539
+ encoding: UTF-8
540
+ string: |-
541
+ {
542
+ "member": {
543
+ "address": "integration_test_member_member@DOMAIN.TEST",
544
+ "name": "Jane Doe Update",
545
+ "subscribed": false,
546
+ "vars": {}
547
+ },
548
+ "message": "Mailing list member has been updated"
549
+ }
550
+ http_version:
551
+ recorded_at: Sun, 26 Jan 2025 07:29:25 GMT
552
+ - request:
553
+ method: delete
554
+ uri: https://api.mailgun.net/v3/lists/integration_test_list@DOMAIN.TEST/members/integration_test_member_member@DOMAIN.TEST
555
+ body:
556
+ encoding: US-ASCII
557
+ string: ''
558
+ headers:
559
+ User-Agent:
560
+ - mailgun-sdk-ruby/1.3.0
561
+ Accept:
562
+ - "*/*"
563
+ Authorization:
564
+ - Basic xxx==
565
+ Accept-Encoding:
566
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
567
+ response:
568
+ status:
569
+ code: 200
570
+ message: OK
571
+ headers:
572
+ Access-Control-Allow-Credentials:
573
+ - 'true'
574
+ Access-Control-Allow-Origin:
575
+ - "*"
576
+ Cache-Control:
577
+ - no-store
578
+ Content-Disposition:
579
+ - inline
580
+ Content-Length:
581
+ - '174'
582
+ Content-Type:
583
+ - application/json
584
+ Date:
585
+ - Sun, 26 Jan 2025 07:29:25 GMT
586
+ Server:
587
+ - TwistedWeb/20.3.0
588
+ Strict-Transport-Security:
589
+ - max-age=63072000; includeSubDomains
590
+ X-Mailgun-Key-Id:
591
+ - 90b59dea-f2d12a53
592
+ X-Xss-Protection:
593
+ - 1; mode=block
594
+ body:
595
+ encoding: UTF-8
596
+ string: |-
597
+ {
598
+ "member": {
599
+ "address": "integration_test_member_member@DOMAIN.TEST"
600
+ },
601
+ "message": "Mailing list member has been deleted"
602
+ }
603
+ http_version:
604
+ recorded_at: Sun, 26 Jan 2025 07:29:26 GMT
605
+ - request:
606
+ method: delete
607
+ uri: https://api.mailgun.net/v3/lists/integration_test_list@DOMAIN.TEST
608
+ body:
609
+ encoding: US-ASCII
610
+ string: ''
611
+ headers:
612
+ User-Agent:
613
+ - mailgun-sdk-ruby/1.3.0
614
+ Accept:
615
+ - "*/*"
616
+ Authorization:
617
+ - Basic xxx==
618
+ Accept-Encoding:
619
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
620
+ response:
621
+ status:
622
+ code: 200
623
+ message: OK
624
+ headers:
625
+ Access-Control-Allow-Credentials:
626
+ - 'true'
627
+ Access-Control-Allow-Origin:
628
+ - "*"
629
+ Cache-Control:
630
+ - no-store
631
+ Content-Disposition:
632
+ - inline
633
+ Content-Length:
634
+ - '138'
635
+ Content-Type:
636
+ - application/json
637
+ Date:
638
+ - Sun, 26 Jan 2025 07:29:26 GMT
639
+ Server:
640
+ - TwistedWeb/20.3.0
641
+ Strict-Transport-Security:
642
+ - max-age=63072000; includeSubDomains
643
+ X-Mailgun-Key-Id:
644
+ - 90b59dea-f2d12a53
645
+ X-Xss-Protection:
646
+ - 1; mode=block
647
+ body:
648
+ encoding: UTF-8
649
+ string: |-
650
+ {
651
+ "address": "integration_test_list@DOMAIN.TEST",
652
+ "message": "Mailing list has been removed"
653
+ }
654
+ http_version:
655
+ recorded_at: Sun, 26 Jan 2025 07:29:26 GMT
656
+ recorded_with: VCR 3.0.3