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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -1
- data/README.md +3 -1
- data/lib/mailgun/api_keys/api_keys.rb +2 -2
- data/lib/mailgun/client.rb +1 -1
- data/lib/mailgun/domains/domain_keys.rb +5 -5
- data/lib/mailgun/domains/domains.rb +12 -9
- data/lib/mailgun/events/events.rb +1 -1
- data/lib/mailgun/helpers/api_version_checker.rb +23 -12
- data/lib/mailgun/helpers/deprecation.rb +32 -0
- data/lib/mailgun/lists/mailing_lists.rb +250 -0
- data/lib/mailgun/messages/message_builder.rb +17 -7
- data/lib/mailgun/response.rb +1 -1
- data/lib/mailgun/routes/routes.rb +98 -0
- data/lib/mailgun/tags/analytics_tags.rb +2 -2
- data/lib/mailgun/tags/tags.rb +16 -8
- data/lib/mailgun/version.rb +1 -1
- data/lib/mailgun/webhooks/account_webhooks.rb +2 -2
- data/lib/mailgun/webhooks/webhooks.rb +17 -9
- data/lib/mailgun.rb +1 -0
- metadata +6 -326
- data/.github/workflows/ci.yml +0 -49
- data/.github_changelog_generator +0 -1
- data/.gitignore +0 -24
- data/.rubocop.yml +0 -68
- data/.ruby-env.yml.example +0 -13
- data/Gemfile +0 -9
- data/Rakefile +0 -32
- data/docs/AccountWebhooks.md +0 -55
- data/docs/AnalyticsTags.md +0 -63
- data/docs/ApiKeys.md +0 -65
- data/docs/DomainKeys.md +0 -49
- data/docs/Domains.md +0 -82
- data/docs/EmailValidation.md +0 -34
- data/docs/Events.md +0 -48
- data/docs/Logs.md +0 -67
- data/docs/MessageBuilder.md +0 -120
- data/docs/Metrics.md +0 -108
- data/docs/OptInHandler.md +0 -103
- data/docs/Snippets.md +0 -519
- data/docs/Subaccounts.md +0 -68
- data/docs/Suppressions.md +0 -92
- data/docs/Templates.md +0 -92
- data/docs/Webhooks.md +0 -65
- data/docs/railgun/EmailValidation.md +0 -34
- data/docs/railgun/Overview.md +0 -11
- data/docs/railgun/Parameters.md +0 -83
- data/mailgun.gemspec +0 -47
- data/spec/integration/account_webhooks_spec.rb +0 -57
- data/spec/integration/analytics_tags_spec.rb +0 -54
- data/spec/integration/api_keys_spec.rb +0 -50
- data/spec/integration/bounces_spec.rb +0 -45
- data/spec/integration/campaign_spec.rb +0 -62
- data/spec/integration/complaints_spec.rb +0 -40
- data/spec/integration/domain_keys_spec.rb +0 -124
- data/spec/integration/domains_spec.rb +0 -201
- data/spec/integration/email_validation_spec.rb +0 -73
- data/spec/integration/events_spec.rb +0 -28
- data/spec/integration/list_members_spec.rb +0 -64
- data/spec/integration/list_spec.rb +0 -59
- data/spec/integration/logs_spec.rb +0 -105
- data/spec/integration/mailer_spec.rb +0 -65
- data/spec/integration/mailgun_spec.rb +0 -198
- data/spec/integration/messages/sample_data/mime.txt +0 -38
- data/spec/integration/metrics_spec.rb +0 -224
- data/spec/integration/routes_spec.rb +0 -91
- data/spec/integration/stats_spec.rb +0 -17
- data/spec/integration/subaccounts_spec.rb +0 -57
- data/spec/integration/suppressions_spec.rb +0 -320
- data/spec/integration/templates_spec.rb +0 -137
- data/spec/integration/unsubscribes_spec.rb +0 -44
- data/spec/integration/webhook_spec.rb +0 -79
- data/spec/spec_helper.rb +0 -53
- data/spec/unit/client_spec.rb +0 -448
- data/spec/unit/connection/test_client.rb +0 -169
- data/spec/unit/events/events_spec.rb +0 -88
- data/spec/unit/exceptions/exceptions_spec.rb +0 -31
- data/spec/unit/helpers/api_version_checker_spec.rb +0 -206
- data/spec/unit/lists/opt_in_handler_spec.rb +0 -28
- data/spec/unit/mailgun_spec.rb +0 -171
- data/spec/unit/messages/batch_message_spec.rb +0 -148
- data/spec/unit/messages/message_builder_spec.rb +0 -745
- data/spec/unit/messages/sample_data/mailgun_icon.png +0 -0
- data/spec/unit/messages/sample_data/mime.txt +0 -38
- data/spec/unit/messages/sample_data/rackspace_logo.jpg +0 -0
- data/spec/unit/messages/sample_data/unknown.type +0 -0
- data/spec/unit/railgun/content_type_spec.rb +0 -89
- data/spec/unit/railgun/mailer_spec.rb +0 -391
- data/spec/unit/response_spec.rb +0 -225
- data/spec/unit/webhooks_spec.rb +0 -121
- data/vcr_cassettes/For_the_suppressions_handling_class/creates_a_single_bounce.yml +0 -55
- data/vcr_cassettes/account_webhooks.yml +0 -269
- data/vcr_cassettes/analytics_tags.yml +0 -187
- data/vcr_cassettes/api_keys.yml +0 -212
- data/vcr_cassettes/bounces.yml +0 -136
- data/vcr_cassettes/complaints.yml +0 -315
- data/vcr_cassettes/domains.todo.yml +0 -42
- data/vcr_cassettes/domains.yml +0 -1243
- data/vcr_cassettes/email_validation.yml +0 -152
- data/vcr_cassettes/events.yml +0 -69
- data/vcr_cassettes/exceptions-invalid-api-key.yml +0 -52
- data/vcr_cassettes/exceptions-invalid-data.yml +0 -52
- data/vcr_cassettes/exceptions-not-allowed.yml +0 -54
- data/vcr_cassettes/exceptions.yml +0 -92
- data/vcr_cassettes/list_members.yml +0 -328
- data/vcr_cassettes/logs.yml +0 -53
- data/vcr_cassettes/mailer_invalid_domain.yml +0 -109
- data/vcr_cassettes/mailing_list.todo.yml +0 -43
- data/vcr_cassettes/mailing_list.yml +0 -682
- data/vcr_cassettes/message_deliver.yml +0 -149
- data/vcr_cassettes/metrics.yml +0 -116
- data/vcr_cassettes/routes.yml +0 -359
- data/vcr_cassettes/send_message.yml +0 -158
- data/vcr_cassettes/stats.yml +0 -48
- data/vcr_cassettes/subaccounts.yml +0 -270
- data/vcr_cassettes/suppressions.yml +0 -1392
- data/vcr_cassettes/templates.yml +0 -1065
- data/vcr_cassettes/unsubscribes.yml +0 -401
- data/vcr_cassettes/webhooks.yml +0 -246
- data/vcr_cassettes/webhooks_v4.yml +0 -275
|
@@ -1,401 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
http_interactions:
|
|
3
|
-
- request:
|
|
4
|
-
method: post
|
|
5
|
-
uri: https://api.mailgun.net/v3/DOMAIN.TEST/unsubscribes
|
|
6
|
-
body:
|
|
7
|
-
encoding: US-ASCII
|
|
8
|
-
string: address=integration-test-email%40DOMAIN.TEST&tag=*
|
|
9
|
-
headers:
|
|
10
|
-
Accept:
|
|
11
|
-
- "*/*; q=0.5, application/xml"
|
|
12
|
-
Accept-Encoding:
|
|
13
|
-
- gzip, deflate
|
|
14
|
-
Content-Length:
|
|
15
|
-
- '85'
|
|
16
|
-
Content-Type:
|
|
17
|
-
- application/x-www-form-urlencoded
|
|
18
|
-
User-Agent:
|
|
19
|
-
- Ruby
|
|
20
|
-
response:
|
|
21
|
-
status:
|
|
22
|
-
code: 200
|
|
23
|
-
message: OK
|
|
24
|
-
headers:
|
|
25
|
-
Server:
|
|
26
|
-
- nginx
|
|
27
|
-
Date:
|
|
28
|
-
- Fri, 08 Jan 2016 18:55:05 GMT
|
|
29
|
-
Content-Type:
|
|
30
|
-
- application/json; charset=utf-8
|
|
31
|
-
Content-Length:
|
|
32
|
-
- '144'
|
|
33
|
-
Connection:
|
|
34
|
-
- keep-alive
|
|
35
|
-
Access-Control-Allow-Origin:
|
|
36
|
-
- "*"
|
|
37
|
-
- "*"
|
|
38
|
-
Access-Control-Max-Age:
|
|
39
|
-
- '600'
|
|
40
|
-
- '600'
|
|
41
|
-
Access-Control-Allow-Methods:
|
|
42
|
-
- GET, POST, PUT, DELETE, OPTIONS
|
|
43
|
-
- GET, POST, PUT, DELETE, OPTIONS
|
|
44
|
-
Access-Control-Allow-Headers:
|
|
45
|
-
- Content-Type, x-requested-with
|
|
46
|
-
- Content-Type, x-requested-with
|
|
47
|
-
body:
|
|
48
|
-
encoding: UTF-8
|
|
49
|
-
string: '{"address":"integration-test-email@DOMAIN.TEST","message":"Address
|
|
50
|
-
has been added to the unsubscribes table"}'
|
|
51
|
-
http_version:
|
|
52
|
-
recorded_at: Fri, 08 Jan 2016 18:55:05 GMT
|
|
53
|
-
- request:
|
|
54
|
-
method: get
|
|
55
|
-
uri: https://api.mailgun.net/v3/DOMAIN.TEST/unsubscribes/integration-test-email@DOMAIN.TEST
|
|
56
|
-
body:
|
|
57
|
-
encoding: US-ASCII
|
|
58
|
-
string: ''
|
|
59
|
-
headers:
|
|
60
|
-
Accept:
|
|
61
|
-
- "*/*"
|
|
62
|
-
Accept-Encoding:
|
|
63
|
-
- gzip, deflate
|
|
64
|
-
User-Agent:
|
|
65
|
-
- Ruby
|
|
66
|
-
response:
|
|
67
|
-
status:
|
|
68
|
-
code: 200
|
|
69
|
-
message: OK
|
|
70
|
-
headers:
|
|
71
|
-
Server:
|
|
72
|
-
- nginx
|
|
73
|
-
Date:
|
|
74
|
-
- Fri, 08 Jan 2016 18:55:05 GMT
|
|
75
|
-
Content-Type:
|
|
76
|
-
- application/json; charset=utf-8
|
|
77
|
-
Content-Length:
|
|
78
|
-
- '141'
|
|
79
|
-
Connection:
|
|
80
|
-
- keep-alive
|
|
81
|
-
Access-Control-Allow-Origin:
|
|
82
|
-
- "*"
|
|
83
|
-
- "*"
|
|
84
|
-
Access-Control-Max-Age:
|
|
85
|
-
- '600'
|
|
86
|
-
- '600'
|
|
87
|
-
Access-Control-Allow-Methods:
|
|
88
|
-
- GET, POST, PUT, DELETE, OPTIONS
|
|
89
|
-
- GET, POST, PUT, DELETE, OPTIONS
|
|
90
|
-
Access-Control-Allow-Headers:
|
|
91
|
-
- Content-Type, x-requested-with
|
|
92
|
-
- Content-Type, x-requested-with
|
|
93
|
-
body:
|
|
94
|
-
encoding: UTF-8
|
|
95
|
-
string: '{"address":"integration-test-email@DOMAIN.TEST","tags":["*"],"created_at":"Fri,
|
|
96
|
-
08 Jan 2016 18:55:04 UTC"}'
|
|
97
|
-
http_version:
|
|
98
|
-
recorded_at: Fri, 08 Jan 2016 18:55:05 GMT
|
|
99
|
-
- request:
|
|
100
|
-
method: get
|
|
101
|
-
uri: https://api.mailgun.net/v3/DOMAIN.TEST/unsubscribes
|
|
102
|
-
body:
|
|
103
|
-
encoding: US-ASCII
|
|
104
|
-
string: ''
|
|
105
|
-
headers:
|
|
106
|
-
Accept:
|
|
107
|
-
- "*/*"
|
|
108
|
-
Accept-Encoding:
|
|
109
|
-
- gzip, deflate
|
|
110
|
-
User-Agent:
|
|
111
|
-
- Ruby
|
|
112
|
-
response:
|
|
113
|
-
status:
|
|
114
|
-
code: 200
|
|
115
|
-
message: OK
|
|
116
|
-
headers:
|
|
117
|
-
Server:
|
|
118
|
-
- nginx
|
|
119
|
-
Date:
|
|
120
|
-
- Fri, 08 Jan 2016 18:55:27 GMT
|
|
121
|
-
Content-Type:
|
|
122
|
-
- application/json; charset=utf-8
|
|
123
|
-
Content-Length:
|
|
124
|
-
- '812'
|
|
125
|
-
Connection:
|
|
126
|
-
- keep-alive
|
|
127
|
-
Access-Control-Allow-Origin:
|
|
128
|
-
- "*"
|
|
129
|
-
- "*"
|
|
130
|
-
Access-Control-Max-Age:
|
|
131
|
-
- '600'
|
|
132
|
-
- '600'
|
|
133
|
-
Access-Control-Allow-Methods:
|
|
134
|
-
- GET, POST, PUT, DELETE, OPTIONS
|
|
135
|
-
- GET, POST, PUT, DELETE, OPTIONS
|
|
136
|
-
Access-Control-Allow-Headers:
|
|
137
|
-
- Content-Type, x-requested-with
|
|
138
|
-
- Content-Type, x-requested-with
|
|
139
|
-
body:
|
|
140
|
-
encoding: UTF-8
|
|
141
|
-
string: '{"items":[{"address":"integration-test-email@DOMAIN.TEST","tags":["*"],"created_at":"Fri,
|
|
142
|
-
08 Jan 2016 18:55:04 UTC"}],"paging":{"first":"https://api.mailgun.net/v3/DOMAIN.TEST/unsubscribes?limit=100","last":"https://api.mailgun.net/v3/DOMAIN.TEST/unsubscribes?page=last\u0026limit=100","next":"https://api.mailgun.net/v3/DOMAIN.TEST/unsubscribes?page=next\u0026address=integration-test-email%40DOMAIN.TEST\u0026limit=100","previous":"https://api.mailgun.net/v3/DOMAIN.TEST/unsubscribes?page=previous\u0026address=integration-test-email%40DOMAIN.TEST\u0026limit=100"}}'
|
|
143
|
-
http_version:
|
|
144
|
-
recorded_at: Fri, 08 Jan 2016 18:55:28 GMT
|
|
145
|
-
- request:
|
|
146
|
-
method: delete
|
|
147
|
-
uri: https://api.mailgun.net/v3/DOMAIN.TEST/unsubscribes/integration-test-email@DOMAIN.TEST
|
|
148
|
-
body:
|
|
149
|
-
encoding: US-ASCII
|
|
150
|
-
string: ''
|
|
151
|
-
headers:
|
|
152
|
-
Accept:
|
|
153
|
-
- "*/*; q=0.5, application/xml"
|
|
154
|
-
Accept-Encoding:
|
|
155
|
-
- gzip, deflate
|
|
156
|
-
User-Agent:
|
|
157
|
-
- Ruby
|
|
158
|
-
response:
|
|
159
|
-
status:
|
|
160
|
-
code: 200
|
|
161
|
-
message: OK
|
|
162
|
-
headers:
|
|
163
|
-
Server:
|
|
164
|
-
- nginx
|
|
165
|
-
Date:
|
|
166
|
-
- Fri, 08 Jan 2016 18:55:28 GMT
|
|
167
|
-
Content-Type:
|
|
168
|
-
- application/json; charset=utf-8
|
|
169
|
-
Content-Length:
|
|
170
|
-
- '130'
|
|
171
|
-
Connection:
|
|
172
|
-
- keep-alive
|
|
173
|
-
Access-Control-Allow-Origin:
|
|
174
|
-
- "*"
|
|
175
|
-
- "*"
|
|
176
|
-
Access-Control-Max-Age:
|
|
177
|
-
- '600'
|
|
178
|
-
- '600'
|
|
179
|
-
Access-Control-Allow-Methods:
|
|
180
|
-
- GET, POST, PUT, DELETE, OPTIONS
|
|
181
|
-
- GET, POST, PUT, DELETE, OPTIONS
|
|
182
|
-
Access-Control-Allow-Headers:
|
|
183
|
-
- Content-Type, x-requested-with
|
|
184
|
-
- Content-Type, x-requested-with
|
|
185
|
-
body:
|
|
186
|
-
encoding: UTF-8
|
|
187
|
-
string: '{"address":"integration-test-email@DOMAIN.TEST","message":"Unsubscribe
|
|
188
|
-
event has been removed"}'
|
|
189
|
-
http_version:
|
|
190
|
-
recorded_at: Fri, 08 Jan 2016 18:55:28 GMT
|
|
191
|
-
- request:
|
|
192
|
-
method: post
|
|
193
|
-
uri: https://api.mailgun.net/v3/DOMAIN.TEST/unsubscribes
|
|
194
|
-
body:
|
|
195
|
-
encoding: UTF-8
|
|
196
|
-
string: address=integration-test-email%40DOMAIN.TEST&tag=%2A
|
|
197
|
-
headers:
|
|
198
|
-
User-Agent:
|
|
199
|
-
- mailgun-sdk-ruby/1.3.0
|
|
200
|
-
Accept:
|
|
201
|
-
- "*/*"
|
|
202
|
-
Authorization:
|
|
203
|
-
- Basic xxx==
|
|
204
|
-
Content-Type:
|
|
205
|
-
- application/x-www-form-urlencoded
|
|
206
|
-
Accept-Encoding:
|
|
207
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
208
|
-
response:
|
|
209
|
-
status:
|
|
210
|
-
code: 200
|
|
211
|
-
message: OK
|
|
212
|
-
headers:
|
|
213
|
-
Access-Control-Allow-Credentials:
|
|
214
|
-
- 'true'
|
|
215
|
-
Access-Control-Allow-Origin:
|
|
216
|
-
- "*"
|
|
217
|
-
Cache-Control:
|
|
218
|
-
- no-store
|
|
219
|
-
Content-Length:
|
|
220
|
-
- '150'
|
|
221
|
-
Content-Type:
|
|
222
|
-
- application/json; charset=utf-8
|
|
223
|
-
Date:
|
|
224
|
-
- Sun, 26 Jan 2025 07:29:46 GMT
|
|
225
|
-
Strict-Transport-Security:
|
|
226
|
-
- max-age=63072000; includeSubDomains
|
|
227
|
-
X-Mailgun-Key-Id:
|
|
228
|
-
- 90b59dea-f2d12a53
|
|
229
|
-
X-Request-Limit:
|
|
230
|
-
- '2500'
|
|
231
|
-
X-Request-Remaining:
|
|
232
|
-
- '2484'
|
|
233
|
-
X-Request-Reset:
|
|
234
|
-
- '1737876591950'
|
|
235
|
-
X-Xss-Protection:
|
|
236
|
-
- 1; mode=block
|
|
237
|
-
body:
|
|
238
|
-
encoding: UTF-8
|
|
239
|
-
string: '{"address":"integration-test-email@DOMAIN.TEST","message":"Address
|
|
240
|
-
has been added to the unsubscribes table"}
|
|
241
|
-
|
|
242
|
-
'
|
|
243
|
-
http_version:
|
|
244
|
-
recorded_at: Sun, 26 Jan 2025 07:29:46 GMT
|
|
245
|
-
- request:
|
|
246
|
-
method: get
|
|
247
|
-
uri: https://api.mailgun.net/v3/DOMAIN.TEST/unsubscribes/integration-test-email@DOMAIN.TEST
|
|
248
|
-
body:
|
|
249
|
-
encoding: US-ASCII
|
|
250
|
-
string: ''
|
|
251
|
-
headers:
|
|
252
|
-
User-Agent:
|
|
253
|
-
- mailgun-sdk-ruby/1.3.0
|
|
254
|
-
Accept:
|
|
255
|
-
- "*/*"
|
|
256
|
-
Authorization:
|
|
257
|
-
- Basic xxx==
|
|
258
|
-
Accept-Encoding:
|
|
259
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
260
|
-
response:
|
|
261
|
-
status:
|
|
262
|
-
code: 200
|
|
263
|
-
message: OK
|
|
264
|
-
headers:
|
|
265
|
-
Access-Control-Allow-Credentials:
|
|
266
|
-
- 'true'
|
|
267
|
-
Access-Control-Allow-Origin:
|
|
268
|
-
- "*"
|
|
269
|
-
Cache-Control:
|
|
270
|
-
- no-store
|
|
271
|
-
Content-Length:
|
|
272
|
-
- '147'
|
|
273
|
-
Content-Type:
|
|
274
|
-
- application/json; charset=utf-8
|
|
275
|
-
Date:
|
|
276
|
-
- Sun, 26 Jan 2025 07:29:46 GMT
|
|
277
|
-
Strict-Transport-Security:
|
|
278
|
-
- max-age=63072000; includeSubDomains
|
|
279
|
-
X-Mailgun-Key-Id:
|
|
280
|
-
- 90b59dea-f2d12a53
|
|
281
|
-
X-Request-Limit:
|
|
282
|
-
- '2500'
|
|
283
|
-
X-Request-Remaining:
|
|
284
|
-
- '2483'
|
|
285
|
-
X-Request-Reset:
|
|
286
|
-
- '1737876591950'
|
|
287
|
-
X-Xss-Protection:
|
|
288
|
-
- 1; mode=block
|
|
289
|
-
body:
|
|
290
|
-
encoding: UTF-8
|
|
291
|
-
string: '{"address":"integration-test-email@DOMAIN.TEST","tags":["*"],"created_at":"Sun,
|
|
292
|
-
26 Jan 2025 07:29:46 UTC"}
|
|
293
|
-
|
|
294
|
-
'
|
|
295
|
-
http_version:
|
|
296
|
-
recorded_at: Sun, 26 Jan 2025 07:29:47 GMT
|
|
297
|
-
- request:
|
|
298
|
-
method: get
|
|
299
|
-
uri: https://api.mailgun.net/v3/DOMAIN.TEST/unsubscribes
|
|
300
|
-
body:
|
|
301
|
-
encoding: US-ASCII
|
|
302
|
-
string: ''
|
|
303
|
-
headers:
|
|
304
|
-
User-Agent:
|
|
305
|
-
- mailgun-sdk-ruby/1.3.0
|
|
306
|
-
Accept:
|
|
307
|
-
- "*/*"
|
|
308
|
-
Authorization:
|
|
309
|
-
- Basic xxx==
|
|
310
|
-
Accept-Encoding:
|
|
311
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
312
|
-
response:
|
|
313
|
-
status:
|
|
314
|
-
code: 200
|
|
315
|
-
message: OK
|
|
316
|
-
headers:
|
|
317
|
-
Access-Control-Allow-Credentials:
|
|
318
|
-
- 'true'
|
|
319
|
-
Access-Control-Allow-Origin:
|
|
320
|
-
- "*"
|
|
321
|
-
Cache-Control:
|
|
322
|
-
- no-store
|
|
323
|
-
Content-Length:
|
|
324
|
-
- '847'
|
|
325
|
-
Content-Type:
|
|
326
|
-
- application/json; charset=utf-8
|
|
327
|
-
Date:
|
|
328
|
-
- Sun, 26 Jan 2025 07:29:47 GMT
|
|
329
|
-
Strict-Transport-Security:
|
|
330
|
-
- max-age=63072000; includeSubDomains
|
|
331
|
-
X-Mailgun-Key-Id:
|
|
332
|
-
- 90b59dea-f2d12a53
|
|
333
|
-
X-Request-Limit:
|
|
334
|
-
- '2500'
|
|
335
|
-
X-Request-Remaining:
|
|
336
|
-
- '2482'
|
|
337
|
-
X-Request-Reset:
|
|
338
|
-
- '1737876591950'
|
|
339
|
-
X-Xss-Protection:
|
|
340
|
-
- 1; mode=block
|
|
341
|
-
body:
|
|
342
|
-
encoding: UTF-8
|
|
343
|
-
string: '{"items":[{"address":"integration-test-email@DOMAIN.TEST","tags":["*"],"created_at":"Sun,
|
|
344
|
-
26 Jan 2025 07:29:46 UTC"}],"paging":{"first":"https://api.mailgun.net/v3/DOMAIN.TEST/unsubscribes?limit=100&term=","last":"https://api.mailgun.net/v3/DOMAIN.TEST/unsubscribes?page=last&limit=100&term=","next":"https://api.mailgun.net/v3/DOMAIN.TEST/unsubscribes?page=next&address=integration-test-email%40DOMAIN.TEST&limit=100&term=","previous":"https://api.mailgun.net/v3/DOMAIN.TEST/unsubscribes?page=previous&address=integration-test-email%40DOMAIN.TEST&limit=100&term="}}
|
|
345
|
-
|
|
346
|
-
'
|
|
347
|
-
http_version:
|
|
348
|
-
recorded_at: Sun, 26 Jan 2025 07:29:47 GMT
|
|
349
|
-
- request:
|
|
350
|
-
method: delete
|
|
351
|
-
uri: https://api.mailgun.net/v3/DOMAIN.TEST/unsubscribes/integration-test-email@DOMAIN.TEST
|
|
352
|
-
body:
|
|
353
|
-
encoding: US-ASCII
|
|
354
|
-
string: ''
|
|
355
|
-
headers:
|
|
356
|
-
User-Agent:
|
|
357
|
-
- mailgun-sdk-ruby/1.3.0
|
|
358
|
-
Accept:
|
|
359
|
-
- "*/*"
|
|
360
|
-
Authorization:
|
|
361
|
-
- Basic xxx==
|
|
362
|
-
Accept-Encoding:
|
|
363
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
364
|
-
response:
|
|
365
|
-
status:
|
|
366
|
-
code: 200
|
|
367
|
-
message: OK
|
|
368
|
-
headers:
|
|
369
|
-
Access-Control-Allow-Credentials:
|
|
370
|
-
- 'true'
|
|
371
|
-
Access-Control-Allow-Origin:
|
|
372
|
-
- "*"
|
|
373
|
-
Cache-Control:
|
|
374
|
-
- no-store
|
|
375
|
-
Content-Length:
|
|
376
|
-
- '136'
|
|
377
|
-
Content-Type:
|
|
378
|
-
- application/json; charset=utf-8
|
|
379
|
-
Date:
|
|
380
|
-
- Sun, 26 Jan 2025 07:29:48 GMT
|
|
381
|
-
Strict-Transport-Security:
|
|
382
|
-
- max-age=63072000; includeSubDomains
|
|
383
|
-
X-Mailgun-Key-Id:
|
|
384
|
-
- 90b59dea-f2d12a53
|
|
385
|
-
X-Request-Limit:
|
|
386
|
-
- '2500'
|
|
387
|
-
X-Request-Remaining:
|
|
388
|
-
- '2481'
|
|
389
|
-
X-Request-Reset:
|
|
390
|
-
- '1737876591950'
|
|
391
|
-
X-Xss-Protection:
|
|
392
|
-
- 1; mode=block
|
|
393
|
-
body:
|
|
394
|
-
encoding: UTF-8
|
|
395
|
-
string: '{"address":"integration-test-email@DOMAIN.TEST","message":"Unsubscribe
|
|
396
|
-
event has been removed"}
|
|
397
|
-
|
|
398
|
-
'
|
|
399
|
-
http_version:
|
|
400
|
-
recorded_at: Sun, 26 Jan 2025 07:29:48 GMT
|
|
401
|
-
recorded_with: VCR 3.0.3
|
data/vcr_cassettes/webhooks.yml
DELETED
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
http_interactions:
|
|
3
|
-
- request:
|
|
4
|
-
method: post
|
|
5
|
-
uri: https://api.mailgun.net/v3/domains/DOMAIN.TEST/webhooks
|
|
6
|
-
body:
|
|
7
|
-
encoding: UTF-8
|
|
8
|
-
string: id=accepted&url=http%3A%2F%2Fexample.com%2Fmailgun%2Fevents%2Faccepted
|
|
9
|
-
headers:
|
|
10
|
-
Accept:
|
|
11
|
-
- "*/*"
|
|
12
|
-
User-Agent:
|
|
13
|
-
- rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
|
|
14
|
-
Content-Length:
|
|
15
|
-
- '70'
|
|
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 YXBpOmFjZWM0YzA1YjFmMmZjZWJjZjY4ZGE2NDVkYTAwMjMxLTQxM2UzNzNjLTBhYWQzYzM3
|
|
24
|
-
response:
|
|
25
|
-
status:
|
|
26
|
-
code: 200
|
|
27
|
-
message: OK
|
|
28
|
-
headers:
|
|
29
|
-
Access-Control-Allow-Credentials:
|
|
30
|
-
- 'true'
|
|
31
|
-
Access-Control-Allow-Origin:
|
|
32
|
-
- "*"
|
|
33
|
-
Cache-Control:
|
|
34
|
-
- no-store
|
|
35
|
-
Content-Length:
|
|
36
|
-
- '105'
|
|
37
|
-
Content-Type:
|
|
38
|
-
- application/json; charset=utf-8
|
|
39
|
-
Date:
|
|
40
|
-
- Sun, 05 Nov 2023 15:35:13 GMT
|
|
41
|
-
Strict-Transport-Security:
|
|
42
|
-
- max-age=63072000; includeSubDomains
|
|
43
|
-
X-Mailgun-Key-Id:
|
|
44
|
-
- 413e373c-0aad3c37
|
|
45
|
-
X-Xss-Protection:
|
|
46
|
-
- 1; mode=block
|
|
47
|
-
body:
|
|
48
|
-
encoding: UTF-8
|
|
49
|
-
string: '{"message":"Webhook has been created","webhook":{"urls":["http://example.com/mailgun/events/accepted"]}}
|
|
50
|
-
|
|
51
|
-
'
|
|
52
|
-
http_version:
|
|
53
|
-
recorded_at: Sun, 05 Nov 2023 15:35:13 GMT
|
|
54
|
-
- request:
|
|
55
|
-
method: get
|
|
56
|
-
uri: https://api.mailgun.net/v3/domains/DOMAIN.TEST/webhooks/accepted
|
|
57
|
-
body:
|
|
58
|
-
encoding: US-ASCII
|
|
59
|
-
string: ''
|
|
60
|
-
headers:
|
|
61
|
-
Accept:
|
|
62
|
-
- "*/*"
|
|
63
|
-
User-Agent:
|
|
64
|
-
- rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
|
|
65
|
-
Accept-Encoding:
|
|
66
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
67
|
-
Host:
|
|
68
|
-
- api.mailgun.net
|
|
69
|
-
Authorization:
|
|
70
|
-
- Basic YXBpOmFjZWM0YzA1YjFmMmZjZWJjZjY4ZGE2NDVkYTAwMjMxLTQxM2UzNzNjLTBhYWQzYzM3
|
|
71
|
-
response:
|
|
72
|
-
status:
|
|
73
|
-
code: 200
|
|
74
|
-
message: OK
|
|
75
|
-
headers:
|
|
76
|
-
Access-Control-Allow-Credentials:
|
|
77
|
-
- 'true'
|
|
78
|
-
Access-Control-Allow-Origin:
|
|
79
|
-
- "*"
|
|
80
|
-
Cache-Control:
|
|
81
|
-
- no-store
|
|
82
|
-
Content-Length:
|
|
83
|
-
- '68'
|
|
84
|
-
Content-Type:
|
|
85
|
-
- application/json; charset=utf-8
|
|
86
|
-
Date:
|
|
87
|
-
- Sun, 05 Nov 2023 15:35:14 GMT
|
|
88
|
-
Strict-Transport-Security:
|
|
89
|
-
- max-age=63072000; includeSubDomains
|
|
90
|
-
X-Mailgun-Key-Id:
|
|
91
|
-
- 413e373c-0aad3c37
|
|
92
|
-
X-Xss-Protection:
|
|
93
|
-
- 1; mode=block
|
|
94
|
-
body:
|
|
95
|
-
encoding: UTF-8
|
|
96
|
-
string: '{"webhook":{"urls":["http://example.com/mailgun/events/accepted"]}}
|
|
97
|
-
|
|
98
|
-
'
|
|
99
|
-
http_version:
|
|
100
|
-
recorded_at: Sun, 05 Nov 2023 15:35:14 GMT
|
|
101
|
-
- request:
|
|
102
|
-
method: get
|
|
103
|
-
uri: https://api.mailgun.net/v3/domains/DOMAIN.TEST/webhooks
|
|
104
|
-
body:
|
|
105
|
-
encoding: US-ASCII
|
|
106
|
-
string: ''
|
|
107
|
-
headers:
|
|
108
|
-
Accept:
|
|
109
|
-
- "*/*"
|
|
110
|
-
User-Agent:
|
|
111
|
-
- rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
|
|
112
|
-
Accept-Encoding:
|
|
113
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
114
|
-
Host:
|
|
115
|
-
- api.mailgun.net
|
|
116
|
-
Authorization:
|
|
117
|
-
- Basic YXBpOmFjZWM0YzA1YjFmMmZjZWJjZjY4ZGE2NDVkYTAwMjMxLTQxM2UzNzNjLTBhYWQzYzM3
|
|
118
|
-
response:
|
|
119
|
-
status:
|
|
120
|
-
code: 200
|
|
121
|
-
message: OK
|
|
122
|
-
headers:
|
|
123
|
-
Access-Control-Allow-Credentials:
|
|
124
|
-
- 'true'
|
|
125
|
-
Access-Control-Allow-Origin:
|
|
126
|
-
- "*"
|
|
127
|
-
Cache-Control:
|
|
128
|
-
- no-store
|
|
129
|
-
Content-Length:
|
|
130
|
-
- '163'
|
|
131
|
-
Content-Type:
|
|
132
|
-
- application/json; charset=utf-8
|
|
133
|
-
Date:
|
|
134
|
-
- Sun, 05 Nov 2023 15:35:15 GMT
|
|
135
|
-
Strict-Transport-Security:
|
|
136
|
-
- max-age=63072000; includeSubDomains
|
|
137
|
-
X-Mailgun-Key-Id:
|
|
138
|
-
- 413e373c-0aad3c37
|
|
139
|
-
X-Xss-Protection:
|
|
140
|
-
- 1; mode=block
|
|
141
|
-
body:
|
|
142
|
-
encoding: UTF-8
|
|
143
|
-
string: '{"webhooks":{"accepted":{"urls":["http://example.com/mailgun/events/accepted"]},"clicked":{"urls":["https://webhook.site/096cdc2e-e460-450c-a008-36d6f0db71f4"]}}}
|
|
144
|
-
|
|
145
|
-
'
|
|
146
|
-
http_version:
|
|
147
|
-
recorded_at: Sun, 05 Nov 2023 15:35:14 GMT
|
|
148
|
-
- request:
|
|
149
|
-
method: put
|
|
150
|
-
uri: https://api.mailgun.net/v3/domains/DOMAIN.TEST/webhooks/accepted
|
|
151
|
-
body:
|
|
152
|
-
encoding: UTF-8
|
|
153
|
-
string: id=accepted&url=http%3A%2F%2Fexample.com%2Fmailgun%2Fevents%2Faccepted
|
|
154
|
-
headers:
|
|
155
|
-
Accept:
|
|
156
|
-
- "*/*"
|
|
157
|
-
User-Agent:
|
|
158
|
-
- rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
|
|
159
|
-
Content-Length:
|
|
160
|
-
- '70'
|
|
161
|
-
Content-Type:
|
|
162
|
-
- application/x-www-form-urlencoded
|
|
163
|
-
Accept-Encoding:
|
|
164
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
165
|
-
Host:
|
|
166
|
-
- api.mailgun.net
|
|
167
|
-
Authorization:
|
|
168
|
-
- Basic YXBpOmFjZWM0YzA1YjFmMmZjZWJjZjY4ZGE2NDVkYTAwMjMxLTQxM2UzNzNjLTBhYWQzYzM3
|
|
169
|
-
response:
|
|
170
|
-
status:
|
|
171
|
-
code: 200
|
|
172
|
-
message: OK
|
|
173
|
-
headers:
|
|
174
|
-
Access-Control-Allow-Credentials:
|
|
175
|
-
- 'true'
|
|
176
|
-
Access-Control-Allow-Origin:
|
|
177
|
-
- "*"
|
|
178
|
-
Cache-Control:
|
|
179
|
-
- no-store
|
|
180
|
-
Content-Length:
|
|
181
|
-
- '105'
|
|
182
|
-
Content-Type:
|
|
183
|
-
- application/json; charset=utf-8
|
|
184
|
-
Date:
|
|
185
|
-
- Sun, 05 Nov 2023 15:35:15 GMT
|
|
186
|
-
Strict-Transport-Security:
|
|
187
|
-
- max-age=63072000; includeSubDomains
|
|
188
|
-
X-Mailgun-Key-Id:
|
|
189
|
-
- 413e373c-0aad3c37
|
|
190
|
-
X-Xss-Protection:
|
|
191
|
-
- 1; mode=block
|
|
192
|
-
body:
|
|
193
|
-
encoding: UTF-8
|
|
194
|
-
string: '{"message":"Webhook has been updated","webhook":{"urls":["http://example.com/mailgun/events/accepted"]}}
|
|
195
|
-
|
|
196
|
-
'
|
|
197
|
-
http_version:
|
|
198
|
-
recorded_at: Sun, 05 Nov 2023 15:35:15 GMT
|
|
199
|
-
- request:
|
|
200
|
-
method: delete
|
|
201
|
-
uri: https://api.mailgun.net/v3/domains/DOMAIN.TEST/webhooks/accepted
|
|
202
|
-
body:
|
|
203
|
-
encoding: US-ASCII
|
|
204
|
-
string: ''
|
|
205
|
-
headers:
|
|
206
|
-
Accept:
|
|
207
|
-
- "*/*"
|
|
208
|
-
User-Agent:
|
|
209
|
-
- rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
|
|
210
|
-
Accept-Encoding:
|
|
211
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
212
|
-
Host:
|
|
213
|
-
- api.mailgun.net
|
|
214
|
-
Authorization:
|
|
215
|
-
- Basic YXBpOmFjZWM0YzA1YjFmMmZjZWJjZjY4ZGE2NDVkYTAwMjMxLTQxM2UzNzNjLTBhYWQzYzM3
|
|
216
|
-
response:
|
|
217
|
-
status:
|
|
218
|
-
code: 200
|
|
219
|
-
message: OK
|
|
220
|
-
headers:
|
|
221
|
-
Access-Control-Allow-Credentials:
|
|
222
|
-
- 'true'
|
|
223
|
-
Access-Control-Allow-Origin:
|
|
224
|
-
- "*"
|
|
225
|
-
Cache-Control:
|
|
226
|
-
- no-store
|
|
227
|
-
Content-Length:
|
|
228
|
-
- '105'
|
|
229
|
-
Content-Type:
|
|
230
|
-
- application/json; charset=utf-8
|
|
231
|
-
Date:
|
|
232
|
-
- Sun, 05 Nov 2023 15:35:16 GMT
|
|
233
|
-
Strict-Transport-Security:
|
|
234
|
-
- max-age=63072000; includeSubDomains
|
|
235
|
-
X-Mailgun-Key-Id:
|
|
236
|
-
- 413e373c-0aad3c37
|
|
237
|
-
X-Xss-Protection:
|
|
238
|
-
- 1; mode=block
|
|
239
|
-
body:
|
|
240
|
-
encoding: UTF-8
|
|
241
|
-
string: '{"message":"Webhook has been deleted","webhook":{"urls":["http://example.com/mailgun/events/accepted"]}}
|
|
242
|
-
|
|
243
|
-
'
|
|
244
|
-
http_version:
|
|
245
|
-
recorded_at: Sun, 05 Nov 2023 15:35:16 GMT
|
|
246
|
-
recorded_with: VCR 3.0.3
|