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,328 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://api.mailgun.net/v3/lists
6
- body:
7
- encoding: UTF-8
8
- string: access_level=members&address=integration_test_list%40&description=This+list+should+be+deleted+automatically.&name=Integration+Test+List
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
- - '70'
33
- Content-Type:
34
- - application/json
35
- Date:
36
- - Wed, 26 Feb 2025 18:55:07 GMT
37
- Server:
38
- - TwistedWeb/22.10.0
39
- Strict-Transport-Security:
40
- - max-age=63072000; includeSubDomains
41
- X-Mailgun-Key-Id:
42
- - c02fd0ba-d8dbad66
43
- X-Xss-Protection:
44
- - 1; mode=block
45
- body:
46
- encoding: UTF-8
47
- string: |-
48
- {
49
- "list": {
50
- "access_level": "members",
51
- "address": "integration_test_list@",
52
- "created_at": "Sun, 26 Jan 2025 07:29:23 -0000",
53
- "description": "This list should be deleted automatically.",
54
- "members_count": 0,
55
- "name": "Integration Test List",
56
- "reply_preference": "list"
57
- },
58
- "message": "Mailing list has been created"
59
- }
60
- http_version:
61
- recorded_at: Wed, 26 Feb 2025 18:55:07 GMT
62
- - request:
63
- method: post
64
- uri: https://api.mailgun.net/v3/lists/integration_test_list@/members
65
- body:
66
- encoding: UTF-8
67
- string: address=integration_test_member_member%40&name=Jane+Doe&subscribed=true&upsert=no
68
- headers:
69
- User-Agent:
70
- - mailgun-sdk-ruby/1.3.2
71
- Accept:
72
- - "*/*"
73
- Authorization:
74
- - Basic xxx
75
- Content-Type:
76
- - application/x-www-form-urlencoded
77
- Accept-Encoding:
78
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
79
- response:
80
- status:
81
- code: 200
82
- message: OK
83
- headers:
84
- Access-Control-Allow-Credentials:
85
- - 'true'
86
- Access-Control-Allow-Origin:
87
- - "*"
88
- Cache-Control:
89
- - no-store
90
- Content-Length:
91
- - '70'
92
- Content-Type:
93
- - application/json
94
- Date:
95
- - Wed, 26 Feb 2025 18:55:08 GMT
96
- Server:
97
- - TwistedWeb/22.10.0
98
- Strict-Transport-Security:
99
- - max-age=63072000; includeSubDomains
100
- X-Mailgun-Key-Id:
101
- - c02fd0ba-d8dbad66
102
- X-Xss-Protection:
103
- - 1; mode=block
104
- body:
105
- encoding: UTF-8
106
- string: |-
107
- {
108
- "member": {
109
- "address": "integration_test_member_member@",
110
- "name": "Jane Doe",
111
- "subscribed": true,
112
- "vars": {}
113
- },
114
- "message": "Mailing list member has been created"
115
- }
116
- http_version:
117
- recorded_at: Wed, 26 Feb 2025 18:55:08 GMT
118
- - request:
119
- method: get
120
- uri: https://api.mailgun.net/v3/lists/integration_test_list@/members/integration_test_member_member@
121
- body:
122
- encoding: US-ASCII
123
- string: ''
124
- headers:
125
- User-Agent:
126
- - mailgun-sdk-ruby/1.3.2
127
- Accept:
128
- - "*/*"
129
- Authorization:
130
- - Basic xxx
131
- Accept-Encoding:
132
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
133
- response:
134
- status:
135
- code: 200
136
- message: OK
137
- headers:
138
- Access-Control-Allow-Credentials:
139
- - 'true'
140
- Access-Control-Allow-Origin:
141
- - "*"
142
- Cache-Control:
143
- - no-store
144
- Content-Length:
145
- - '60'
146
- Content-Type:
147
- - application/json
148
- Date:
149
- - Wed, 26 Feb 2025 18:55:09 GMT
150
- Server:
151
- - TwistedWeb/22.10.0
152
- Strict-Transport-Security:
153
- - max-age=63072000; includeSubDomains
154
- X-Mailgun-Key-Id:
155
- - c02fd0ba-d8dbad66
156
- X-Xss-Protection:
157
- - 1; mode=block
158
- body:
159
- encoding: UTF-8
160
- string: |-
161
- {
162
- "member": {
163
- "address": "integration_test_member_member@",
164
- "name": "Jane Doe",
165
- "subscribed": true,
166
- "vars": {}
167
- }
168
- }
169
- http_version:
170
- recorded_at: Wed, 26 Feb 2025 18:55:09 GMT
171
- - request:
172
- method: put
173
- uri: https://api.mailgun.net/v3/lists/integration_test_list@/members/integration_test_member_member@
174
- body:
175
- encoding: UTF-8
176
- string: name=Jane+Doe+Update&subscribed=false
177
- headers:
178
- User-Agent:
179
- - mailgun-sdk-ruby/1.3.2
180
- Accept:
181
- - "*/*"
182
- Authorization:
183
- - Basic xxx
184
- Content-Type:
185
- - application/x-www-form-urlencoded
186
- Accept-Encoding:
187
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
188
- response:
189
- status:
190
- code: 200
191
- message: OK
192
- headers:
193
- Access-Control-Allow-Credentials:
194
- - 'true'
195
- Access-Control-Allow-Origin:
196
- - "*"
197
- Cache-Control:
198
- - no-store
199
- Content-Length:
200
- - '60'
201
- Content-Type:
202
- - application/json
203
- Date:
204
- - Wed, 26 Feb 2025 18:55:09 GMT
205
- Server:
206
- - TwistedWeb/22.10.0
207
- Strict-Transport-Security:
208
- - max-age=63072000; includeSubDomains
209
- X-Mailgun-Key-Id:
210
- - c02fd0ba-d8dbad66
211
- X-Xss-Protection:
212
- - 1; mode=block
213
- body:
214
- encoding: UTF-8
215
- string: |-
216
- {
217
- "member": {
218
- "address": "integration_test_member_member@",
219
- "name": "Jane Doe Update",
220
- "subscribed": false,
221
- "vars": {}
222
- },
223
- "message": "Mailing list member has been updated"
224
- }
225
- http_version:
226
- recorded_at: Wed, 26 Feb 2025 18:55:09 GMT
227
- - request:
228
- method: delete
229
- uri: https://api.mailgun.net/v3/lists/integration_test_list@/members/integration_test_member_member@
230
- body:
231
- encoding: US-ASCII
232
- string: ''
233
- headers:
234
- User-Agent:
235
- - mailgun-sdk-ruby/1.3.2
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-Disposition:
254
- - inline
255
- Content-Length:
256
- - '88'
257
- Content-Type:
258
- - application/json
259
- Date:
260
- - Wed, 26 Feb 2025 19:35:10 GMT
261
- Server:
262
- - TwistedWeb/22.10.0
263
- Strict-Transport-Security:
264
- - max-age=63072000; includeSubDomains
265
- X-Mailgun-Key-Id:
266
- - c02fd0ba-d8dbad66
267
- X-Xss-Protection:
268
- - 1; mode=block
269
- body:
270
- encoding: UTF-8
271
- string: '{"member":{"address":"integration_test_member_member@"},"message":"Mailing list member
272
- has been deleted"}
273
-
274
- '
275
- http_version:
276
- recorded_at: Wed, 26 Feb 2025 19:35:11 GMT
277
- - request:
278
- method: delete
279
- uri: https://api.mailgun.net/v3/lists/integration_test_list@
280
- body:
281
- encoding: US-ASCII
282
- string: ''
283
- headers:
284
- User-Agent:
285
- - mailgun-sdk-ruby/1.3.0
286
- Accept:
287
- - "*/*"
288
- Authorization:
289
- - Basic xxx==
290
- Accept-Encoding:
291
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
292
- response:
293
- status:
294
- code: 200
295
- message: OK
296
- headers:
297
- Access-Control-Allow-Credentials:
298
- - 'true'
299
- Access-Control-Allow-Origin:
300
- - "*"
301
- Cache-Control:
302
- - no-store
303
- Content-Disposition:
304
- - inline
305
- Content-Length:
306
- - '138'
307
- Content-Type:
308
- - application/json
309
- Date:
310
- - Sun, 26 Jan 2025 07:29:26 GMT
311
- Server:
312
- - TwistedWeb/20.3.0
313
- Strict-Transport-Security:
314
- - max-age=63072000; includeSubDomains
315
- X-Mailgun-Key-Id:
316
- - 90b59dea-f2d12a53
317
- X-Xss-Protection:
318
- - 1; mode=block
319
- body:
320
- encoding: UTF-8
321
- string: |-
322
- {
323
- "address": "integration_test_list@DOMAIN.TEST",
324
- "message": "Mailing list has been removed"
325
- }
326
- http_version:
327
- recorded_at: Wed, 26 Feb 2025 19:35:11 GMT
328
- recorded_with: VCR 3.0.3
@@ -1,53 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://api.mailgun.net/v1/analytics/logs
6
- body:
7
- encoding: UTF-8
8
- string: '{"start":"Wed, 25 Jun 2025 00:00:00 -0000","end":"Wed, 25 Jun 2025
9
- 23:00:00 -0000","filter":{"AND":[{"attribute":"domain","comparator":"!=","values":[{"label":"example.com","value":"example.com"}]}]},"include_subaccounts":true,"pagination":{"sort":"timestamp:asc","limit":50}}'
10
- headers:
11
- User-Agent:
12
- - mailgun-sdk-ruby/1.3.7
13
- Accept:
14
- - "*/*"
15
- Content-Type:
16
- - application/json
17
- Authorization:
18
- - Basic xxx
19
- Accept-Encoding:
20
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
21
- response:
22
- status:
23
- code: 200
24
- message: OK
25
- headers:
26
- Access-Control-Allow-Credentials:
27
- - 'true'
28
- Access-Control-Allow-Origin:
29
- - "*"
30
- Cache-Control:
31
- - no-store
32
- Content-Type:
33
- - application/json; charset=utf-8
34
- Date:
35
- - Wed, 25 Jun 2025 17:47:38 GMT
36
- Strict-Transport-Security:
37
- - max-age=63072000; includeSubDomains
38
- X-Mailgun-Key-Id:
39
- - XXX
40
- X-Xss-Protection:
41
- - 1; mode=block
42
- Transfer-Encoding:
43
- - chunked
44
- body:
45
- encoding: UTF-8
46
- string: '{"start":"Wed, 25 Jun 2025 00:00:00 -0000","end":"Wed, 25 Jun 2025
47
- 23:00:00 -0000","items":[{"id":"123","event":"accepted","@timestamp":"2025-06-25T17:19:51.166Z","account":{"id":"123"},"method":"HTTP","originating-ip":"123.123.12.123","api-key-id":"xxx","domain":{"name":"example.mailgun.org"},"recipient":"alex@example.com","recipient-domain":"example.com","envelope":{"sender":"example.mailgun.org","transport":"smtp","targets":"alex@example.com"},"storage":{"region":"us-east4","env":"production","key":"xxx","url":["https://storage.api.mailgun.net/v3/domains/example.mailgun.org/messages/123"]},"log-level":"info","user-variables":"{}","message":{"headers":{"to":"alex@example.com","message-id":"123@example.mailgun.org","from":"bob@sending_domain.com+4","subject":"The
48
- Ruby SDK is awesome!"},"attachments":[{"filename":"image.jpg","content-type":"image/jpeg","size":16712}],"size":23476},"flags":{"is-authenticated":true,"is-system-test":false,"is-routed":false,"is-test-mode":false,"is-delayed-bounce":false,"is-callback":false}}],"pagination":{},"aggregates":{}}
49
-
50
- '
51
- http_version:
52
- recorded_at: Wed, 25 Jun 2025 17:47:38 GMT
53
- recorded_with: VCR 3.0.3
@@ -1,109 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://api.mailgun.net/v3/not-our-doma.in/messages
6
- body:
7
- encoding: US-ASCII
8
- string: from[]=sally%40not-our-doma.in&subject[]=subject&html[]=%3Cp%3ETest%21%3C%2Fp%3E&text[]=Test%21&to[]=bob%40DOMAIN.TEST&h%3Acontent-type=multipart%2Falternative%3B+boundary%3D%22--%3D%3D_mimepart_6098fb5a12edf_78633ff4e00521889696a%22%3B+charset%3DUTF-8
9
- headers:
10
- Accept:
11
- - "*/*"
12
- User-Agent:
13
- - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.2.2p95
14
- Content-Length:
15
- - '262'
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
- Host:
21
- - api.mailgun.net
22
- Authorization:
23
- - Basic YXBpOmQ5MTViNWNkYjlhNTgzNjg1ZDhmM2ZiMWJlYzBmMjBmLTA3YmM3YjA1LWZhNDgxNmEx
24
- response:
25
- status:
26
- code: 401
27
- message: UNAUTHORIZED
28
- headers:
29
- Access-Control-Allow-Headers:
30
- - Content-Type, x-requested-with, Authorization
31
- Access-Control-Allow-Methods:
32
- - GET, POST, PUT, DELETE, OPTIONS
33
- Access-Control-Allow-Origin:
34
- - "*"
35
- Access-Control-Max-Age:
36
- - '600'
37
- Cache-Control:
38
- - no-store
39
- Content-Type:
40
- - text/html; charset=utf-8
41
- Date:
42
- - Mon, 10 May 2021 09:22:34 GMT
43
- Server:
44
- - nginx
45
- Www-Authenticate:
46
- - Basic realm="MG API"
47
- Content-Length:
48
- - '9'
49
- Connection:
50
- - keep-alive
51
- body:
52
- encoding: UTF-8
53
- string: Forbidden
54
- http_version:
55
- recorded_at: Mon, 10 May 2021 09:22:34 GMT
56
- - request:
57
- method: post
58
- uri: https://api.mailgun.net/v3/not-our-doma.in/messages
59
- body:
60
- encoding: US-ASCII
61
- string: from[]=sally%40not-our-doma.in&subject[]=subject&html[]=%3Cp%3ETest%21%3C%2Fp%3E&text[]=Test%21&to[]=bob%40DOMAIN.TEST&h%3Acontent-type=multipart%2Falternative%3B+boundary%3D%22--%3D%3D_mimepart_6098fb5a12edf_78633ff4e00521889696a%22%3B+charset%3DUTF-8
62
- headers:
63
- Accept:
64
- - "*/*"
65
- User-Agent:
66
- - rest-client/2.1.0 (darwin18.7.0 x86_64) ruby/2.2.2p95
67
- Content-Length:
68
- - '262'
69
- Content-Type:
70
- - application/x-www-form-urlencoded
71
- Accept-Encoding:
72
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
73
- Host:
74
- - api.mailgun.net
75
- Authorization:
76
- - Basic YXBpOmQ5MTViNWNkYjlhNTgzNjg1ZDhmM2ZiMWJlYzBmMjBmLTA3YmM3YjA1LWZhNDgxNmEx
77
- response:
78
- status:
79
- code: 401
80
- message: UNAUTHORIZED
81
- headers:
82
- Access-Control-Allow-Headers:
83
- - Content-Type, x-requested-with, Authorization
84
- Access-Control-Allow-Methods:
85
- - GET, POST, PUT, DELETE, OPTIONS
86
- Access-Control-Allow-Origin:
87
- - "*"
88
- Access-Control-Max-Age:
89
- - '600'
90
- Cache-Control:
91
- - no-store
92
- Content-Type:
93
- - text/html; charset=utf-8
94
- Date:
95
- - Mon, 10 May 2021 09:22:40 GMT
96
- Server:
97
- - nginx
98
- Www-Authenticate:
99
- - Basic realm="MG API"
100
- Content-Length:
101
- - '9'
102
- Connection:
103
- - keep-alive
104
- body:
105
- encoding: UTF-8
106
- string: Forbidden
107
- http_version:
108
- recorded_at: Mon, 10 May 2021 09:22:40 GMT
109
- recorded_with: VCR 3.0.3
@@ -1,43 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://api:<APIKEY>@api.mailgun.net/v3/lists
6
- body:
7
- encoding: US-ASCII
8
- string: address=integration_test_list%40DOMAIN.TEST&name=Integration%20Test%20List&description=This%20list%20should%20be%20deleted%20automatically.&access_level=members
9
- headers:
10
- Accept:
11
- - "*/*; q=0.5, application/xml"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- Content-Length:
15
- - '195'
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:13:41 GMT
29
- Content-Type:
30
- - application/json
31
- Content-Length:
32
- - '35'
33
- Connection:
34
- - keep-alive
35
- body:
36
- encoding: UTF-8
37
- string: |-
38
- {
39
- "message": "Duplicate object"
40
- }
41
- http_version:
42
- recorded_at: Fri, 08 Jan 2016 20:13:41 GMT
43
- recorded_with: VCR 3.0.1