mailgun-ruby 1.4.4 → 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 (114) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +721 -71
  3. data/README.md +4 -1
  4. data/lib/mailgun/api_keys/api_keys.rb +65 -0
  5. data/lib/mailgun/client.rb +2 -2
  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 +65 -18
  20. data/lib/mailgun.rb +2 -0
  21. metadata +7 -318
  22. data/.github/workflows/ci.yml +0 -49
  23. data/.gitignore +0 -24
  24. data/.rubocop.yml +0 -68
  25. data/.ruby-env.yml.example +0 -13
  26. data/Gemfile +0 -9
  27. data/Rakefile +0 -32
  28. data/docs/AccountWebhooks.md +0 -55
  29. data/docs/AnalyticsTags.md +0 -63
  30. data/docs/DomainKeys.md +0 -49
  31. data/docs/Domains.md +0 -82
  32. data/docs/EmailValidation.md +0 -34
  33. data/docs/Events.md +0 -48
  34. data/docs/Logs.md +0 -67
  35. data/docs/MessageBuilder.md +0 -120
  36. data/docs/Metrics.md +0 -108
  37. data/docs/OptInHandler.md +0 -103
  38. data/docs/Snippets.md +0 -519
  39. data/docs/Subaccounts.md +0 -68
  40. data/docs/Suppressions.md +0 -92
  41. data/docs/Templates.md +0 -92
  42. data/docs/Webhooks.md +0 -42
  43. data/docs/railgun/EmailValidation.md +0 -34
  44. data/docs/railgun/Overview.md +0 -11
  45. data/docs/railgun/Parameters.md +0 -83
  46. data/mailgun.gemspec +0 -47
  47. data/spec/integration/account_webhooks_spec.rb +0 -57
  48. data/spec/integration/analytics_tags_spec.rb +0 -54
  49. data/spec/integration/bounces_spec.rb +0 -45
  50. data/spec/integration/campaign_spec.rb +0 -62
  51. data/spec/integration/complaints_spec.rb +0 -40
  52. data/spec/integration/domain_keys_spec.rb +0 -124
  53. data/spec/integration/domains_spec.rb +0 -201
  54. data/spec/integration/email_validation_spec.rb +0 -73
  55. data/spec/integration/events_spec.rb +0 -28
  56. data/spec/integration/list_members_spec.rb +0 -64
  57. data/spec/integration/list_spec.rb +0 -59
  58. data/spec/integration/logs_spec.rb +0 -105
  59. data/spec/integration/mailer_spec.rb +0 -65
  60. data/spec/integration/mailgun_spec.rb +0 -198
  61. data/spec/integration/messages/sample_data/mime.txt +0 -38
  62. data/spec/integration/metrics_spec.rb +0 -224
  63. data/spec/integration/routes_spec.rb +0 -91
  64. data/spec/integration/stats_spec.rb +0 -17
  65. data/spec/integration/subaccounts_spec.rb +0 -57
  66. data/spec/integration/suppressions_spec.rb +0 -320
  67. data/spec/integration/templates_spec.rb +0 -137
  68. data/spec/integration/unsubscribes_spec.rb +0 -44
  69. data/spec/integration/webhook_spec.rb +0 -45
  70. data/spec/spec_helper.rb +0 -50
  71. data/spec/unit/client_spec.rb +0 -424
  72. data/spec/unit/connection/test_client.rb +0 -169
  73. data/spec/unit/events/events_spec.rb +0 -88
  74. data/spec/unit/exceptions/exceptions_spec.rb +0 -31
  75. data/spec/unit/helpers/api_version_checker_spec.rb +0 -206
  76. data/spec/unit/lists/opt_in_handler_spec.rb +0 -28
  77. data/spec/unit/mailgun_spec.rb +0 -171
  78. data/spec/unit/messages/batch_message_spec.rb +0 -148
  79. data/spec/unit/messages/message_builder_spec.rb +0 -745
  80. data/spec/unit/messages/sample_data/mailgun_icon.png +0 -0
  81. data/spec/unit/messages/sample_data/mime.txt +0 -38
  82. data/spec/unit/messages/sample_data/rackspace_logo.jpg +0 -0
  83. data/spec/unit/messages/sample_data/unknown.type +0 -0
  84. data/spec/unit/railgun/content_type_spec.rb +0 -89
  85. data/spec/unit/railgun/mailer_spec.rb +0 -391
  86. data/spec/unit/response_spec.rb +0 -225
  87. data/vcr_cassettes/For_the_suppressions_handling_class/creates_a_single_bounce.yml +0 -55
  88. data/vcr_cassettes/account_webhooks.yml +0 -269
  89. data/vcr_cassettes/analytics_tags.yml +0 -187
  90. data/vcr_cassettes/bounces.yml +0 -136
  91. data/vcr_cassettes/complaints.yml +0 -315
  92. data/vcr_cassettes/domains.todo.yml +0 -42
  93. data/vcr_cassettes/domains.yml +0 -1243
  94. data/vcr_cassettes/email_validation.yml +0 -152
  95. data/vcr_cassettes/events.yml +0 -69
  96. data/vcr_cassettes/exceptions-invalid-api-key.yml +0 -52
  97. data/vcr_cassettes/exceptions-invalid-data.yml +0 -52
  98. data/vcr_cassettes/exceptions-not-allowed.yml +0 -54
  99. data/vcr_cassettes/exceptions.yml +0 -92
  100. data/vcr_cassettes/list_members.yml +0 -328
  101. data/vcr_cassettes/logs.yml +0 -53
  102. data/vcr_cassettes/mailer_invalid_domain.yml +0 -109
  103. data/vcr_cassettes/mailing_list.todo.yml +0 -43
  104. data/vcr_cassettes/mailing_list.yml +0 -682
  105. data/vcr_cassettes/message_deliver.yml +0 -149
  106. data/vcr_cassettes/metrics.yml +0 -116
  107. data/vcr_cassettes/routes.yml +0 -359
  108. data/vcr_cassettes/send_message.yml +0 -158
  109. data/vcr_cassettes/stats.yml +0 -48
  110. data/vcr_cassettes/subaccounts.yml +0 -270
  111. data/vcr_cassettes/suppressions.yml +0 -1392
  112. data/vcr_cassettes/templates.yml +0 -1065
  113. data/vcr_cassettes/unsubscribes.yml +0 -401
  114. data/vcr_cassettes/webhooks.yml +0 -246
@@ -1,187 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://api.mailgun.net/v1/analytics/tags
6
- body:
7
- encoding: UTF-8
8
- string: include_subaccounts=true&pagination=%7Bsort%3A+%22lastseen%3Adesc%22%2C+limit%3A+10%7D
9
- headers:
10
- User-Agent:
11
- - mailgun-sdk-ruby/1.4.1
12
- Accept:
13
- - "*/*"
14
- Authorization:
15
- - Basic xxx
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
- response:
21
- status:
22
- code: 200
23
- message: OK
24
- headers:
25
- Access-Control-Allow-Credentials:
26
- - 'true'
27
- Access-Control-Allow-Origin:
28
- - "*"
29
- Cache-Control:
30
- - no-store
31
- Content-Length:
32
- - '317'
33
- Content-Type:
34
- - application/json; charset=utf-8
35
- Date:
36
- - Wed, 28 Jan 2026 18:49:42 GMT
37
- Strict-Transport-Security:
38
- - max-age=63072000; includeSubDomains
39
- X-Mailgun-Key-Id:
40
- - xxx
41
- X-Xss-Protection:
42
- - 1; mode=block
43
- body:
44
- encoding: UTF-8
45
- string: '{"items":[{"account_id":"test","parent_account_id":"test","tag":"test1","description":"","first_seen":"Wed,
46
- 28 Jan 2026 18:27:11 +0000","last_seen":"Wed, 28 Jan 2026 18:00:00 +0000","metrics":{},"account_name":"Alex
47
- Lebedev"}],"pagination":{"sort":"lastseen:desc","limit":10}}
48
-
49
- '
50
- recorded_at: Wed, 28 Jan 2026 18:49:42 GMT
51
- - request:
52
- method: get
53
- uri: https://api.mailgun.net/v1/analytics/tags/limits
54
- body:
55
- encoding: US-ASCII
56
- string: ''
57
- headers:
58
- User-Agent:
59
- - mailgun-sdk-ruby/1.4.1
60
- Accept:
61
- - "*/*"
62
- Authorization:
63
- - Basic xxx
64
- Accept-Encoding:
65
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
66
- response:
67
- status:
68
- code: 200
69
- message: OK
70
- headers:
71
- Access-Control-Allow-Credentials:
72
- - 'true'
73
- Access-Control-Allow-Origin:
74
- - "*"
75
- Cache-Control:
76
- - no-store
77
- Content-Length:
78
- - '49'
79
- Content-Type:
80
- - application/json; charset=utf-8
81
- Date:
82
- - Wed, 28 Jan 2026 18:55:47 GMT
83
- Strict-Transport-Security:
84
- - max-age=63072000; includeSubDomains
85
- X-Mailgun-Key-Id:
86
- - xxx
87
- X-Xss-Protection:
88
- - 1; mode=block
89
- body:
90
- encoding: UTF-8
91
- string: '{"limit":100000,"count":1,"limit_reached":false}
92
-
93
- '
94
- recorded_at: Wed, 28 Jan 2026 18:55:47 GMT
95
- - request:
96
- method: put
97
- uri: https://api.mailgun.net/v1/analytics/tags
98
- body:
99
- encoding: UTF-8
100
- string: '{"tag":"test1","description":"test_description"}'
101
- headers:
102
- User-Agent:
103
- - mailgun-sdk-ruby/1.4.2
104
- Accept:
105
- - "*/*"
106
- Content-Type:
107
- - application/json
108
- Authorization:
109
- - Basic xxx
110
- Accept-Encoding:
111
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
112
- response:
113
- status:
114
- code: 200
115
- message: OK
116
- headers:
117
- Access-Control-Allow-Credentials:
118
- - 'true'
119
- Access-Control-Allow-Origin:
120
- - "*"
121
- Cache-Control:
122
- - no-store
123
- Content-Length:
124
- - '26'
125
- Content-Type:
126
- - application/json; charset=utf-8
127
- Date:
128
- - Wed, 28 Jan 2026 20:04:23 GMT
129
- Strict-Transport-Security:
130
- - max-age=63072000; includeSubDomains
131
- X-Mailgun-Key-Id:
132
- - xxx
133
- X-Xss-Protection:
134
- - 1; mode=block
135
- body:
136
- encoding: UTF-8
137
- string: '{"message":"Tag updated"}
138
-
139
- '
140
- recorded_at: Wed, 28 Jan 2026 20:04:23 GMT
141
- - request:
142
- method: delete
143
- uri: https://api.mailgun.net/v1/analytics/tags
144
- body:
145
- encoding: UTF-8
146
- string: '{"tag":"test1"}'
147
- headers:
148
- User-Agent:
149
- - mailgun-sdk-ruby/1.4.2
150
- Accept:
151
- - "*/*"
152
- Authorization:
153
- - Basic xxx
154
- Content-Type:
155
- - application/x-www-form-urlencoded
156
- Accept-Encoding:
157
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
158
- response:
159
- status:
160
- code: 200
161
- message: OK
162
- headers:
163
- Access-Control-Allow-Credentials:
164
- - 'true'
165
- Access-Control-Allow-Origin:
166
- - "*"
167
- Cache-Control:
168
- - no-store
169
- Content-Length:
170
- - '26'
171
- Content-Type:
172
- - application/json; charset=utf-8
173
- Date:
174
- - Wed, 28 Jan 2026 20:05:54 GMT
175
- Strict-Transport-Security:
176
- - max-age=63072000; includeSubDomains
177
- X-Mailgun-Key-Id:
178
- - xxx
179
- X-Xss-Protection:
180
- - 1; mode=block
181
- body:
182
- encoding: UTF-8
183
- string: '{"message":"Tag deleted"}
184
-
185
- '
186
- recorded_at: Wed, 28 Jan 2026 20:05:54 GMT
187
- recorded_with: VCR 6.4.0
@@ -1,136 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://api.mailgun.net/bounces
6
- body:
7
- encoding: UTF-8
8
- string: address=integration-test%2Bemail%40&code=550&error=Integration+Test
9
- headers:
10
- User-Agent:
11
- - mailgun-sdk-ruby/1.3.2
12
- Accept:
13
- - "*/*"
14
- Authorization:
15
- - Basic xxx==
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
- response:
21
- status:
22
- code: 200
23
- message: OK
24
- headers:
25
- Date:
26
- - Mon, 24 Feb 2025 23:15:10 GMT
27
- Content-Length:
28
- - '0'
29
- body:
30
- encoding: UTF-8
31
- string: '{"message":"Address has been added to the bounces table","address":"integration-test+email@"}
32
-
33
- '
34
- http_version:
35
- recorded_at: Mon, 24 Feb 2025 23:15:10 GMT
36
- - request:
37
- method: get
38
- uri: https://api.mailgun.net/bounces/integration-test+email@
39
- body:
40
- encoding: US-ASCII
41
- string: ''
42
- headers:
43
- User-Agent:
44
- - mailgun-sdk-ruby/1.3.2
45
- Accept:
46
- - "*/*"
47
- Authorization:
48
- - Basic xxx==
49
- Accept-Encoding:
50
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
51
- response:
52
- status:
53
- code: 200
54
- message: OK
55
- headers:
56
- Date:
57
- - Mon, 24 Feb 2025 23:15:11 GMT
58
- Content-Length:
59
- - '0'
60
- body:
61
- encoding: UTF-8
62
- string: '{"address":"integration-test+email@","code":"550","error":"Integration
63
- Test","created_at":"Sun, 26 Jan 2025 07:29:04 UTC"}
64
-
65
- '
66
- http_version:
67
- recorded_at: Mon, 24 Feb 2025 23:15:11 GMT
68
- - request:
69
- method: get
70
- uri: https://api.mailgun.net/bounces
71
- body:
72
- encoding: US-ASCII
73
- string: ''
74
- headers:
75
- User-Agent:
76
- - mailgun-sdk-ruby/1.3.2
77
- Accept:
78
- - "*/*"
79
- Authorization:
80
- - Basic xxx==
81
- Accept-Encoding:
82
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
83
- response:
84
- status:
85
- code: 200
86
- message: OK
87
- headers:
88
- Date:
89
- - Mon, 24 Feb 2025 23:15:11 GMT
90
- Content-Length:
91
- - '0'
92
- body:
93
- encoding: UTF-8
94
- string: '{"items":[{"address":"integration-test+email@DOMAIN.TEST","code":"550","error":"Integration
95
- Test","created_at":"Sun, 26 Jan 2025 07:29:04 UTC"}],"paging":{"first":"https://api.mailgun.net/v3/DOMAIN.TEST/bounces?limit=100&term=","last":"https://api.mailgun.net/v3/DOMAIN.TEST/bounces?page=last&limit=100&term=","next":"https://api.mailgun.net/v3/DOMAIN.TEST/bounces?page=next&address=integration-test%2Bemail%40DOMAIN.TEST&limit=100&term=","previous":"https://api.mailgun.net/v3/DOMAIN.TEST/bounces?page=previous&address=integration-test%2Bemail%40DOMAIN.TEST&limit=100&term="}}
96
-
97
- '
98
- http_version:
99
- recorded_at: Mon, 24 Feb 2025 23:15:11 GMT
100
- - request:
101
- method: delete
102
- uri: https://api.mailgun.net/bounces/integration-test+email@
103
- body:
104
- encoding: US-ASCII
105
- string: ''
106
- headers:
107
- User-Agent:
108
- - mailgun-sdk-ruby/1.3.2
109
- Accept:
110
- - "*/*"
111
- Authorization:
112
- - Basic xxx==
113
- Accept-Encoding:
114
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
115
- response:
116
- status:
117
- code: 200
118
- message: OK
119
- headers:
120
- Content-Type:
121
- - text/plain; charset=utf-8
122
- X-Content-Type-Options:
123
- - nosniff
124
- Date:
125
- - Mon, 24 Feb 2025 23:15:12 GMT
126
- Content-Length:
127
- - '19'
128
- body:
129
- encoding: UTF-8
130
- string: '{"address":"integration-test+email@DOMAIN.TEST","message":"Bounced
131
- address has been removed"}
132
-
133
- '
134
- http_version:
135
- recorded_at: Sun, 26 Jan 2025 07:29:06 GMT
136
- recorded_with: VCR 3.0.3
@@ -1,315 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://api.mailgun.net/complaints
6
- body:
7
- encoding: UTF-8
8
- string: address=integration-test-email%40
9
- headers:
10
- User-Agent:
11
- - mailgun-sdk-ruby/1.3.2
12
- Accept:
13
- - "*/*"
14
- Authorization:
15
- - Basic xxx==
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
- response:
21
- status:
22
- code: 200
23
- message: OK
24
- headers:
25
- Date:
26
- - Mon, 24 Feb 2025 23:26:19 GMT
27
- Content-Length:
28
- - '0'
29
- body:
30
- encoding: UTF-8
31
- string: '{"address":"integration-test-email@","message":"Address has been added
32
- to the complaints table"}
33
-
34
- '
35
- http_version:
36
- recorded_at: Mon, 24 Feb 2025 23:26:19 GMT
37
- - request:
38
- method: get
39
- uri: https://api.mailgun.net/complaints/integration-test-email@
40
- body:
41
- encoding: US-ASCII
42
- string: ''
43
- headers:
44
- User-Agent:
45
- - mailgun-sdk-ruby/1.3.2
46
- Accept:
47
- - "*/*"
48
- Authorization:
49
- - Basic xxx==
50
- Accept-Encoding:
51
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
52
- response:
53
- status:
54
- code: 200
55
- message: OK
56
- headers:
57
- Date:
58
- - Mon, 24 Feb 2025 23:26:20 GMT
59
- Content-Length:
60
- - '0'
61
- body:
62
- encoding: UTF-8
63
- string: '{"address":"integration-test-email@","created_at":"Sun, 26 Jan 2025
64
- 07:29:06 UTC"}
65
-
66
- '
67
- http_version:
68
- recorded_at: Mon, 24 Feb 2025 23:26:20 GMT
69
- - request:
70
- method: get
71
- uri: https://api.mailgun.net/complaints
72
- body:
73
- encoding: US-ASCII
74
- string: ''
75
- headers:
76
- User-Agent:
77
- - mailgun-sdk-ruby/1.3.2
78
- Accept:
79
- - "*/*"
80
- Authorization:
81
- - Basic xxx
82
- Accept-Encoding:
83
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
84
- response:
85
- status:
86
- code: 200
87
- message: OK
88
- headers:
89
- Date:
90
- - Mon, 24 Feb 2025 23:26:20 GMT
91
- Content-Length:
92
- - '0'
93
- body:
94
- encoding: UTF-8
95
- string: '{"items":[{"address":"integration-test-email@DOMAIN.TEST","created_at":"Sun,
96
- 26 Jan 2025 07:29:06 UTC"}],"paging":{"first":"https://api.mailgun.net/v3/DOMAIN.TEST/complaints?limit=100&term=","last":"https://api.mailgun.net/v3/DOMAIN.TEST/complaints?page=last&limit=100&term=","next":"https://api.mailgun.net/v3/DOMAIN.TEST/complaints?page=next&address=integration-test-email%40DOMAIN.TEST&limit=100&term=","previous":"https://api.mailgun.net/v3/DOMAIN.TEST/complaints?page=previous&address=integration-test-email%40DOMAIN.TEST&limit=100&term="}}
97
-
98
- '
99
- http_version:
100
- recorded_at: Mon, 24 Feb 2025 23:26:20 GMT
101
- - request:
102
- method: delete
103
- uri: https://api.mailgun.net/complaints/integration-test-email@
104
- body:
105
- encoding: US-ASCII
106
- string: ''
107
- headers:
108
- User-Agent:
109
- - mailgun-sdk-ruby/1.3.2
110
- Accept:
111
- - "*/*"
112
- Authorization:
113
- - Basic xxx==
114
- Accept-Encoding:
115
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
116
- response:
117
- status:
118
- code: 200
119
- message: OK
120
- headers:
121
- Content-Type:
122
- - text/plain; charset=utf-8
123
- X-Content-Type-Options:
124
- - nosniff
125
- Date:
126
- - Mon, 24 Feb 2025 23:26:21 GMT
127
- Content-Length:
128
- - '19'
129
- body:
130
- encoding: UTF-8
131
- string: '{"address":"integration-test-email@","message":"Spam complaint has
132
- been removed"}
133
-
134
- '
135
- http_version:
136
- recorded_at: Fri, 08 Jan 2016 20:32:00 GMT
137
- - request:
138
- method: post
139
- uri: https://api.mailgun.net/v3/DOMAIN.TEST/complaints
140
- body:
141
- encoding: UTF-8
142
- string: address=integration-test-email%40DOMAIN.TEST
143
- headers:
144
- User-Agent:
145
- - mailgun-sdk-ruby/1.3.0
146
- Accept:
147
- - "*/*"
148
- Authorization:
149
- - Basic xxx==
150
- Content-Type:
151
- - application/x-www-form-urlencoded
152
- Accept-Encoding:
153
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
154
- response:
155
- status:
156
- code: 200
157
- message: OK
158
- headers:
159
- Access-Control-Allow-Credentials:
160
- - 'true'
161
- Access-Control-Allow-Origin:
162
- - "*"
163
- Cache-Control:
164
- - no-store
165
- Content-Length:
166
- - '40'
167
- Content-Type:
168
- - application/json; charset=utf-8
169
- Date:
170
- - Tue, 25 Feb 2025 01:31:44 GMT
171
- Strict-Transport-Security:
172
- - max-age=63072000; includeSubDomains
173
- X-Xss-Protection:
174
- - 1; mode=block
175
- body:
176
- encoding: UTF-8
177
- string: '{"address":"integration-test-email@DOMAIN.TEST","message":"Address
178
- has been added to the complaints table"}
179
-
180
- '
181
- http_version:
182
- recorded_at: Tue, 25 Feb 2025 01:31:44 GMT
183
- - request:
184
- method: get
185
- uri: https://api.mailgun.net/v3/DOMAIN.TEST/complaints/integration-test-email@DOMAIN.TEST
186
- body:
187
- encoding: US-ASCII
188
- string: ''
189
- headers:
190
- User-Agent:
191
- - mailgun-sdk-ruby/1.3.2
192
- Accept:
193
- - "*/*"
194
- Authorization:
195
- - Basic xxx==
196
- Accept-Encoding:
197
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
198
- response:
199
- status:
200
- code: 200
201
- message: OK
202
- headers:
203
- Access-Control-Allow-Credentials:
204
- - 'true'
205
- Access-Control-Allow-Origin:
206
- - "*"
207
- Cache-Control:
208
- - no-store
209
- Content-Length:
210
- - '134'
211
- Content-Type:
212
- - application/json; charset=utf-8
213
- Date:
214
- - Sun, 26 Jan 2025 07:29:07 GMT
215
- Strict-Transport-Security:
216
- - max-age=63072000; includeSubDomains
217
- X-Xss-Protection:
218
- - 1; mode=block
219
- body:
220
- encoding: UTF-8
221
- string: '{"address":"integration-test-email@DOMAIN.TEST","created_at":"Sun,
222
- 26 Jan 2025 07:29:06 UTC"}
223
-
224
- '
225
- http_version:
226
- recorded_at: Sun, 26 Jan 2025 07:29:07 GMT
227
- - request:
228
- method: get
229
- uri: https://api.mailgun.net/v3/DOMAIN.TEST/complaints
230
- body:
231
- encoding: US-ASCII
232
- string: ''
233
- headers:
234
- User-Agent:
235
- - mailgun-sdk-ruby/1.3.0
236
- Accept:
237
- - "*/*"
238
- Authorization:
239
- - Basic xxx==
240
- Accept-Encoding:
241
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
242
- response:
243
- status:
244
- code: 200
245
- message: OK
246
- headers:
247
- Access-Control-Allow-Credentials:
248
- - 'true'
249
- Access-Control-Allow-Origin:
250
- - "*"
251
- Cache-Control:
252
- - no-store
253
- Content-Length:
254
- - '826'
255
- Content-Type:
256
- - application/json; charset=utf-8
257
- Date:
258
- - Sun, 26 Jan 2025 07:29:08 GMT
259
- Strict-Transport-Security:
260
- - max-age=63072000; includeSubDomains
261
- X-Xss-Protection:
262
- - 1; mode=block
263
- body:
264
- encoding: UTF-8
265
- string: '{"items":[{"address":"integration-test-email@DOMAIN.TEST","created_at":"Sun,
266
- 26 Jan 2025 07:29:06 UTC"}],"paging":{"first":"https://api.mailgun.net/v3/DOMAIN.TEST/complaints?limit=100&term=","last":"https://api.mailgun.net/v3/DOMAIN.TEST/complaints?page=last&limit=100&term=","next":"https://api.mailgun.net/v3/DOMAIN.TEST/complaints?page=next&address=integration-test-email%40DOMAIN.TEST&limit=100&term=","previous":"https://api.mailgun.net/v3/DOMAIN.TEST/complaints?page=previous&address=integration-test-email%40DOMAIN.TEST&limit=100&term="}}
267
-
268
- '
269
- http_version:
270
- recorded_at: Sun, 26 Jan 2025 07:29:08 GMT
271
- - request:
272
- method: delete
273
- uri: https://api.mailgun.net/v3/DOMAIN.TEST/complaints/integration-test-email@DOMAIN.TEST
274
- body:
275
- encoding: US-ASCII
276
- string: ''
277
- headers:
278
- User-Agent:
279
- - mailgun-sdk-ruby/1.3.2
280
- Accept:
281
- - "*/*"
282
- Authorization:
283
- - Basic xxx==
284
- Accept-Encoding:
285
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
286
- response:
287
- status:
288
- code: 200
289
- message: OK
290
- headers:
291
- Access-Control-Allow-Credentials:
292
- - 'true'
293
- Access-Control-Allow-Origin:
294
- - "*"
295
- Cache-Control:
296
- - no-store
297
- Content-Length:
298
- - '133'
299
- Content-Type:
300
- - application/json; charset=utf-8
301
- Date:
302
- - Sun, 26 Jan 2025 07:29:08 GMT
303
- Strict-Transport-Security:
304
- - max-age=63072000; includeSubDomains
305
- X-Xss-Protection:
306
- - 1; mode=block
307
- body:
308
- encoding: UTF-8
309
- string: '{"address":"integration-test-email@DOMAIN.TEST","message":"Spam complaint
310
- has been removed"}
311
-
312
- '
313
- http_version:
314
- recorded_at: Tue, 25 Feb 2025 01:31:45 GMT
315
- recorded_with: VCR 3.0.3
@@ -1,42 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://api:<APIKEY>@api.mailgun.net/v3/domains
6
- body:
7
- encoding: US-ASCII
8
- string: name=integration-test.domain.invalid&smtp_password=super_secret&spam_action=tag
9
- headers:
10
- Accept:
11
- - "*/*; q=0.5, application/xml"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- Content-Length:
15
- - '79'
16
- Content-Type:
17
- - application/x-www-form-urlencoded
18
- User-Agent:
19
- - Ruby
20
- response:
21
- status:
22
- code: 400
23
- message: Bad Request
24
- headers:
25
- Server:
26
- - nginx
27
- Date:
28
- - Fri, 08 Jan 2016 20:34:40 GMT
29
- Content-Type:
30
- - application/json
31
- Content-Length:
32
- - '52'
33
- Connection:
34
- - keep-alive
35
- body:
36
- encoding: UTF-8
37
- string: |-
38
- {
39
- "message": "This domain name is already taken"
40
- }
41
- http_version:
42
- recorded_at: Fri, 08 Jan 2016 20:34:41 GMT