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,1243 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://api.mailgun.net/v4/domains
6
- body:
7
- encoding: UTF-8
8
- string: name=integration-test.domain.invalid&smtp_password&spam_action=tag&wildcard=false
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
- Access-Control-Allow-Credentials:
26
- - 'true'
27
- Access-Control-Allow-Origin:
28
- - "*"
29
- Cache-Control:
30
- - no-store
31
- Content-Length:
32
- - '1382'
33
- Content-Type:
34
- - application/json; charset=utf-8
35
- Date:
36
- - Mon, 24 Feb 2025 22:44:03 GMT
37
- Strict-Transport-Security:
38
- - max-age=63072000; includeSubDomains
39
- X-Mailgun-Key-Id:
40
- - c02fd0ba-d8dbad66
41
- X-Xss-Protection:
42
- - 1; mode=block
43
- body:
44
- encoding: UTF-8
45
- string: '{"message":"Domain DNS records have been created","domain":{"created_at":"Mon,
46
- 24 Feb 2025 22:44:03 GMT","id":"67bcf63306fcfd2fb4b7e056","is_disabled":false,"name":"integration-test.domain.invalid","require_tls":false,"skip_verification":false,"smtp_login":"postmaster@integration-test.domain.invalid","spam_action":"tag","state":"unverified","type":"custom","use_automatic_sender_security":false,"web_prefix":"email","web_scheme":"http","wildcard":false},"receiving_dns_records":[{"is_active":true,"cached":[],"priority":"10","record_type":"MX","valid":"unknown","value":"mxa.mailgun.org"},{"is_active":true,"cached":[],"priority":"10","record_type":"MX","valid":"unknown","value":"mxb.mailgun.org"}],"sending_dns_records":[{"is_active":false,"cached":[],"name":"smtp._domainkey.integration-test.domain.invalid","record_type":"TXT","valid":"unknown","value":"k=rsa;
47
- p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD9rVPILouDJkj47mEjLdzLbPW2YdSujAiNLw9wZ/Y19iA1h3LTNGOC+UKqjm1lF2SYVLLf1mkpX9ZjhWEQ/MR8WAGCbzTSYOlzLFeAC2g0JO/Xk9kqqlRIJX8vv2XkAwH7mgZA+CPpWghWQLT/IAHlbPy3WSt5uXKZOd/oANzafwIDAQAB"},{"is_active":true,"cached":[],"name":"integration-test.domain.invalid","record_type":"TXT","valid":"unknown","value":"v=spf1
48
- include:mailgun.org ~all"},{"is_active":true,"cached":[],"name":"email.integration-test.domain.invalid","record_type":"CNAME","valid":"unknown","value":"mailgun.org"}]}
49
-
50
- '
51
- http_version:
52
- recorded_at: Mon, 24 Feb 2025 22:44:03 GMT
53
- - request:
54
- method: get
55
- uri: https://api.mailgun.net/v4/domains/integration-test.domain.invalid
56
- body:
57
- encoding: US-ASCII
58
- string: ''
59
- headers:
60
- User-Agent:
61
- - mailgun-sdk-ruby/1.3.2
62
- Accept:
63
- - "*/*"
64
- Authorization:
65
- - Basic xxx
66
- Accept-Encoding:
67
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
68
- response:
69
- status:
70
- code: 200
71
- message: OK
72
- headers:
73
- Access-Control-Allow-Credentials:
74
- - 'true'
75
- Access-Control-Allow-Origin:
76
- - "*"
77
- Cache-Control:
78
- - no-store
79
- Content-Length:
80
- - '1333'
81
- Content-Type:
82
- - application/json; charset=utf-8
83
- Date:
84
- - Mon, 24 Feb 2025 22:44:04 GMT
85
- Strict-Transport-Security:
86
- - max-age=63072000; includeSubDomains
87
- X-Mailgun-Key-Id:
88
- - c02fd0ba-d8dbad66
89
- X-Xss-Protection:
90
- - 1; mode=block
91
- body:
92
- encoding: UTF-8
93
- string: '{"domain":{"created_at":"Mon, 24 Feb 2025 22:44:03 GMT","id":"67bcf63306fcfd2fb4b7e056","is_disabled":false,"name":"integration-test.domain.invalid","require_tls":false,"skip_verification":false,"smtp_login":"postmaster@integration-test.domain.invalid","spam_action":"tag","state":"unverified","type":"custom","use_automatic_sender_security":false,"web_prefix":"email","web_scheme":"http","wildcard":false},"receiving_dns_records":[{"is_active":true,"cached":[],"priority":"10","record_type":"MX","valid":"unknown","value":"mxa.mailgun.org"},{"is_active":true,"cached":[],"priority":"10","record_type":"MX","valid":"unknown","value":"mxb.mailgun.org"}],"sending_dns_records":[{"is_active":false,"cached":[],"name":"smtp._domainkey.integration-test.domain.invalid","record_type":"TXT","valid":"unknown","value":"k=rsa;
94
- p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD9rVPILouDJkj47mEjLdzLbPW2YdSujAiNLw9wZ/Y19iA1h3LTNGOC+UKqjm1lF2SYVLLf1mkpX9ZjhWEQ/MR8WAGCbzTSYOlzLFeAC2g0JO/Xk9kqqlRIJX8vv2XkAwH7mgZA+CPpWghWQLT/IAHlbPy3WSt5uXKZOd/oANzafwIDAQAB"},{"is_active":true,"cached":[],"name":"integration-test.domain.invalid","record_type":"TXT","valid":"unknown","value":"v=spf1
95
- include:mailgun.org ~all"},{"is_active":true,"cached":[],"name":"email.integration-test.domain.invalid","record_type":"CNAME","valid":"unknown","value":"mailgun.org"}]}
96
-
97
- '
98
- http_version:
99
- recorded_at: Mon, 24 Feb 2025 22:44:04 GMT
100
- - request:
101
- method: get
102
- uri: https://api.mailgun.net/v4/domains
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
- Access-Control-Allow-Credentials:
121
- - 'true'
122
- Access-Control-Allow-Origin:
123
- - "*"
124
- Cache-Control:
125
- - no-store
126
- Content-Length:
127
- - '864'
128
- Content-Type:
129
- - application/json; charset=utf-8
130
- Date:
131
- - Mon, 24 Feb 2025 22:44:05 GMT
132
- Strict-Transport-Security:
133
- - max-age=63072000; includeSubDomains
134
- X-Mailgun-Key-Id:
135
- - c02fd0ba-d8dbad66
136
- X-Xss-Protection:
137
- - 1; mode=block
138
- body:
139
- encoding: UTF-8
140
- string: '{"total_count":2,"items":[{"created_at":"Mon, 24 Feb 2025 22:44:03
141
- GMT","id":"67bcf63306fcfd2fb4b7e056","is_disabled":false,"name":"integration-test.domain.invalid","require_tls":false,"skip_verification":false,"smtp_login":"postmaster@integration-test.domain.invalid","spam_action":"tag","state":"unverified","type":"custom","use_automatic_sender_security":false,"web_prefix":"email","web_scheme":"http","wildcard":false},{"created_at":"Wed,
142
- 27 Nov 2024 11:44:11 GMT","id":"6747060bb7a2b281f7ca1f6c","is_disabled":false,"name":"sandbox61429c204b744e7fbbb7375ac93ad3d7.mailgun.org","require_tls":false,"skip_verification":false,"smtp_login":"postmaster@sandbox61429c204b744e7fbbb7375ac93ad3d7.mailgun.org","spam_action":"disabled","state":"active","type":"sandbox","use_automatic_sender_security":false,"web_prefix":"email","web_scheme":"http","wildcard":false}]}
143
-
144
- '
145
- http_version:
146
- recorded_at: Mon, 24 Feb 2025 22:44:05 GMT
147
- - request:
148
- method: put
149
- uri: https://api.mailgun.net/v4/domains/integration-test.domain.invalid
150
- body:
151
- encoding: UTF-8
152
- string: spam_action=block&web_scheme=https&wildcard=true
153
- headers:
154
- User-Agent:
155
- - mailgun-sdk-ruby/1.3.2
156
- Accept:
157
- - "*/*"
158
- Authorization:
159
- - Basic xxx
160
- Content-Type:
161
- - application/x-www-form-urlencoded
162
- Accept-Encoding:
163
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
164
- response:
165
- status:
166
- code: 200
167
- message: OK
168
- headers:
169
- Access-Control-Allow-Credentials:
170
- - 'true'
171
- Access-Control-Allow-Origin:
172
- - "*"
173
- Cache-Control:
174
- - no-store
175
- Content-Length:
176
- - '1371'
177
- Content-Type:
178
- - application/json; charset=utf-8
179
- Date:
180
- - Mon, 24 Feb 2025 22:44:05 GMT
181
- Strict-Transport-Security:
182
- - max-age=63072000; includeSubDomains
183
- X-Mailgun-Key-Id:
184
- - c02fd0ba-d8dbad66
185
- X-Xss-Protection:
186
- - 1; mode=block
187
- body:
188
- encoding: UTF-8
189
- string: '{"message":"Domain has been updated","domain":{"created_at":"Mon, 24
190
- Feb 2025 22:44:03 GMT","id":"67bcf63306fcfd2fb4b7e056","is_disabled":false,"name":"integration-test.domain.invalid","require_tls":false,"skip_verification":false,"smtp_login":"postmaster@integration-test.domain.invalid","spam_action":"block","state":"unverified","type":"custom","use_automatic_sender_security":false,"web_prefix":"email","web_scheme":"https","wildcard":true},"receiving_dns_records":[{"is_active":true,"cached":[],"priority":"10","record_type":"MX","valid":"unknown","value":"mxa.mailgun.org"},{"is_active":true,"cached":[],"priority":"10","record_type":"MX","valid":"unknown","value":"mxb.mailgun.org"}],"sending_dns_records":[{"is_active":true,"cached":[],"name":"integration-test.domain.invalid","record_type":"TXT","valid":"unknown","value":"v=spf1
191
- include:mailgun.org ~all"},{"is_active":false,"cached":[],"name":"smtp._domainkey.integration-test.domain.invalid","record_type":"TXT","valid":"unknown","value":"k=rsa;
192
- p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD9rVPILouDJkj47mEjLdzLbPW2YdSujAiNLw9wZ/Y19iA1h3LTNGOC+UKqjm1lF2SYVLLf1mkpX9ZjhWEQ/MR8WAGCbzTSYOlzLFeAC2g0JO/Xk9kqqlRIJX8vv2XkAwH7mgZA+CPpWghWQLT/IAHlbPy3WSt5uXKZOd/oANzafwIDAQAB"},{"is_active":true,"cached":[],"name":"email.integration-test.domain.invalid","record_type":"CNAME","valid":"unknown","value":"mailgun.org"}]}
193
-
194
- '
195
- http_version:
196
- recorded_at: Mon, 24 Feb 2025 22:44:05 GMT
197
- - request:
198
- method: post
199
- uri: https://api.mailgun.net/v3/domains/integration-test.domain.invalid/credentials
200
- body:
201
- encoding: UTF-8
202
- string: login=test_login
203
- headers:
204
- User-Agent:
205
- - mailgun-sdk-ruby/1.3.2
206
- Accept:
207
- - "*/*"
208
- Authorization:
209
- - Basic xxx
210
- Content-Type:
211
- - application/x-www-form-urlencoded
212
- Accept-Encoding:
213
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
214
- response:
215
- status:
216
- code: 200
217
- message: OK
218
- headers:
219
- Access-Control-Allow-Credentials:
220
- - 'true'
221
- Access-Control-Allow-Origin:
222
- - "*"
223
- Cache-Control:
224
- - no-store
225
- Content-Length:
226
- - '243'
227
- Content-Type:
228
- - application/json; charset=utf-8
229
- Date:
230
- - Mon, 24 Feb 2025 22:44:06 GMT
231
- Strict-Transport-Security:
232
- - max-age=63072000; includeSubDomains
233
- X-Mailgun-Key-Id:
234
- - c02fd0ba-d8dbad66
235
- X-Xss-Protection:
236
- - 1; mode=block
237
- body:
238
- encoding: UTF-8
239
- string: '{"message":"Created 1 credentials pair(s)","note":"Please store your
240
- new password(s) now. You won''t be able to see it anymore.","credentials":{"test_login@integration-test.domain.invalid":"5859b4b37276175a5f43c00fa9c94028-3af52e3b-046db944"}}
241
-
242
- '
243
- http_version:
244
- recorded_at: Mon, 24 Feb 2025 22:44:06 GMT
245
- - request:
246
- method: put
247
- uri: https://api.mailgun.net/v3/domains/integration-test.domain.invalid/credentials/test_login
248
- body:
249
- encoding: UTF-8
250
- string: spec=abc
251
- headers:
252
- User-Agent:
253
- - mailgun-sdk-ruby/1.3.2
254
- Accept:
255
- - "*/*"
256
- Authorization:
257
- - Basic xxx
258
- Content-Type:
259
- - application/x-www-form-urlencoded
260
- Accept-Encoding:
261
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
262
- response:
263
- status:
264
- code: 200
265
- message: OK
266
- headers:
267
- Access-Control-Allow-Credentials:
268
- - 'true'
269
- Access-Control-Allow-Origin:
270
- - "*"
271
- Cache-Control:
272
- - no-store
273
- Content-Length:
274
- - '230'
275
- Content-Type:
276
- - application/json; charset=utf-8
277
- Date:
278
- - Mon, 24 Feb 2025 22:44:06 GMT
279
- Strict-Transport-Security:
280
- - max-age=63072000; includeSubDomains
281
- X-Mailgun-Key-Id:
282
- - c02fd0ba-d8dbad66
283
- X-Xss-Protection:
284
- - 1; mode=block
285
- body:
286
- encoding: UTF-8
287
- string: '{"message":"Password changed","note":"Please store your new password(s)
288
- now. You won''t be able to see it anymore.","credentials":{"test_login@integration-test.domain.invalid":"06cd2f97e409d2fc564ffa6cd835d620-3af52e3b-282ac1b9"}}
289
-
290
- '
291
- http_version:
292
- recorded_at: Mon, 24 Feb 2025 22:44:06 GMT
293
- - request:
294
- method: delete
295
- uri: https://api.mailgun.net/v3/domains/integration-test.domain.invalid/credentials/test_login
296
- body:
297
- encoding: US-ASCII
298
- string: ''
299
- headers:
300
- User-Agent:
301
- - mailgun-sdk-ruby/1.3.2
302
- Accept:
303
- - "*/*"
304
- Authorization:
305
- - Basic xxx
306
- Accept-Encoding:
307
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
308
- response:
309
- status:
310
- code: 200
311
- message: OK
312
- headers:
313
- Access-Control-Allow-Credentials:
314
- - 'true'
315
- Access-Control-Allow-Origin:
316
- - "*"
317
- Cache-Control:
318
- - no-store
319
- Content-Length:
320
- - '96'
321
- Content-Type:
322
- - application/json; charset=utf-8
323
- Date:
324
- - Mon, 24 Feb 2025 22:44:07 GMT
325
- Strict-Transport-Security:
326
- - max-age=63072000; includeSubDomains
327
- X-Mailgun-Key-Id:
328
- - c02fd0ba-d8dbad66
329
- X-Xss-Protection:
330
- - 1; mode=block
331
- body:
332
- encoding: UTF-8
333
- string: '{"message":"Credentials have been deleted","spec":"test_login@integration-test.domain.invalid"}
334
-
335
- '
336
- http_version:
337
- recorded_at: Mon, 24 Feb 2025 22:44:07 GMT
338
- - request:
339
- method: get
340
- uri: https://api.mailgun.net/v3/domains/integration-test.domain.invalid/connection
341
- body:
342
- encoding: US-ASCII
343
- string: ''
344
- headers:
345
- User-Agent:
346
- - mailgun-sdk-ruby/1.3.2
347
- Accept:
348
- - "*/*"
349
- Authorization:
350
- - Basic xxx
351
- Accept-Encoding:
352
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
353
- response:
354
- status:
355
- code: 200
356
- message: OK
357
- headers:
358
- Access-Control-Allow-Credentials:
359
- - 'true'
360
- Access-Control-Allow-Origin:
361
- - "*"
362
- Cache-Control:
363
- - no-store
364
- Content-Length:
365
- - '48'
366
- Content-Type:
367
- - application/json; charset=utf-8
368
- Date:
369
- - Mon, 24 Feb 2025 22:44:07 GMT
370
- Strict-Transport-Security:
371
- - max-age=63072000; includeSubDomains
372
- X-Mailgun-Key-Id:
373
- - c02fd0ba-d8dbad66
374
- X-Xss-Protection:
375
- - 1; mode=block
376
- body:
377
- encoding: UTF-8
378
- string: '{"require_tls":false,"skip_verification":false}
379
-
380
- '
381
- http_version:
382
- recorded_at: Mon, 24 Feb 2025 22:44:07 GMT
383
- - request:
384
- method: put
385
- uri: https://api.mailgun.net/v3/domains/integration-test.domain.invalid/connection
386
- body:
387
- encoding: UTF-8
388
- string: require_tls=true&skip_verification=true
389
- headers:
390
- User-Agent:
391
- - mailgun-sdk-ruby/1.3.2
392
- Accept:
393
- - "*/*"
394
- Authorization:
395
- - Basic xxx
396
- Content-Type:
397
- - application/x-www-form-urlencoded
398
- Accept-Encoding:
399
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
400
- response:
401
- status:
402
- code: 200
403
- message: OK
404
- headers:
405
- Access-Control-Allow-Credentials:
406
- - 'true'
407
- Access-Control-Allow-Origin:
408
- - "*"
409
- Cache-Control:
410
- - no-store
411
- Content-Length:
412
- - '143'
413
- Content-Type:
414
- - application/json; charset=utf-8
415
- Date:
416
- - Mon, 24 Feb 2025 22:44:08 GMT
417
- Strict-Transport-Security:
418
- - max-age=63072000; includeSubDomains
419
- X-Mailgun-Key-Id:
420
- - c02fd0ba-d8dbad66
421
- X-Xss-Protection:
422
- - 1; mode=block
423
- body:
424
- encoding: UTF-8
425
- string: '{"message":"Domain connection settings have been updated, may take
426
- 10 minutes to fully propagate","require_tls":true,"skip_verification":true}
427
-
428
- '
429
- http_version:
430
- recorded_at: Mon, 24 Feb 2025 22:44:08 GMT
431
- - request:
432
- method: get
433
- uri: https://api.mailgun.net/v3/domains/integration-test.domain.invalid/tracking
434
- body:
435
- encoding: US-ASCII
436
- string: ''
437
- headers:
438
- User-Agent:
439
- - mailgun-sdk-ruby/1.3.2
440
- Accept:
441
- - "*/*"
442
- Authorization:
443
- - Basic xxx
444
- Accept-Encoding:
445
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
446
- response:
447
- status:
448
- code: 200
449
- message: OK
450
- headers:
451
- Access-Control-Allow-Credentials:
452
- - 'true'
453
- Access-Control-Allow-Origin:
454
- - "*"
455
- Cache-Control:
456
- - no-store
457
- Content-Length:
458
- - '286'
459
- Content-Type:
460
- - application/json; charset=utf-8
461
- Date:
462
- - Mon, 24 Feb 2025 22:44:08 GMT
463
- Strict-Transport-Security:
464
- - max-age=63072000; includeSubDomains
465
- X-Mailgun-Key-Id:
466
- - c02fd0ba-d8dbad66
467
- X-Xss-Protection:
468
- - 1; mode=block
469
- body:
470
- encoding: UTF-8
471
- string: '{"tracking":{"open":{"active":false,"place_at_the_top":false},"click":{"active":false},"unsubscribe":{"active":false,"html_footer":"\n<br>\n<p><a
472
- href=\"%unsubscribe_url%\">unsubscribe</a></p>\n","text_footer":"\n\nTo unsubscribe
473
- click: <%unsubscribe_url%>\n\n"},"web_scheme":"https"}}
474
-
475
- '
476
- http_version:
477
- recorded_at: Mon, 24 Feb 2025 22:44:08 GMT
478
- - request:
479
- method: put
480
- uri: https://api.mailgun.net/v3/domains/integration-test.domain.invalid/tracking/open
481
- body:
482
- encoding: UTF-8
483
- string: active=false
484
- headers:
485
- User-Agent:
486
- - mailgun-sdk-ruby/1.3.2
487
- Accept:
488
- - "*/*"
489
- Authorization:
490
- - Basic xxx
491
- Content-Type:
492
- - application/x-www-form-urlencoded
493
- Accept-Encoding:
494
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
495
- response:
496
- status:
497
- code: 200
498
- message: OK
499
- headers:
500
- Access-Control-Allow-Credentials:
501
- - 'true'
502
- Access-Control-Allow-Origin:
503
- - "*"
504
- Cache-Control:
505
- - no-store
506
- Content-Length:
507
- - '106'
508
- Content-Type:
509
- - application/json; charset=utf-8
510
- Date:
511
- - Mon, 24 Feb 2025 22:44:09 GMT
512
- Strict-Transport-Security:
513
- - max-age=63072000; includeSubDomains
514
- X-Mailgun-Key-Id:
515
- - c02fd0ba-d8dbad66
516
- X-Xss-Protection:
517
- - 1; mode=block
518
- body:
519
- encoding: UTF-8
520
- string: '{"message":"Domain tracking settings have been updated","open":{"active":false,"place_at_the_top":false}}
521
-
522
- '
523
- http_version:
524
- recorded_at: Mon, 24 Feb 2025 22:44:09 GMT
525
- - request:
526
- method: put
527
- uri: https://api.mailgun.net/v3/domains/integration-test.domain.invalid/tracking/click
528
- body:
529
- encoding: UTF-8
530
- string: active=false
531
- headers:
532
- User-Agent:
533
- - mailgun-sdk-ruby/1.3.2
534
- Accept:
535
- - "*/*"
536
- Authorization:
537
- - Basic xxx
538
- Content-Type:
539
- - application/x-www-form-urlencoded
540
- Accept-Encoding:
541
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
542
- response:
543
- status:
544
- code: 200
545
- message: OK
546
- headers:
547
- Access-Control-Allow-Credentials:
548
- - 'true'
549
- Access-Control-Allow-Origin:
550
- - "*"
551
- Cache-Control:
552
- - no-store
553
- Content-Length:
554
- - '82'
555
- Content-Type:
556
- - application/json; charset=utf-8
557
- Date:
558
- - Mon, 24 Feb 2025 22:44:09 GMT
559
- Strict-Transport-Security:
560
- - max-age=63072000; includeSubDomains
561
- X-Mailgun-Key-Id:
562
- - c02fd0ba-d8dbad66
563
- X-Xss-Protection:
564
- - 1; mode=block
565
- body:
566
- encoding: UTF-8
567
- string: '{"message":"Domain tracking settings have been updated","click":{"active":false}}
568
-
569
- '
570
- http_version:
571
- recorded_at: Mon, 24 Feb 2025 22:44:09 GMT
572
- - request:
573
- method: put
574
- uri: https://api.mailgun.net/v3/domains/integration-test.domain.invalid/tracking/unsubscribe
575
- body:
576
- encoding: UTF-8
577
- string: active=false
578
- headers:
579
- User-Agent:
580
- - mailgun-sdk-ruby/1.3.2
581
- Accept:
582
- - "*/*"
583
- Authorization:
584
- - Basic xxx
585
- Content-Type:
586
- - application/x-www-form-urlencoded
587
- Accept-Encoding:
588
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
589
- response:
590
- status:
591
- code: 200
592
- message: OK
593
- headers:
594
- Access-Control-Allow-Credentials:
595
- - 'true'
596
- Access-Control-Allow-Origin:
597
- - "*"
598
- Cache-Control:
599
- - no-store
600
- Content-Length:
601
- - '233'
602
- Content-Type:
603
- - application/json; charset=utf-8
604
- Date:
605
- - Mon, 24 Feb 2025 22:44:10 GMT
606
- Strict-Transport-Security:
607
- - max-age=63072000; includeSubDomains
608
- X-Mailgun-Key-Id:
609
- - c02fd0ba-d8dbad66
610
- X-Xss-Protection:
611
- - 1; mode=block
612
- body:
613
- encoding: UTF-8
614
- string: '{"message":"Domain tracking settings have been updated","unsubscribe":{"active":false,"html_footer":"\n<br>\n<p><a
615
- href=\"%unsubscribe_url%\">unsubscribe</a></p>\n","text_footer":"\n\nTo unsubscribe
616
- click: <%unsubscribe_url%>\n\n"}}
617
-
618
- '
619
- http_version:
620
- recorded_at: Mon, 24 Feb 2025 22:44:10 GMT
621
- - request:
622
- method: put
623
- uri: https://api.mailgun.net/v3/domains/integration-test.domain.invalid/dkim_authority
624
- body:
625
- encoding: UTF-8
626
- string: self=true
627
- headers:
628
- User-Agent:
629
- - mailgun-sdk-ruby/1.3.2
630
- Accept:
631
- - "*/*"
632
- Authorization:
633
- - Basic xxx
634
- Content-Type:
635
- - application/x-www-form-urlencoded
636
- Accept-Encoding:
637
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
638
- response:
639
- status:
640
- code: 200
641
- message: OK
642
- headers:
643
- Access-Control-Allow-Credentials:
644
- - 'true'
645
- Access-Control-Allow-Origin:
646
- - "*"
647
- Cache-Control:
648
- - no-store
649
- Content-Length:
650
- - '752'
651
- Content-Type:
652
- - application/json; charset=utf-8
653
- Date:
654
- - Mon, 24 Feb 2025 22:44:11 GMT
655
- Strict-Transport-Security:
656
- - max-age=63072000; includeSubDomains
657
- X-Mailgun-Key-Id:
658
- - c02fd0ba-d8dbad66
659
- X-Xss-Protection:
660
- - 1; mode=block
661
- body:
662
- encoding: UTF-8
663
- string: '{"message":"Domain DKIM authority has not been changed","sending_dns_records":[{"is_active":true,"cached":[],"name":"integration-test.domain.invalid","record_type":"TXT","valid":"unknown","value":"v=spf1
664
- include:mailgun.org ~all"},{"is_active":false,"cached":[],"name":"smtp._domainkey.integration-test.domain.invalid","record_type":"TXT","valid":"unknown","value":"k=rsa;
665
- p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD9rVPILouDJkj47mEjLdzLbPW2YdSujAiNLw9wZ/Y19iA1h3LTNGOC+UKqjm1lF2SYVLLf1mkpX9ZjhWEQ/MR8WAGCbzTSYOlzLFeAC2g0JO/Xk9kqqlRIJX8vv2XkAwH7mgZA+CPpWghWQLT/IAHlbPy3WSt5uXKZOd/oANzafwIDAQAB"},{"is_active":true,"cached":[],"name":"email.integration-test.domain.invalid","record_type":"CNAME","valid":"unknown","value":"mailgun.org"}],"changed":false}
666
-
667
- '
668
- http_version:
669
- recorded_at: Mon, 24 Feb 2025 22:44:11 GMT
670
- - request:
671
- method: put
672
- uri: https://api.mailgun.net/v3/domains/integration-test.domain.invalid/dkim_selector
673
- body:
674
- encoding: UTF-8
675
- string: dkim_selector=mailo1
676
- headers:
677
- User-Agent:
678
- - mailgun-sdk-ruby/1.3.2
679
- Accept:
680
- - "*/*"
681
- Authorization:
682
- - Basic xxx
683
- Content-Type:
684
- - application/x-www-form-urlencoded
685
- Accept-Encoding:
686
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
687
- response:
688
- status:
689
- code: 200
690
- message: OK
691
- headers:
692
- Access-Control-Allow-Credentials:
693
- - 'true'
694
- Access-Control-Allow-Origin:
695
- - "*"
696
- Cache-Control:
697
- - no-store
698
- Content-Length:
699
- - '36'
700
- Content-Type:
701
- - application/json; charset=utf-8
702
- Date:
703
- - Mon, 24 Feb 2025 22:44:11 GMT
704
- Strict-Transport-Security:
705
- - max-age=63072000; includeSubDomains
706
- X-Mailgun-Key-Id:
707
- - c02fd0ba-d8dbad66
708
- X-Xss-Protection:
709
- - 1; mode=block
710
- body:
711
- encoding: UTF-8
712
- string: '{"message":"DKIM selector changed"}
713
-
714
- '
715
- http_version:
716
- recorded_at: Mon, 24 Feb 2025 22:44:11 GMT
717
- - request:
718
- method: put
719
- uri: https://api.mailgun.net/v3/domains/integration-test.domain.invalid/web_prefix
720
- body:
721
- encoding: UTF-8
722
- string: web_prefix=email
723
- headers:
724
- User-Agent:
725
- - mailgun-sdk-ruby/1.3.2
726
- Accept:
727
- - "*/*"
728
- Authorization:
729
- - Basic xxx
730
- Content-Type:
731
- - application/x-www-form-urlencoded
732
- Accept-Encoding:
733
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
734
- response:
735
- status:
736
- code: 200
737
- message: OK
738
- headers:
739
- Access-Control-Allow-Credentials:
740
- - 'true'
741
- Access-Control-Allow-Origin:
742
- - "*"
743
- Cache-Control:
744
- - no-store
745
- Content-Length:
746
- - '40'
747
- Content-Type:
748
- - application/json; charset=utf-8
749
- Date:
750
- - Mon, 24 Feb 2025 22:44:12 GMT
751
- Strict-Transport-Security:
752
- - max-age=63072000; includeSubDomains
753
- X-Mailgun-Key-Id:
754
- - c02fd0ba-d8dbad66
755
- X-Xss-Protection:
756
- - 1; mode=block
757
- body:
758
- encoding: UTF-8
759
- string: '{"message":"Domain web prefix updated"}
760
-
761
- '
762
- http_version:
763
- recorded_at: Mon, 24 Feb 2025 22:44:12 GMT
764
- - request:
765
- method: get
766
- uri: https://api.mailgun.net/v4/domains/integration-test.domain.invalid/keys
767
- body:
768
- encoding: US-ASCII
769
- string: ''
770
- headers:
771
- User-Agent:
772
- - mailgun-sdk-ruby/1.3.2
773
- Accept:
774
- - "*/*"
775
- Authorization:
776
- - Basic xxx
777
- Accept-Encoding:
778
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
779
- response:
780
- status:
781
- code: 200
782
- message: OK
783
- headers:
784
- Access-Control-Allow-Credentials:
785
- - 'true'
786
- Access-Control-Allow-Origin:
787
- - "*"
788
- Cache-Control:
789
- - no-store
790
- Content-Length:
791
- - '463'
792
- Content-Type:
793
- - application/json; charset=utf-8
794
- Date:
795
- - Mon, 24 Feb 2025 22:44:12 GMT
796
- Strict-Transport-Security:
797
- - max-age=63072000; includeSubDomains
798
- X-Mailgun-Key-Id:
799
- - c02fd0ba-d8dbad66
800
- X-Xss-Protection:
801
- - 1; mode=block
802
- body:
803
- encoding: UTF-8
804
- string: '{"items":[{"signing_domain":"integration-test.domain.invalid","selector":"mailo1","dns_record":{"is_active":false,"cached":[],"name":"mailo1._domainkey.integration-test.domain.invalid","record_type":"TXT","valid":"unknown","value":"k=rsa;
805
- p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD9rVPILouDJkj47mEjLdzLbPW2YdSujAiNLw9wZ/Y19iA1h3LTNGOC+UKqjm1lF2SYVLLf1mkpX9ZjhWEQ/MR8WAGCbzTSYOlzLFeAC2g0JO/Xk9kqqlRIJX8vv2XkAwH7mgZA+CPpWghWQLT/IAHlbPy3WSt5uXKZOd/oANzafwIDAQAB"}}]}
806
-
807
- '
808
- http_version:
809
- recorded_at: Mon, 24 Feb 2025 22:44:12 GMT
810
- - request:
811
- method: put
812
- uri: https://api.mailgun.net/v4/domains/integration-test.domain.invalid/keys/mailo1/activate
813
- body:
814
- encoding: UTF-8
815
- string: ''
816
- headers:
817
- User-Agent:
818
- - mailgun-sdk-ruby/1.3.2
819
- Accept:
820
- - "*/*"
821
- Authorization:
822
- - Basic xxx
823
- Content-Type:
824
- - application/x-www-form-urlencoded
825
- Accept-Encoding:
826
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
827
- response:
828
- status:
829
- code: 200
830
- message: OK
831
- headers:
832
- Access-Control-Allow-Credentials:
833
- - 'true'
834
- Access-Control-Allow-Origin:
835
- - "*"
836
- Cache-Control:
837
- - no-store
838
- Content-Length:
839
- - '44'
840
- Content-Type:
841
- - application/json; charset=utf-8
842
- Date:
843
- - Mon, 24 Feb 2025 22:44:13 GMT
844
- Strict-Transport-Security:
845
- - max-age=63072000; includeSubDomains
846
- X-Mailgun-Key-Id:
847
- - c02fd0ba-d8dbad66
848
- X-Xss-Protection:
849
- - 1; mode=block
850
- body:
851
- encoding: UTF-8
852
- string: '{"message":"domain key activated"}
853
-
854
- '
855
- http_version:
856
- recorded_at: Mon, 24 Feb 2025 22:44:13 GMT
857
- - request:
858
- method: get
859
- uri: https://api.mailgun.net/v3/integration-test.domain.invalid/stats/total?event=clicked
860
- body:
861
- encoding: US-ASCII
862
- string: ''
863
- headers:
864
- User-Agent:
865
- - mailgun-sdk-ruby/1.3.2
866
- Accept:
867
- - "*/*"
868
- Authorization:
869
- - Basic xxx
870
- Accept-Encoding:
871
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
872
- response:
873
- status:
874
- code: 200
875
- message: OK
876
- headers:
877
- Access-Control-Allow-Credentials:
878
- - 'true'
879
- Access-Control-Allow-Origin:
880
- - "*"
881
- Cache-Control:
882
- - no-store
883
- Content-Length:
884
- - '630'
885
- Content-Type:
886
- - application/json; charset=utf-8
887
- Date:
888
- - Mon, 24 Feb 2025 22:44:13 GMT
889
- Strict-Transport-Security:
890
- - max-age=63072000; includeSubDomains
891
- X-Mailgun-Key-Id:
892
- - c02fd0ba-d8dbad66
893
- X-Xss-Protection:
894
- - 1; mode=block
895
- body:
896
- encoding: UTF-8
897
- string: '{"description":"","start":"Mon, 17 Feb 2025 00:00:00 UTC","end":"Mon,
898
- 24 Feb 2025 00:00:00 UTC","resolution":"day","stats":[{"time":"Mon, 17 Feb
899
- 2025 00:00:00 UTC","clicked":{"total":0}},{"time":"Tue, 18 Feb 2025 00:00:00
900
- UTC","clicked":{"total":0}},{"time":"Wed, 19 Feb 2025 00:00:00 UTC","clicked":{"total":0}},{"time":"Thu,
901
- 20 Feb 2025 00:00:00 UTC","clicked":{"total":0}},{"time":"Fri, 21 Feb 2025
902
- 00:00:00 UTC","clicked":{"total":0}},{"time":"Sat, 22 Feb 2025 00:00:00 UTC","clicked":{"total":0}},{"time":"Sun,
903
- 23 Feb 2025 00:00:00 UTC","clicked":{"total":0}},{"time":"Mon, 24 Feb 2025
904
- 00:00:00 UTC","clicked":{"total":0}}]}
905
-
906
- '
907
- http_version:
908
- recorded_at: Mon, 24 Feb 2025 22:44:13 GMT
909
- - request:
910
- method: delete
911
- uri: https://api.mailgun.net/v3/domains/integration-test.domain.invalid
912
- body:
913
- encoding: US-ASCII
914
- string: ''
915
- headers:
916
- User-Agent:
917
- - mailgun-sdk-ruby/1.3.2
918
- Accept:
919
- - "*/*"
920
- Authorization:
921
- - Basic xxx
922
- Accept-Encoding:
923
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
924
- response:
925
- status:
926
- code: 200
927
- message: OK
928
- headers:
929
- Access-Control-Allow-Credentials:
930
- - 'true'
931
- Access-Control-Allow-Origin:
932
- - "*"
933
- Cache-Control:
934
- - no-store
935
- Content-Length:
936
- - '55'
937
- Content-Type:
938
- - application/json; charset=utf-8
939
- Date:
940
- - Mon, 24 Feb 2025 22:45:36 GMT
941
- Strict-Transport-Security:
942
- - max-age=63072000; includeSubDomains
943
- X-Mailgun-Key-Id:
944
- - c02fd0ba-d8dbad66
945
- X-Xss-Protection:
946
- - 1; mode=block
947
- body:
948
- encoding: UTF-8
949
- string: '{"message":"Domain will be deleted in the background"}
950
-
951
- '
952
- http_version:
953
- recorded_at: Mon, 24 Feb 2025 22:45:36 GMT
954
- - request:
955
- method: put
956
- uri: https://api.mailgun.net/v4/domains/integration-test.domain.invalid/keys/tetetet/deactivate
957
- body:
958
- encoding: UTF-8
959
- string: ''
960
- headers:
961
- User-Agent:
962
- - mailgun-sdk-ruby/1.3.2
963
- Accept:
964
- - "*/*"
965
- Authorization:
966
- - Basic xxx
967
- Content-Type:
968
- - application/x-www-form-urlencoded
969
- Accept-Encoding:
970
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
971
- response:
972
- status:
973
- code: 200
974
- message: OK
975
- headers:
976
- Access-Control-Allow-Credentials:
977
- - 'true'
978
- Access-Control-Allow-Origin:
979
- - "*"
980
- Cache-Control:
981
- - no-store
982
- Content-Length:
983
- - '35'
984
- Content-Type:
985
- - application/json; charset=utf-8
986
- Date:
987
- - Wed, 26 Feb 2025 21:54:43 GMT
988
- Strict-Transport-Security:
989
- - max-age=63072000; includeSubDomains
990
- X-Mailgun-Key-Id:
991
- - c02fd0ba-d8dbad66
992
- X-Xss-Protection:
993
- - 1; mode=block
994
- body:
995
- encoding: UTF-8
996
- string: '{"message":"domain key deactivated"}
997
-
998
- '
999
- http_version:
1000
- recorded_at: Wed, 26 Feb 2025 21:54:43 GMT
1001
- - request:
1002
- method: delete
1003
- uri: https://api.mailgun.net/v1/dkim/keys?params=%7B:signing_domain=%3E%22integration-test.domain.invalid%22,%20:selector=%3E%22test%22%7D
1004
- body:
1005
- encoding: US-ASCII
1006
- string: ''
1007
- headers:
1008
- User-Agent:
1009
- - mailgun-sdk-ruby/1.3.10
1010
- Accept:
1011
- - "*/*"
1012
- Authorization:
1013
- - Basic YXBpOg==
1014
- Accept-Encoding:
1015
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1016
- response:
1017
- status:
1018
- code: 200
1019
- message: OK
1020
- headers:
1021
- Access-Control-Allow-Credentials:
1022
- - 'true'
1023
- Access-Control-Allow-Origin:
1024
- - "*"
1025
- Cache-Control:
1026
- - no-store
1027
- Content-Length:
1028
- - '39'
1029
- Content-Type:
1030
- - application/json
1031
- Date:
1032
- - Thu, 28 Aug 2025 12:45:35 GMT
1033
- Strict-Transport-Security:
1034
- - max-age=63072000; includeSubDomains
1035
- Www-Authenticate:
1036
- - Basic realm="MG API"
1037
- X-Xss-Protection:
1038
- - 1; mode=block
1039
- body:
1040
- encoding: UTF-8
1041
- string: '{"message":"success"}
1042
-
1043
- '
1044
- http_version:
1045
- recorded_at: Thu, 28 Aug 2025 12:45:35 GMT
1046
- - request:
1047
- method: delete
1048
- uri: https://api.mailgun.net/v1/dkim/keys?selector=test&signing_domain=integration-test.domain.invalid
1049
- body:
1050
- encoding: US-ASCII
1051
- string: ''
1052
- headers:
1053
- User-Agent:
1054
- - mailgun-sdk-ruby/1.3.10
1055
- Accept:
1056
- - "*/*"
1057
- Authorization:
1058
- - Basic YXBpOg==
1059
- Accept-Encoding:
1060
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1061
- response:
1062
- status:
1063
- code: 200
1064
- message: OK
1065
- headers:
1066
- Access-Control-Allow-Credentials:
1067
- - 'true'
1068
- Access-Control-Allow-Origin:
1069
- - "*"
1070
- Cache-Control:
1071
- - no-store
1072
- Content-Length:
1073
- - '39'
1074
- Content-Type:
1075
- - application/json
1076
- Date:
1077
- - Thu, 28 Aug 2025 14:47:08 GMT
1078
- Strict-Transport-Security:
1079
- - max-age=63072000; includeSubDomains
1080
- Www-Authenticate:
1081
- - Basic realm="MG API"
1082
- X-Xss-Protection:
1083
- - 1; mode=block
1084
- body:
1085
- encoding: UTF-8
1086
- string: '{"message":"success"}
1087
-
1088
- '
1089
- http_version:
1090
- recorded_at: Thu, 28 Aug 2025 14:47:08 GMT
1091
- - request:
1092
- method: put
1093
- uri: https://api.mailgun.net/v4/domains/integration-test.domain.invalid/verify
1094
- body:
1095
- encoding: UTF-8
1096
- string: ''
1097
- headers:
1098
- User-Agent:
1099
- - mailgun-sdk-ruby/1.4.0
1100
- Accept:
1101
- - "*/*"
1102
- Authorization:
1103
- - Basic xxx
1104
- Content-Length:
1105
- - '0'
1106
- Accept-Encoding:
1107
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1108
- response:
1109
- status:
1110
- code: 200
1111
- message: OK
1112
- headers:
1113
- Access-Control-Allow-Credentials:
1114
- - 'true'
1115
- Access-Control-Allow-Origin:
1116
- - "*"
1117
- Cache-Control:
1118
- - no-store
1119
- Content-Length:
1120
- - '1752'
1121
- Content-Type:
1122
- - application/json; charset=utf-8
1123
- Date:
1124
- - Sat, 27 Dec 2025 23:47:46 GMT
1125
- Strict-Transport-Security:
1126
- - max-age=63072000; includeSubDomains
1127
- X-Mailgun-Key-Id:
1128
- - xxx
1129
- X-Request-Limit:
1130
- - '10'
1131
- X-Request-Remaining:
1132
- - '9'
1133
- X-Request-Reset:
1134
- - '1766879267069'
1135
- X-Xss-Protection:
1136
- - 1; mode=block
1137
- body:
1138
- encoding: UTF-8
1139
- string: '{"message":"Domain DNS records have been updated","domain":{"created_at":"Thu,
1140
- 27 Nov 2025 22:42:06 GMT","id":"xxx","is_disabled":false,"name":"integration-test.domain.invalid","require_tls":false,"skip_verification":false,"smtp_login":"","spam_action":"tag","state":"unverified","type":"custom","use_automatic_sender_security":false,"web_prefix":"email","web_scheme":"http","wildcard":false,"encrypt_incoming_message":false,"message_ttl":0},"sending_dns_records":[{"is_active":false,"cached":[],"name":"k1._domainkey.integration-test.domain.invalid","record_type":"TXT","valid":"unknown","value":"k=rsa;
1141
- p=xxx+xxx+xxx"},{"is_active":false,"cached":[],"name":"string._domainkey.integration-test.domain.invalid","record_type":"TXT","valid":"unknown","value":"k=rsa;
1142
- p=xxx/xxx+xx+xxx+xxx+xxx/xxx/xxx"},{"is_active":true,"cached":[],"name":"integration-test.domain.invalid","record_type":"TXT","valid":"unknown","value":"v=spf1
1143
- include:mailgun.org ~all"},{"is_active":true,"cached":[],"name":"email.integration-test.domain.invalid","record_type":"CNAME","valid":"unknown","value":"mailgun.org"}],"receiving_dns_records":[{"is_active":true,"cached":[],"priority":"10","record_type":"MX","valid":"unknown","value":"mxa.mailgun.org"},{"is_active":true,"cached":[],"priority":"10","record_type":"MX","valid":"unknown","value":"mxb.mailgun.org"}]}
1144
-
1145
- '
1146
- http_version:
1147
- recorded_at: Sat, 27 Dec 2025 23:47:46 GMT
1148
- - request:
1149
- method: post
1150
- uri: https://api.mailgun.net/v1/dkim/keys
1151
- body:
1152
- encoding: UTF-8
1153
- string: selector=test&signing_domain=integration-test.domain.invalid
1154
- headers:
1155
- User-Agent:
1156
- - mailgun-sdk-ruby/1.4.0
1157
- Accept:
1158
- - "*/*"
1159
- Authorization:
1160
- - Basic xxx
1161
- Content-Type:
1162
- - application/x-www-form-urlencoded
1163
- Accept-Encoding:
1164
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1165
- response:
1166
- status:
1167
- code: 200
1168
- message: OK
1169
- headers:
1170
- Access-Control-Allow-Credentials:
1171
- - 'true'
1172
- Access-Control-Allow-Origin:
1173
- - "*"
1174
- Cache-Control:
1175
- - no-store
1176
- Content-Length:
1177
- - '447'
1178
- Content-Type:
1179
- - application/json; charset=utf-8
1180
- Date:
1181
- - Sun, 28 Dec 2025 00:07:03 GMT
1182
- Strict-Transport-Security:
1183
- - max-age=63072000; includeSubDomains
1184
- X-Mailgun-Key-Id:
1185
- - xxx
1186
- X-Xss-Protection:
1187
- - 1; mode=block
1188
- body:
1189
- encoding: UTF-8
1190
- string: '{"signing_domain":"integration-test.domain.invalid","selector":"test","dns_record":{"is_active":false,"cached":[],"name":"test._domainkey.integration-test.domain.invalid","record_type":"TXT","valid":"unknown","value":"k=rsa;
1191
- p=xxx"}}
1192
-
1193
- '
1194
- http_version:
1195
- recorded_at: Sun, 28 Dec 2025 00:07:03 GMT
1196
- - request:
1197
- method: get
1198
- uri: https://api.mailgun.net/v1/dkim/keys?signing_domain=integration-test.domain.invalid
1199
- body:
1200
- encoding: US-ASCII
1201
- string: ''
1202
- headers:
1203
- User-Agent:
1204
- - mailgun-sdk-ruby/1.4.0
1205
- Accept:
1206
- - "*/*"
1207
- Authorization:
1208
- - Basic xxx
1209
- Accept-Encoding:
1210
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1211
- response:
1212
- status:
1213
- code: 200
1214
- message: OK
1215
- headers:
1216
- Access-Control-Allow-Credentials:
1217
- - 'true'
1218
- Access-Control-Allow-Origin:
1219
- - "*"
1220
- Cache-Control:
1221
- - no-store
1222
- Content-Length:
1223
- - '1767'
1224
- Content-Type:
1225
- - application/json; charset=utf-8
1226
- Date:
1227
- - Sun, 28 Dec 2025 00:12:23 GMT
1228
- Strict-Transport-Security:
1229
- - max-age=63072000; includeSubDomains
1230
- X-Mailgun-Key-Id:
1231
- - xxx
1232
- X-Xss-Protection:
1233
- - 1; mode=block
1234
- body:
1235
- encoding: UTF-8
1236
- string: '{"items":[{"signing_domain":"integration-test.domain.invalid","selector":"k1","dns_record":{"is_active":false,"cached":[],"name":"k1._domainkey.integration-test.domain.invalid","record_type":"TXT","valid":"unknown","value":"k=rsa;
1237
- p=xxx"}},{"signing_domain":"integration-test.domain.invalid","selector":"test","dns_record":{"is_active":false,"cached":[],"name":"test._domainkey.integration-test.domain.invalid","record_type":"TXT","valid":"unknown","value":"k=rsa;
1238
- p=xxx"}}],"paging":{"previous":"https://api.mailgun.net/v1/dkim/keys?page=xxx","first":"https://api.mailgun.net/v1/dkim/keys?page=xxx","next":"https://api.mailgun.net/v1/dkim/keys?page=xxx","last":"https://api.mailgun.net/v1/dkim/keys?page=xxx"}}
1239
-
1240
- '
1241
- http_version:
1242
- recorded_at: Sun, 28 Dec 2025 00:12:23 GMT
1243
- recorded_with: VCR 3.0.3