mailgun-ruby 1.2.12 → 1.2.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-env.yml.example +1 -0
- data/CHANGELOG.md +21 -1
- data/README.md +4 -1
- data/docs/Domains.md +1 -1
- data/docs/EmailValidation.md +34 -0
- data/docs/Events.md +1 -1
- data/docs/MessageBuilder.md +1 -1
- data/docs/Messages.md +1 -1
- data/docs/OptInHandler.md +1 -1
- data/docs/Snippets.md +1 -1
- data/docs/Subaccounts.md +68 -0
- data/docs/Suppressions.md +10 -0
- data/docs/Webhooks.md +1 -1
- data/docs/railgun/EmailValidation.md +34 -0
- data/lib/mailgun/client.rb +23 -2
- data/lib/mailgun/domains/domains.rb +229 -1
- data/lib/mailgun/messages/message_builder.rb +8 -0
- data/lib/mailgun/subaccounts/subaccounts.rb +84 -0
- data/lib/mailgun/tags/tags.rb +120 -0
- data/lib/mailgun/version.rb +1 -1
- data/lib/mailgun/webhooks/webhooks.rb +20 -4
- data/lib/mailgun.rb +2 -0
- data/lib/railgun/mailer.rb +31 -0
- data/mailgun.gemspec +1 -1
- data/spec/integration/domains_spec.rb +244 -0
- data/spec/integration/events_spec.rb +1 -1
- data/spec/integration/mailer_spec.rb +2 -8
- data/spec/integration/subaccounts_spec.rb +58 -0
- data/spec/integration/tags.rb +139 -0
- data/spec/integration/webhook_spec.rb +10 -10
- data/spec/unit/messages/message_builder_spec.rb +11 -0
- data/spec/unit/railgun/content_type_spec.rb +17 -0
- data/vcr_cassettes/domains.yml +1068 -1
- data/vcr_cassettes/subaccounts.yml +270 -0
- data/vcr_cassettes/tags.yml +417 -0
- data/vcr_cassettes/webhooks.yml +156 -186
- metadata +15 -4
@@ -0,0 +1,417 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.mailgun.net/v3/DOMAIN.TEST/tags
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- "*/*"
|
12
|
+
User-Agent:
|
13
|
+
- rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Host:
|
17
|
+
- api.mailgun.net
|
18
|
+
Authorization:
|
19
|
+
- Basic xxx
|
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
|
+
- '771'
|
33
|
+
Content-Type:
|
34
|
+
- application/json; charset=utf-8
|
35
|
+
Date:
|
36
|
+
- Thu, 25 Jan 2024 13:35:59 GMT
|
37
|
+
Strict-Transport-Security:
|
38
|
+
- max-age=63072000; includeSubDomains
|
39
|
+
X-Xss-Protection:
|
40
|
+
- 1; mode=block
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"items":[{"tag":"You can track mails as tag-units!","description":"","first-seen":"2023-06-25T15:17:53.604Z","last-seen":"2023-06-25T15:23:40.474Z"},{"tag":"abtest-option-a","description":"new
|
44
|
+
desc","first-seen":"2021-02-19T00:00:00Z","last-seen":"2024-01-25T12:55:58.293Z"}],"paging":{"previous":"https://api.mailgun.net/v3/DOMAIN.TEST/tags?limit=1000&page=prev&tag=","first":"https://api.mailgun.net/v3/DOMAIN.TEST/tags?limit=1000&page=first&tag=","next":"https://api.mailgun.net/v3/DOMAIN.TEST/tags?limit=1000&page=next&tag=","last":"https://api.mailgun.net/v3/DOMAIN.TEST/tags?limit=1000&page=last&tag="}}
|
45
|
+
|
46
|
+
'
|
47
|
+
http_version:
|
48
|
+
recorded_at: Thu, 25 Jan 2024 13:35:59 GMT
|
49
|
+
- request:
|
50
|
+
method: get
|
51
|
+
uri: https://api.mailgun.net/v3/DOMAIN.TEST/tags/abtest-option-a
|
52
|
+
body:
|
53
|
+
encoding: US-ASCII
|
54
|
+
string: ''
|
55
|
+
headers:
|
56
|
+
Accept:
|
57
|
+
- "*/*"
|
58
|
+
User-Agent:
|
59
|
+
- rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
|
60
|
+
Accept-Encoding:
|
61
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
62
|
+
Host:
|
63
|
+
- api.mailgun.net
|
64
|
+
Authorization:
|
65
|
+
- Basic xxx
|
66
|
+
response:
|
67
|
+
status:
|
68
|
+
code: 200
|
69
|
+
message: OK
|
70
|
+
headers:
|
71
|
+
Access-Control-Allow-Credentials:
|
72
|
+
- 'true'
|
73
|
+
Access-Control-Allow-Origin:
|
74
|
+
- "*"
|
75
|
+
Cache-Control:
|
76
|
+
- no-store
|
77
|
+
Content-Length:
|
78
|
+
- '126'
|
79
|
+
Content-Type:
|
80
|
+
- application/json; charset=utf-8
|
81
|
+
Date:
|
82
|
+
- Thu, 25 Jan 2024 13:37:42 GMT
|
83
|
+
Strict-Transport-Security:
|
84
|
+
- max-age=63072000; includeSubDomains
|
85
|
+
X-Xss-Protection:
|
86
|
+
- 1; mode=block
|
87
|
+
body:
|
88
|
+
encoding: UTF-8
|
89
|
+
string: '{"tag":"abtest-option-a","description":"new desc","first-seen":"2021-02-19T00:00:00Z","last-seen":"2024-01-25T12:55:58.293Z"}
|
90
|
+
|
91
|
+
'
|
92
|
+
http_version:
|
93
|
+
recorded_at: Thu, 25 Jan 2024 13:37:42 GMT
|
94
|
+
- request:
|
95
|
+
method: put
|
96
|
+
uri: https://api.mailgun.net/v3/DOMAIN.TEST/tags/abtest-option-a
|
97
|
+
body:
|
98
|
+
encoding: UTF-8
|
99
|
+
string: description=new+description+2
|
100
|
+
headers:
|
101
|
+
Accept:
|
102
|
+
- "*/*"
|
103
|
+
User-Agent:
|
104
|
+
- rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
|
105
|
+
Content-Length:
|
106
|
+
- '29'
|
107
|
+
Content-Type:
|
108
|
+
- application/x-www-form-urlencoded
|
109
|
+
Accept-Encoding:
|
110
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
111
|
+
Host:
|
112
|
+
- api.mailgun.net
|
113
|
+
Authorization:
|
114
|
+
- Basic xxx
|
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
|
+
- '26'
|
128
|
+
Content-Type:
|
129
|
+
- application/json; charset=utf-8
|
130
|
+
Date:
|
131
|
+
- Thu, 25 Jan 2024 13:39:17 GMT
|
132
|
+
Strict-Transport-Security:
|
133
|
+
- max-age=63072000; includeSubDomains
|
134
|
+
X-Xss-Protection:
|
135
|
+
- 1; mode=block
|
136
|
+
body:
|
137
|
+
encoding: UTF-8
|
138
|
+
string: '{"message":"Tag updated"}
|
139
|
+
|
140
|
+
'
|
141
|
+
http_version:
|
142
|
+
recorded_at: Thu, 25 Jan 2024 13:39:17 GMT
|
143
|
+
- request:
|
144
|
+
method: get
|
145
|
+
uri: https://api.mailgun.net/v3/DOMAIN.TEST/tags/abtest-option-a/stats?event=new%20description%202&resolution=day&start=Tue,%2023%20Jan%202024%2011:23:45%20EST
|
146
|
+
body:
|
147
|
+
encoding: US-ASCII
|
148
|
+
string: ''
|
149
|
+
headers:
|
150
|
+
Accept:
|
151
|
+
- "*/*"
|
152
|
+
User-Agent:
|
153
|
+
- rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
|
154
|
+
Accept-Encoding:
|
155
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
156
|
+
Host:
|
157
|
+
- api.mailgun.net
|
158
|
+
Authorization:
|
159
|
+
- Basic xxx
|
160
|
+
response:
|
161
|
+
status:
|
162
|
+
code: 400
|
163
|
+
message: Bad Request
|
164
|
+
headers:
|
165
|
+
Access-Control-Allow-Credentials:
|
166
|
+
- 'true'
|
167
|
+
Access-Control-Allow-Origin:
|
168
|
+
- "*"
|
169
|
+
Cache-Control:
|
170
|
+
- no-store
|
171
|
+
Content-Length:
|
172
|
+
- '53'
|
173
|
+
Content-Type:
|
174
|
+
- application/json; charset=utf-8
|
175
|
+
Date:
|
176
|
+
- Thu, 25 Jan 2024 13:42:54 GMT
|
177
|
+
Strict-Transport-Security:
|
178
|
+
- max-age=63072000; includeSubDomains
|
179
|
+
X-Xss-Protection:
|
180
|
+
- 1; mode=block
|
181
|
+
body:
|
182
|
+
encoding: UTF-8
|
183
|
+
string: '{"message":"event ''new description 2'' is not valid"}
|
184
|
+
|
185
|
+
'
|
186
|
+
http_version:
|
187
|
+
recorded_at: Thu, 25 Jan 2024 13:42:54 GMT
|
188
|
+
- request:
|
189
|
+
method: get
|
190
|
+
uri: https://api.mailgun.net/v3/DOMAIN.TEST/tags/abtest-option-a/stats?event=accepted&resolution=day&start=Tue,%2023%20Jan%202024%2011:23:45%20EST
|
191
|
+
body:
|
192
|
+
encoding: US-ASCII
|
193
|
+
string: ''
|
194
|
+
headers:
|
195
|
+
Accept:
|
196
|
+
- "*/*"
|
197
|
+
User-Agent:
|
198
|
+
- rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
|
199
|
+
Accept-Encoding:
|
200
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
201
|
+
Host:
|
202
|
+
- api.mailgun.net
|
203
|
+
Authorization:
|
204
|
+
- Basic xxx
|
205
|
+
response:
|
206
|
+
status:
|
207
|
+
code: 200
|
208
|
+
message: OK
|
209
|
+
headers:
|
210
|
+
Access-Control-Allow-Credentials:
|
211
|
+
- 'true'
|
212
|
+
Access-Control-Allow-Origin:
|
213
|
+
- "*"
|
214
|
+
Cache-Control:
|
215
|
+
- no-store
|
216
|
+
Content-Length:
|
217
|
+
- '437'
|
218
|
+
Content-Type:
|
219
|
+
- application/json; charset=utf-8
|
220
|
+
Date:
|
221
|
+
- Thu, 25 Jan 2024 13:43:14 GMT
|
222
|
+
Strict-Transport-Security:
|
223
|
+
- max-age=63072000; includeSubDomains
|
224
|
+
X-Xss-Protection:
|
225
|
+
- 1; mode=block
|
226
|
+
body:
|
227
|
+
encoding: UTF-8
|
228
|
+
string: '{"tag":"abtest-option-a","description":"new description 2","start":"Tue,
|
229
|
+
23 Jan 2024 00:00:00 UTC","end":"Thu, 25 Jan 2024 00:00:00 UTC","resolution":"day","stats":[{"time":"Tue,
|
230
|
+
23 Jan 2024 00:00:00 UTC","accepted":{"incoming":0,"outgoing":0,"total":0}},{"time":"Wed,
|
231
|
+
24 Jan 2024 00:00:00 UTC","accepted":{"incoming":0,"outgoing":0,"total":0}},{"time":"Thu,
|
232
|
+
25 Jan 2024 00:00:00 UTC","accepted":{"incoming":0,"outgoing":1,"total":1}}]}
|
233
|
+
|
234
|
+
'
|
235
|
+
http_version:
|
236
|
+
recorded_at: Thu, 25 Jan 2024 13:43:14 GMT
|
237
|
+
- request:
|
238
|
+
method: get
|
239
|
+
uri: https://api.mailgun.net/v3/DOMAIN.TEST/tags/abtest-option-a/stats/aggregates/countries
|
240
|
+
body:
|
241
|
+
encoding: US-ASCII
|
242
|
+
string: ''
|
243
|
+
headers:
|
244
|
+
Accept:
|
245
|
+
- "*/*"
|
246
|
+
User-Agent:
|
247
|
+
- rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
|
248
|
+
Accept-Encoding:
|
249
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
250
|
+
Host:
|
251
|
+
- api.mailgun.net
|
252
|
+
Authorization:
|
253
|
+
- Basic xxx
|
254
|
+
response:
|
255
|
+
status:
|
256
|
+
code: 200
|
257
|
+
message: OK
|
258
|
+
headers:
|
259
|
+
Access-Control-Allow-Credentials:
|
260
|
+
- 'true'
|
261
|
+
Access-Control-Allow-Origin:
|
262
|
+
- "*"
|
263
|
+
Cache-Control:
|
264
|
+
- no-store
|
265
|
+
Content-Type:
|
266
|
+
- application/json; charset=utf-8
|
267
|
+
Date:
|
268
|
+
- Thu, 25 Jan 2024 13:57:02 GMT
|
269
|
+
Strict-Transport-Security:
|
270
|
+
- max-age=63072000; includeSubDomains
|
271
|
+
X-Xss-Protection:
|
272
|
+
- 1; mode=block
|
273
|
+
Transfer-Encoding:
|
274
|
+
- chunked
|
275
|
+
body:
|
276
|
+
encoding: UTF-8
|
277
|
+
string: '{"country":{"ad":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ae":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"af":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ag":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ai":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"al":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"am":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"an":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ao":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"aq":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ar":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"as":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"at":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"au":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"aw":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ax":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"az":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ba":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"bb":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"bd":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"be":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"bf":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"bg":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"bh":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"bi":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"bj":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"bl":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"bm":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"bn":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"bo":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"br":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"bs":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"bt":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"bv":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"bw":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"by":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"bz":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ca":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"cc":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"cd":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"cf":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"cg":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ch":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ci":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ck":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"cl":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"cm":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"cn":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"co":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"cr":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"cu":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"cv":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"cx":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"cy":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"cz":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"de":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"dj":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"dk":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"dm":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"do":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"dz":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ec":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ee":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"eg":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"eh":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"er":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"es":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"et":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"fi":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"fj":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"fk":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"fm":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"fo":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"fr":{"clicked":0,"complained":0,"opened":3,"unique_clicked":0,"unique_opened":2,"unsubscribed":0},"ga":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"gb":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"gd":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ge":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"gf":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"gg":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"gh":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"gi":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"gl":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"gm":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"gn":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"gp":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"gq":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"gr":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"gs":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"gt":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"gu":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"gw":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"gy":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"hk":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"hm":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"hn":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"hr":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ht":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"hu":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"id":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ie":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"il":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"im":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"in":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"io":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"iq":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ir":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"is":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"it":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"je":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"jm":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"jo":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"jp":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ke":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"kg":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"kh":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ki":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"km":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"kn":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"kp":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"kr":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"kw":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ky":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"kz":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"la":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"lb":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"lc":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"li":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"lk":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"lr":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ls":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"lt":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"lu":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"lv":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ly":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ma":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"mc":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"md":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"me":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"mf":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"mg":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"mh":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"mk":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ml":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"mm":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"mn":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"mo":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"mp":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"mq":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"mr":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ms":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"mt":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"mu":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"mv":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"mw":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"mx":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"my":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"mz":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"na":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"nc":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ne":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"nf":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ng":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ni":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"nl":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"no":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"np":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"nr":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"nu":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"nz":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"om":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"pa":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"pe":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"pf":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"pg":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ph":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"pk":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"pl":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"pm":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"pn":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"pr":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ps":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"pt":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"pw":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"py":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"qa":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"re":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ro":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"rs":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ru":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"rw":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"sa":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"sb":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"sc":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"sd":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"se":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"sg":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"sh":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"si":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"sj":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"sk":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"sl":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"sm":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"sn":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"so":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"sr":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ss":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"st":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"sv":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"sy":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"sz":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"tc":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"td":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"tf":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"tg":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"th":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"tj":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"tk":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"tl":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"tm":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"tn":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"to":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"tr":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"tt":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"tv":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"tw":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"tz":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ua":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ug":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"um":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"unknown":{"clicked":0,"complained":0,"opened":15,"unique_clicked":0,"unique_opened":13,"unsubscribed":0},"us":{"clicked":0,"complained":0,"opened":10,"unique_clicked":0,"unique_opened":9,"unsubscribed":0},"uy":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"uz":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"va":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"vc":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ve":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"vg":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"vi":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"vn":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"vu":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"wf":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ws":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ye":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"yt":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"za":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"zm":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"zw":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0}},"tag":"abtest-option-a"}
|
278
|
+
|
279
|
+
'
|
280
|
+
http_version:
|
281
|
+
recorded_at: Thu, 25 Jan 2024 13:57:02 GMT
|
282
|
+
- request:
|
283
|
+
method: get
|
284
|
+
uri: https://api.mailgun.net/v3/DOMAIN.TEST/tags/abtest-option-a/stats/aggregates/providers
|
285
|
+
body:
|
286
|
+
encoding: US-ASCII
|
287
|
+
string: ''
|
288
|
+
headers:
|
289
|
+
Accept:
|
290
|
+
- "*/*"
|
291
|
+
User-Agent:
|
292
|
+
- rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
|
293
|
+
Accept-Encoding:
|
294
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
295
|
+
Host:
|
296
|
+
- api.mailgun.net
|
297
|
+
Authorization:
|
298
|
+
- Basic xxx
|
299
|
+
response:
|
300
|
+
status:
|
301
|
+
code: 200
|
302
|
+
message: OK
|
303
|
+
headers:
|
304
|
+
Access-Control-Allow-Credentials:
|
305
|
+
- 'true'
|
306
|
+
Access-Control-Allow-Origin:
|
307
|
+
- "*"
|
308
|
+
Cache-Control:
|
309
|
+
- no-store
|
310
|
+
Content-Type:
|
311
|
+
- application/json; charset=utf-8
|
312
|
+
Date:
|
313
|
+
- Thu, 25 Jan 2024 14:00:58 GMT
|
314
|
+
Strict-Transport-Security:
|
315
|
+
- max-age=63072000; includeSubDomains
|
316
|
+
X-Xss-Protection:
|
317
|
+
- 1; mode=block
|
318
|
+
Transfer-Encoding:
|
319
|
+
- chunked
|
320
|
+
body:
|
321
|
+
encoding: UTF-8
|
322
|
+
string: '{"provider":{"aol.com":{"accepted":0,"clicked":0,"complained":0,"delivered":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"att.net":{"accepted":0,"clicked":0,"complained":0,"delivered":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"bellsouth.net":{"accepted":0,"clicked":0,"complained":0,"delivered":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"comcast.net":{"accepted":0,"clicked":0,"complained":0,"delivered":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"gmail.com":{"accepted":35,"clicked":0,"complained":0,"delivered":35,"opened":28,"unique_clicked":0,"unique_opened":24,"unsubscribed":0},"hotmail.co.uk":{"accepted":0,"clicked":0,"complained":0,"delivered":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"hotmail.com":{"accepted":0,"clicked":0,"complained":0,"delivered":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"hotmail.fr":{"accepted":0,"clicked":0,"complained":0,"delivered":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"icloud.com":{"accepted":0,"clicked":0,"complained":0,"delivered":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"live.com":{"accepted":0,"clicked":0,"complained":0,"delivered":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"mail.ru":{"accepted":0,"clicked":0,"complained":0,"delivered":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"mailinator.com":{"accepted":0,"clicked":0,"complained":0,"delivered":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"me.com":{"accepted":0,"clicked":0,"complained":0,"delivered":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"msn.com":{"accepted":0,"clicked":0,"complained":0,"delivered":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"orange.fr":{"accepted":0,"clicked":0,"complained":0,"delivered":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"outlook.com":{"accepted":0,"clicked":0,"complained":0,"delivered":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"qq.com":{"accepted":0,"clicked":0,"complained":0,"delivered":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"rocketmail.com":{"accepted":0,"clicked":0,"complained":0,"delivered":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"sbcglobal.net":{"accepted":0,"clicked":0,"complained":0,"delivered":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"seznam.cz":{"accepted":0,"clicked":0,"complained":0,"delivered":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"verizon.net":{"accepted":0,"clicked":0,"complained":0,"delivered":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"yahoo.co.uk":{"accepted":0,"clicked":0,"complained":0,"delivered":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"yahoo.com":{"accepted":0,"clicked":0,"complained":0,"delivered":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"yahoo.com.tw":{"accepted":0,"clicked":0,"complained":0,"delivered":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"yandex.ru":{"accepted":0,"clicked":0,"complained":0,"delivered":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"ymail.com":{"accepted":0,"clicked":0,"complained":0,"delivered":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0}},"tag":"abtest-option-a"}
|
323
|
+
|
324
|
+
'
|
325
|
+
http_version:
|
326
|
+
recorded_at: Thu, 25 Jan 2024 14:00:59 GMT
|
327
|
+
- request:
|
328
|
+
method: get
|
329
|
+
uri: https://api.mailgun.net/v3/DOMAIN.TEST/tags/abtest-option-a/stats/aggregates/devices
|
330
|
+
body:
|
331
|
+
encoding: US-ASCII
|
332
|
+
string: ''
|
333
|
+
headers:
|
334
|
+
Accept:
|
335
|
+
- "*/*"
|
336
|
+
User-Agent:
|
337
|
+
- rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
|
338
|
+
Accept-Encoding:
|
339
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
340
|
+
Host:
|
341
|
+
- api.mailgun.net
|
342
|
+
Authorization:
|
343
|
+
- Basic xxx
|
344
|
+
response:
|
345
|
+
status:
|
346
|
+
code: 200
|
347
|
+
message: OK
|
348
|
+
headers:
|
349
|
+
Access-Control-Allow-Credentials:
|
350
|
+
- 'true'
|
351
|
+
Access-Control-Allow-Origin:
|
352
|
+
- "*"
|
353
|
+
Cache-Control:
|
354
|
+
- no-store
|
355
|
+
Content-Length:
|
356
|
+
- '453'
|
357
|
+
Content-Type:
|
358
|
+
- application/json; charset=utf-8
|
359
|
+
Date:
|
360
|
+
- Thu, 25 Jan 2024 14:02:08 GMT
|
361
|
+
Strict-Transport-Security:
|
362
|
+
- max-age=63072000; includeSubDomains
|
363
|
+
X-Xss-Protection:
|
364
|
+
- 1; mode=block
|
365
|
+
body:
|
366
|
+
encoding: UTF-8
|
367
|
+
string: '{"device":{"desktop":{"clicked":0,"complained":0,"opened":28,"unique_clicked":0,"unique_opened":24,"unsubscribed":0},"mobile":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"tablet":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0},"unknown":{"clicked":0,"complained":0,"opened":0,"unique_clicked":0,"unique_opened":0,"unsubscribed":0}},"tag":"abtest-option-a"}
|
368
|
+
|
369
|
+
'
|
370
|
+
http_version:
|
371
|
+
recorded_at: Thu, 25 Jan 2024 14:02:08 GMT
|
372
|
+
- request:
|
373
|
+
method: delete
|
374
|
+
uri: https://api.mailgun.net/v3/DOMAIN.TEST/tags/abtest-option-a
|
375
|
+
body:
|
376
|
+
encoding: US-ASCII
|
377
|
+
string: ''
|
378
|
+
headers:
|
379
|
+
Accept:
|
380
|
+
- "*/*"
|
381
|
+
User-Agent:
|
382
|
+
- rest-client/2.1.0 (darwin21.6.0 x86_64) ruby/2.5.1p57
|
383
|
+
Accept-Encoding:
|
384
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
385
|
+
Host:
|
386
|
+
- api.mailgun.net
|
387
|
+
Authorization:
|
388
|
+
- Basic xxx
|
389
|
+
response:
|
390
|
+
status:
|
391
|
+
code: 200
|
392
|
+
message: OK
|
393
|
+
headers:
|
394
|
+
Access-Control-Allow-Credentials:
|
395
|
+
- 'true'
|
396
|
+
Access-Control-Allow-Origin:
|
397
|
+
- "*"
|
398
|
+
Cache-Control:
|
399
|
+
- no-store
|
400
|
+
Content-Length:
|
401
|
+
- '26'
|
402
|
+
Content-Type:
|
403
|
+
- application/json; charset=utf-8
|
404
|
+
Date:
|
405
|
+
- Thu, 25 Jan 2024 14:04:30 GMT
|
406
|
+
Strict-Transport-Security:
|
407
|
+
- max-age=63072000; includeSubDomains
|
408
|
+
X-Xss-Protection:
|
409
|
+
- 1; mode=block
|
410
|
+
body:
|
411
|
+
encoding: UTF-8
|
412
|
+
string: '{"message":"Tag deleted"}
|
413
|
+
|
414
|
+
'
|
415
|
+
http_version:
|
416
|
+
recorded_at: Thu, 25 Jan 2024 14:04:30 GMT
|
417
|
+
recorded_with: VCR 3.0.3
|