mailgun-ruby 1.2.15 → 1.3.5
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/.gitignore +1 -0
- data/CHANGELOG.md +52 -3
- data/Gemfile +1 -0
- data/README.md +2 -2
- data/docs/MessageBuilder.md +12 -0
- data/docs/Metrics.md +108 -0
- data/docs/Webhooks.md +4 -2
- data/lib/mailgun/chains.rb +1 -1
- data/lib/mailgun/client.rb +40 -30
- data/lib/mailgun/domains/domains.rb +19 -0
- data/lib/mailgun/events/events.rb +4 -4
- data/lib/mailgun/exceptions/exceptions.rb +7 -7
- data/lib/mailgun/messages/message_builder.rb +14 -2
- data/lib/mailgun/metrics/metrics.rb +61 -0
- data/lib/mailgun/response.rb +11 -10
- data/lib/mailgun/version.rb +1 -1
- data/lib/mailgun.rb +2 -1
- data/mailgun.gemspec +6 -3
- data/spec/integration/domains_spec.rb +95 -92
- data/spec/integration/email_validation_spec.rb +2 -1
- data/spec/integration/list_spec.rb +1 -1
- data/spec/integration/mailer_spec.rb +5 -5
- data/spec/integration/mailgun_spec.rb +14 -12
- data/spec/integration/metrics_spec.rb +218 -0
- data/spec/integration/routes_spec.rb +17 -1
- data/spec/integration/stats_spec.rb +1 -1
- data/spec/integration/unsubscribes_spec.rb +2 -2
- data/spec/integration/webhook_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -0
- data/spec/unit/connection/test_client.rb +1 -1
- data/spec/unit/events/events_spec.rb +1 -1
- data/spec/unit/exceptions/exceptions_spec.rb +3 -3
- data/spec/unit/messages/message_builder_spec.rb +4 -3
- data/vcr_cassettes/bounces.yml +59 -98
- data/vcr_cassettes/complaints.yml +237 -97
- data/vcr_cassettes/domains.yml +332 -763
- data/vcr_cassettes/email_validation.yml +81 -144
- data/vcr_cassettes/events.yml +24 -63
- data/vcr_cassettes/exceptions.yml +49 -2
- data/vcr_cassettes/list_members.yml +187 -179
- data/vcr_cassettes/mailing_list.yml +309 -17
- data/vcr_cassettes/metrics.yml +116 -0
- data/vcr_cassettes/routes.yml +246 -246
- data/vcr_cassettes/send_message.yml +54 -3
- data/vcr_cassettes/stats.yml +28 -24
- data/vcr_cassettes/suppressions.yml +229 -447
- data/vcr_cassettes/unsubscribes.yml +219 -9
- metadata +58 -15
- data/docs/Messages.md +0 -107
- /data/docs/{railgun/Templates.md → Templates.md} +0 -0
data/vcr_cassettes/bounces.yml
CHANGED
@@ -2,174 +2,135 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://api
|
5
|
+
uri: https://api.mailgun.net/bounces
|
6
6
|
body:
|
7
|
-
encoding:
|
8
|
-
string: address=integration-test%2Bemail%
|
7
|
+
encoding: UTF-8
|
8
|
+
string: address=integration-test%2Bemail%40&code=550&error=Integration+Test
|
9
9
|
headers:
|
10
|
+
User-Agent:
|
11
|
+
- mailgun-sdk-ruby/1.3.2
|
10
12
|
Accept:
|
11
|
-
- "
|
12
|
-
|
13
|
-
-
|
14
|
-
Content-Length:
|
15
|
-
- '113'
|
13
|
+
- "*/*"
|
14
|
+
Authorization:
|
15
|
+
- Basic xxx==
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
|
-
|
19
|
-
-
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
20
|
response:
|
21
21
|
status:
|
22
22
|
code: 200
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
|
-
Server:
|
26
|
-
- nginx
|
27
25
|
Date:
|
28
|
-
-
|
29
|
-
Content-Type:
|
30
|
-
- application/json; charset=utf-8
|
26
|
+
- Mon, 24 Feb 2025 23:15:10 GMT
|
31
27
|
Content-Length:
|
32
|
-
- '
|
33
|
-
Connection:
|
34
|
-
- keep-alive
|
35
|
-
Access-Control-Allow-Origin:
|
36
|
-
- "*"
|
37
|
-
Access-Control-Max-Age:
|
38
|
-
- '600'
|
39
|
-
Access-Control-Allow-Methods:
|
40
|
-
- GET, POST, PUT, DELETE, OPTIONS
|
41
|
-
Access-Control-Allow-Headers:
|
42
|
-
- Content-Type, x-requested-with
|
28
|
+
- '0'
|
43
29
|
body:
|
44
30
|
encoding: UTF-8
|
45
|
-
string: '{"address":"integration-test+email@
|
46
|
-
|
31
|
+
string: '{"message":"Address has been added to the bounces table","address":"integration-test+email@"}
|
32
|
+
|
33
|
+
'
|
47
34
|
http_version:
|
48
|
-
recorded_at:
|
35
|
+
recorded_at: Mon, 24 Feb 2025 23:15:10 GMT
|
49
36
|
- request:
|
50
37
|
method: get
|
51
|
-
uri: https://api
|
38
|
+
uri: https://api.mailgun.net/bounces/integration-test+email@
|
52
39
|
body:
|
53
40
|
encoding: US-ASCII
|
54
41
|
string: ''
|
55
42
|
headers:
|
43
|
+
User-Agent:
|
44
|
+
- mailgun-sdk-ruby/1.3.2
|
56
45
|
Accept:
|
57
46
|
- "*/*"
|
47
|
+
Authorization:
|
48
|
+
- Basic xxx==
|
58
49
|
Accept-Encoding:
|
59
|
-
- gzip,
|
60
|
-
User-Agent:
|
61
|
-
- Ruby
|
50
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
62
51
|
response:
|
63
52
|
status:
|
64
53
|
code: 200
|
65
54
|
message: OK
|
66
55
|
headers:
|
67
|
-
Server:
|
68
|
-
- nginx
|
69
56
|
Date:
|
70
|
-
-
|
71
|
-
Content-Type:
|
72
|
-
- application/json; charset=utf-8
|
57
|
+
- Mon, 24 Feb 2025 23:15:11 GMT
|
73
58
|
Content-Length:
|
74
|
-
- '
|
75
|
-
Connection:
|
76
|
-
- keep-alive
|
77
|
-
Access-Control-Allow-Origin:
|
78
|
-
- "*"
|
79
|
-
Access-Control-Max-Age:
|
80
|
-
- '600'
|
81
|
-
Access-Control-Allow-Methods:
|
82
|
-
- GET, POST, PUT, DELETE, OPTIONS
|
83
|
-
Access-Control-Allow-Headers:
|
84
|
-
- Content-Type, x-requested-with
|
59
|
+
- '0'
|
85
60
|
body:
|
86
61
|
encoding: UTF-8
|
87
|
-
string: '{"address":"integration-test+email@
|
88
|
-
Test","created_at":"
|
62
|
+
string: '{"address":"integration-test+email@","code":"550","error":"Integration
|
63
|
+
Test","created_at":"Sun, 26 Jan 2025 07:29:04 UTC"}
|
64
|
+
|
65
|
+
'
|
89
66
|
http_version:
|
90
|
-
recorded_at:
|
67
|
+
recorded_at: Mon, 24 Feb 2025 23:15:11 GMT
|
91
68
|
- request:
|
92
69
|
method: get
|
93
|
-
uri: https://api
|
70
|
+
uri: https://api.mailgun.net/bounces
|
94
71
|
body:
|
95
72
|
encoding: US-ASCII
|
96
73
|
string: ''
|
97
74
|
headers:
|
75
|
+
User-Agent:
|
76
|
+
- mailgun-sdk-ruby/1.3.2
|
98
77
|
Accept:
|
99
78
|
- "*/*"
|
79
|
+
Authorization:
|
80
|
+
- Basic xxx==
|
100
81
|
Accept-Encoding:
|
101
|
-
- gzip,
|
102
|
-
User-Agent:
|
103
|
-
- Ruby
|
82
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
104
83
|
response:
|
105
84
|
status:
|
106
85
|
code: 200
|
107
86
|
message: OK
|
108
87
|
headers:
|
109
|
-
Server:
|
110
|
-
- nginx
|
111
88
|
Date:
|
112
|
-
-
|
113
|
-
Content-Type:
|
114
|
-
- application/json; charset=utf-8
|
89
|
+
- Mon, 24 Feb 2025 23:15:11 GMT
|
115
90
|
Content-Length:
|
116
|
-
- '
|
117
|
-
Connection:
|
118
|
-
- keep-alive
|
119
|
-
Access-Control-Allow-Origin:
|
120
|
-
- "*"
|
121
|
-
Access-Control-Max-Age:
|
122
|
-
- '600'
|
123
|
-
Access-Control-Allow-Methods:
|
124
|
-
- GET, POST, PUT, DELETE, OPTIONS
|
125
|
-
Access-Control-Allow-Headers:
|
126
|
-
- Content-Type, x-requested-with
|
91
|
+
- '0'
|
127
92
|
body:
|
128
93
|
encoding: UTF-8
|
129
94
|
string: '{"items":[{"address":"integration-test+email@DOMAIN.TEST","code":"550","error":"Integration
|
130
|
-
Test","created_at":"
|
95
|
+
Test","created_at":"Sun, 26 Jan 2025 07:29:04 UTC"}],"paging":{"first":"https://api.mailgun.net/v3/DOMAIN.TEST/bounces?limit=100&term=","last":"https://api.mailgun.net/v3/DOMAIN.TEST/bounces?page=last&limit=100&term=","next":"https://api.mailgun.net/v3/DOMAIN.TEST/bounces?page=next&address=integration-test%2Bemail%40DOMAIN.TEST&limit=100&term=","previous":"https://api.mailgun.net/v3/DOMAIN.TEST/bounces?page=previous&address=integration-test%2Bemail%40DOMAIN.TEST&limit=100&term="}}
|
96
|
+
|
97
|
+
'
|
131
98
|
http_version:
|
132
|
-
recorded_at:
|
99
|
+
recorded_at: Mon, 24 Feb 2025 23:15:11 GMT
|
133
100
|
- request:
|
134
101
|
method: delete
|
135
|
-
uri: https://api
|
102
|
+
uri: https://api.mailgun.net/bounces/integration-test+email@
|
136
103
|
body:
|
137
104
|
encoding: US-ASCII
|
138
105
|
string: ''
|
139
106
|
headers:
|
107
|
+
User-Agent:
|
108
|
+
- mailgun-sdk-ruby/1.3.2
|
140
109
|
Accept:
|
141
|
-
- "
|
110
|
+
- "*/*"
|
111
|
+
Authorization:
|
112
|
+
- Basic xxx==
|
142
113
|
Accept-Encoding:
|
143
|
-
- gzip,
|
144
|
-
User-Agent:
|
145
|
-
- Ruby
|
114
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
146
115
|
response:
|
147
116
|
status:
|
148
117
|
code: 200
|
149
118
|
message: OK
|
150
119
|
headers:
|
151
|
-
Server:
|
152
|
-
- nginx
|
153
|
-
Date:
|
154
|
-
- Fri, 08 Jan 2016 20:33:29 GMT
|
155
120
|
Content-Type:
|
156
|
-
-
|
121
|
+
- text/plain; charset=utf-8
|
122
|
+
X-Content-Type-Options:
|
123
|
+
- nosniff
|
124
|
+
Date:
|
125
|
+
- Mon, 24 Feb 2025 23:15:12 GMT
|
157
126
|
Content-Length:
|
158
|
-
- '
|
159
|
-
Connection:
|
160
|
-
- keep-alive
|
161
|
-
Access-Control-Allow-Origin:
|
162
|
-
- "*"
|
163
|
-
Access-Control-Max-Age:
|
164
|
-
- '600'
|
165
|
-
Access-Control-Allow-Methods:
|
166
|
-
- GET, POST, PUT, DELETE, OPTIONS
|
167
|
-
Access-Control-Allow-Headers:
|
168
|
-
- Content-Type, x-requested-with
|
127
|
+
- '19'
|
169
128
|
body:
|
170
129
|
encoding: UTF-8
|
171
130
|
string: '{"address":"integration-test+email@DOMAIN.TEST","message":"Bounced
|
172
|
-
address has been removed"}
|
131
|
+
address has been removed"}
|
132
|
+
|
133
|
+
'
|
173
134
|
http_version:
|
174
|
-
recorded_at:
|
175
|
-
recorded_with: VCR 3.0.
|
135
|
+
recorded_at: Sun, 26 Jan 2025 07:29:06 GMT
|
136
|
+
recorded_with: VCR 3.0.3
|
@@ -2,174 +2,314 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://api
|
5
|
+
uri: https://api.mailgun.net/complaints
|
6
6
|
body:
|
7
|
-
encoding:
|
8
|
-
string: address=integration-test-email%
|
7
|
+
encoding: UTF-8
|
8
|
+
string: address=integration-test-email%40
|
9
9
|
headers:
|
10
|
+
User-Agent:
|
11
|
+
- mailgun-sdk-ruby/1.3.2
|
10
12
|
Accept:
|
11
|
-
- "
|
12
|
-
|
13
|
-
-
|
14
|
-
Content-Length:
|
15
|
-
- '79'
|
13
|
+
- "*/*"
|
14
|
+
Authorization:
|
15
|
+
- Basic xxx==
|
16
16
|
Content-Type:
|
17
17
|
- application/x-www-form-urlencoded
|
18
|
-
|
19
|
-
-
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
20
|
response:
|
21
21
|
status:
|
22
22
|
code: 200
|
23
23
|
message: OK
|
24
24
|
headers:
|
25
|
-
Server:
|
26
|
-
- nginx
|
27
25
|
Date:
|
28
|
-
-
|
29
|
-
Content-Type:
|
30
|
-
- application/json; charset=utf-8
|
26
|
+
- Mon, 24 Feb 2025 23:26:19 GMT
|
31
27
|
Content-Length:
|
32
|
-
- '
|
33
|
-
Connection:
|
34
|
-
- keep-alive
|
35
|
-
Access-Control-Allow-Origin:
|
36
|
-
- "*"
|
37
|
-
Access-Control-Max-Age:
|
38
|
-
- '600'
|
39
|
-
Access-Control-Allow-Methods:
|
40
|
-
- GET, POST, PUT, DELETE, OPTIONS
|
41
|
-
Access-Control-Allow-Headers:
|
42
|
-
- Content-Type, x-requested-with
|
28
|
+
- '0'
|
43
29
|
body:
|
44
30
|
encoding: UTF-8
|
45
|
-
string: '{"address":"integration-test-email@
|
46
|
-
|
47
|
-
|
48
|
-
|
31
|
+
string: '{"address":"integration-test-email@","message":"Address has been added
|
32
|
+
to the complaints table"}
|
33
|
+
|
34
|
+
'
|
35
|
+
http_version:
|
36
|
+
recorded_at: Mon, 24 Feb 2025 23:26:19 GMT
|
49
37
|
- request:
|
50
38
|
method: get
|
51
|
-
uri: https://api
|
39
|
+
uri: https://api.mailgun.net/complaints/integration-test-email@
|
52
40
|
body:
|
53
41
|
encoding: US-ASCII
|
54
42
|
string: ''
|
55
43
|
headers:
|
44
|
+
User-Agent:
|
45
|
+
- mailgun-sdk-ruby/1.3.2
|
56
46
|
Accept:
|
57
47
|
- "*/*"
|
48
|
+
Authorization:
|
49
|
+
- Basic xxx==
|
58
50
|
Accept-Encoding:
|
59
|
-
- gzip,
|
51
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
52
|
+
response:
|
53
|
+
status:
|
54
|
+
code: 200
|
55
|
+
message: OK
|
56
|
+
headers:
|
57
|
+
Date:
|
58
|
+
- Mon, 24 Feb 2025 23:26:20 GMT
|
59
|
+
Content-Length:
|
60
|
+
- '0'
|
61
|
+
body:
|
62
|
+
encoding: UTF-8
|
63
|
+
string: '{"address":"integration-test-email@","created_at":"Sun, 26 Jan 2025
|
64
|
+
07:29:06 UTC"}
|
65
|
+
|
66
|
+
'
|
67
|
+
http_version:
|
68
|
+
recorded_at: Mon, 24 Feb 2025 23:26:20 GMT
|
69
|
+
- request:
|
70
|
+
method: get
|
71
|
+
uri: https://api.mailgun.net/complaints
|
72
|
+
body:
|
73
|
+
encoding: US-ASCII
|
74
|
+
string: ''
|
75
|
+
headers:
|
60
76
|
User-Agent:
|
61
|
-
-
|
77
|
+
- mailgun-sdk-ruby/1.3.2
|
78
|
+
Accept:
|
79
|
+
- "*/*"
|
80
|
+
Authorization:
|
81
|
+
- Basic xxx
|
82
|
+
Accept-Encoding:
|
83
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
62
84
|
response:
|
63
85
|
status:
|
64
86
|
code: 200
|
65
87
|
message: OK
|
66
88
|
headers:
|
67
|
-
Server:
|
68
|
-
- nginx
|
69
89
|
Date:
|
70
|
-
-
|
90
|
+
- Mon, 24 Feb 2025 23:26:20 GMT
|
91
|
+
Content-Length:
|
92
|
+
- '0'
|
93
|
+
body:
|
94
|
+
encoding: UTF-8
|
95
|
+
string: '{"items":[{"address":"integration-test-email@DOMAIN.TEST","created_at":"Sun,
|
96
|
+
26 Jan 2025 07:29:06 UTC"}],"paging":{"first":"https://api.mailgun.net/v3/DOMAIN.TEST/complaints?limit=100&term=","last":"https://api.mailgun.net/v3/DOMAIN.TEST/complaints?page=last&limit=100&term=","next":"https://api.mailgun.net/v3/DOMAIN.TEST/complaints?page=next&address=integration-test-email%40DOMAIN.TEST&limit=100&term=","previous":"https://api.mailgun.net/v3/DOMAIN.TEST/complaints?page=previous&address=integration-test-email%40DOMAIN.TEST&limit=100&term="}}
|
97
|
+
|
98
|
+
'
|
99
|
+
http_version:
|
100
|
+
recorded_at: Mon, 24 Feb 2025 23:26:20 GMT
|
101
|
+
- request:
|
102
|
+
method: delete
|
103
|
+
uri: https://api.mailgun.net/complaints/integration-test-email@
|
104
|
+
body:
|
105
|
+
encoding: US-ASCII
|
106
|
+
string: ''
|
107
|
+
headers:
|
108
|
+
User-Agent:
|
109
|
+
- mailgun-sdk-ruby/1.3.2
|
110
|
+
Accept:
|
111
|
+
- "*/*"
|
112
|
+
Authorization:
|
113
|
+
- Basic xxx==
|
114
|
+
Accept-Encoding:
|
115
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
116
|
+
response:
|
117
|
+
status:
|
118
|
+
code: 200
|
119
|
+
message: OK
|
120
|
+
headers:
|
71
121
|
Content-Type:
|
72
|
-
-
|
122
|
+
- text/plain; charset=utf-8
|
123
|
+
X-Content-Type-Options:
|
124
|
+
- nosniff
|
125
|
+
Date:
|
126
|
+
- Mon, 24 Feb 2025 23:26:21 GMT
|
73
127
|
Content-Length:
|
74
|
-
- '
|
75
|
-
|
76
|
-
|
128
|
+
- '19'
|
129
|
+
body:
|
130
|
+
encoding: UTF-8
|
131
|
+
string: '{"address":"integration-test-email@","message":"Spam complaint has
|
132
|
+
been removed"}
|
133
|
+
|
134
|
+
'
|
135
|
+
http_version:
|
136
|
+
recorded_at: Fri, 08 Jan 2016 20:32:00 GMT
|
137
|
+
- request:
|
138
|
+
method: post
|
139
|
+
uri: https://api.mailgun.net/v3/DOMAIN.TEST/complaints
|
140
|
+
body:
|
141
|
+
encoding: UTF-8
|
142
|
+
string: address=integration-test-email%40DOMAIN.TEST
|
143
|
+
headers:
|
144
|
+
User-Agent:
|
145
|
+
- mailgun-sdk-ruby/1.3.0
|
146
|
+
Accept:
|
147
|
+
- "*/*"
|
148
|
+
Authorization:
|
149
|
+
- Basic xxx==
|
150
|
+
Content-Type:
|
151
|
+
- application/x-www-form-urlencoded
|
152
|
+
Accept-Encoding:
|
153
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
154
|
+
response:
|
155
|
+
status:
|
156
|
+
code: 200
|
157
|
+
message: OK
|
158
|
+
headers:
|
159
|
+
Access-Control-Allow-Credentials:
|
160
|
+
- 'true'
|
77
161
|
Access-Control-Allow-Origin:
|
78
162
|
- "*"
|
79
|
-
|
80
|
-
-
|
81
|
-
|
82
|
-
-
|
83
|
-
|
84
|
-
-
|
163
|
+
Cache-Control:
|
164
|
+
- no-store
|
165
|
+
Content-Length:
|
166
|
+
- '40'
|
167
|
+
Content-Type:
|
168
|
+
- application/json; charset=utf-8
|
169
|
+
Date:
|
170
|
+
- Tue, 25 Feb 2025 01:31:44 GMT
|
171
|
+
Strict-Transport-Security:
|
172
|
+
- max-age=63072000; includeSubDomains
|
173
|
+
X-Xss-Protection:
|
174
|
+
- 1; mode=block
|
85
175
|
body:
|
86
176
|
encoding: UTF-8
|
87
|
-
string: '{"address":"integration-test-email@DOMAIN.TEST","
|
88
|
-
|
89
|
-
|
90
|
-
|
177
|
+
string: '{"address":"integration-test-email@DOMAIN.TEST","message":"Address
|
178
|
+
has been added to the complaints table"}
|
179
|
+
|
180
|
+
'
|
181
|
+
http_version:
|
182
|
+
recorded_at: Tue, 25 Feb 2025 01:31:44 GMT
|
91
183
|
- request:
|
92
184
|
method: get
|
93
|
-
uri: https://api
|
185
|
+
uri: https://api.mailgun.net/v3/DOMAIN.TEST/complaints/integration-test-email@DOMAIN.TEST
|
94
186
|
body:
|
95
187
|
encoding: US-ASCII
|
96
188
|
string: ''
|
97
189
|
headers:
|
190
|
+
User-Agent:
|
191
|
+
- mailgun-sdk-ruby/1.3.2
|
98
192
|
Accept:
|
99
193
|
- "*/*"
|
194
|
+
Authorization:
|
195
|
+
- Basic xxx==
|
100
196
|
Accept-Encoding:
|
101
|
-
- gzip,
|
102
|
-
User-Agent:
|
103
|
-
- Ruby
|
197
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
104
198
|
response:
|
105
199
|
status:
|
106
200
|
code: 200
|
107
201
|
message: OK
|
108
202
|
headers:
|
109
|
-
|
110
|
-
-
|
111
|
-
|
112
|
-
-
|
203
|
+
Access-Control-Allow-Credentials:
|
204
|
+
- 'true'
|
205
|
+
Access-Control-Allow-Origin:
|
206
|
+
- "*"
|
207
|
+
Cache-Control:
|
208
|
+
- no-store
|
209
|
+
Content-Length:
|
210
|
+
- '134'
|
113
211
|
Content-Type:
|
114
212
|
- application/json; charset=utf-8
|
115
|
-
|
116
|
-
-
|
117
|
-
|
118
|
-
-
|
213
|
+
Date:
|
214
|
+
- Sun, 26 Jan 2025 07:29:07 GMT
|
215
|
+
Strict-Transport-Security:
|
216
|
+
- max-age=63072000; includeSubDomains
|
217
|
+
X-Xss-Protection:
|
218
|
+
- 1; mode=block
|
219
|
+
body:
|
220
|
+
encoding: UTF-8
|
221
|
+
string: '{"address":"integration-test-email@DOMAIN.TEST","created_at":"Sun,
|
222
|
+
26 Jan 2025 07:29:06 UTC"}
|
223
|
+
|
224
|
+
'
|
225
|
+
http_version:
|
226
|
+
recorded_at: Sun, 26 Jan 2025 07:29:07 GMT
|
227
|
+
- request:
|
228
|
+
method: get
|
229
|
+
uri: https://api.mailgun.net/v3/DOMAIN.TEST/complaints
|
230
|
+
body:
|
231
|
+
encoding: US-ASCII
|
232
|
+
string: ''
|
233
|
+
headers:
|
234
|
+
User-Agent:
|
235
|
+
- mailgun-sdk-ruby/1.3.0
|
236
|
+
Accept:
|
237
|
+
- "*/*"
|
238
|
+
Authorization:
|
239
|
+
- Basic xxx==
|
240
|
+
Accept-Encoding:
|
241
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
242
|
+
response:
|
243
|
+
status:
|
244
|
+
code: 200
|
245
|
+
message: OK
|
246
|
+
headers:
|
247
|
+
Access-Control-Allow-Credentials:
|
248
|
+
- 'true'
|
119
249
|
Access-Control-Allow-Origin:
|
120
250
|
- "*"
|
121
|
-
|
122
|
-
-
|
123
|
-
|
124
|
-
-
|
125
|
-
|
126
|
-
-
|
251
|
+
Cache-Control:
|
252
|
+
- no-store
|
253
|
+
Content-Length:
|
254
|
+
- '826'
|
255
|
+
Content-Type:
|
256
|
+
- application/json; charset=utf-8
|
257
|
+
Date:
|
258
|
+
- Sun, 26 Jan 2025 07:29:08 GMT
|
259
|
+
Strict-Transport-Security:
|
260
|
+
- max-age=63072000; includeSubDomains
|
261
|
+
X-Xss-Protection:
|
262
|
+
- 1; mode=block
|
127
263
|
body:
|
128
264
|
encoding: UTF-8
|
129
|
-
string: '{"items":[{"address":"integration-test-email@DOMAIN.TEST","created_at":"
|
130
|
-
|
131
|
-
|
132
|
-
|
265
|
+
string: '{"items":[{"address":"integration-test-email@DOMAIN.TEST","created_at":"Sun,
|
266
|
+
26 Jan 2025 07:29:06 UTC"}],"paging":{"first":"https://api.mailgun.net/v3/DOMAIN.TEST/complaints?limit=100&term=","last":"https://api.mailgun.net/v3/DOMAIN.TEST/complaints?page=last&limit=100&term=","next":"https://api.mailgun.net/v3/DOMAIN.TEST/complaints?page=next&address=integration-test-email%40DOMAIN.TEST&limit=100&term=","previous":"https://api.mailgun.net/v3/DOMAIN.TEST/complaints?page=previous&address=integration-test-email%40DOMAIN.TEST&limit=100&term="}}
|
267
|
+
|
268
|
+
'
|
269
|
+
http_version:
|
270
|
+
recorded_at: Sun, 26 Jan 2025 07:29:08 GMT
|
133
271
|
- request:
|
134
272
|
method: delete
|
135
|
-
uri: https://api
|
273
|
+
uri: https://api.mailgun.net/v3/DOMAIN.TEST/complaints/integration-test-email@DOMAIN.TEST
|
136
274
|
body:
|
137
275
|
encoding: US-ASCII
|
138
276
|
string: ''
|
139
277
|
headers:
|
278
|
+
User-Agent:
|
279
|
+
- mailgun-sdk-ruby/1.3.2
|
140
280
|
Accept:
|
141
|
-
- "
|
281
|
+
- "*/*"
|
282
|
+
Authorization:
|
283
|
+
- Basic xxx==
|
142
284
|
Accept-Encoding:
|
143
|
-
- gzip,
|
144
|
-
User-Agent:
|
145
|
-
- Ruby
|
285
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
146
286
|
response:
|
147
287
|
status:
|
148
288
|
code: 200
|
149
289
|
message: OK
|
150
290
|
headers:
|
151
|
-
|
152
|
-
-
|
153
|
-
Date:
|
154
|
-
- Fri, 08 Jan 2016 20:31:59 GMT
|
155
|
-
Content-Type:
|
156
|
-
- application/json; charset=utf-8
|
157
|
-
Content-Length:
|
158
|
-
- '127'
|
159
|
-
Connection:
|
160
|
-
- keep-alive
|
291
|
+
Access-Control-Allow-Credentials:
|
292
|
+
- 'true'
|
161
293
|
Access-Control-Allow-Origin:
|
162
294
|
- "*"
|
163
|
-
|
164
|
-
-
|
165
|
-
|
166
|
-
-
|
167
|
-
|
168
|
-
-
|
295
|
+
Cache-Control:
|
296
|
+
- no-store
|
297
|
+
Content-Length:
|
298
|
+
- '133'
|
299
|
+
Content-Type:
|
300
|
+
- application/json; charset=utf-8
|
301
|
+
Date:
|
302
|
+
- Sun, 26 Jan 2025 07:29:08 GMT
|
303
|
+
Strict-Transport-Security:
|
304
|
+
- max-age=63072000; includeSubDomains
|
305
|
+
X-Xss-Protection:
|
306
|
+
- 1; mode=block
|
169
307
|
body:
|
170
308
|
encoding: UTF-8
|
171
309
|
string: '{"address":"integration-test-email@DOMAIN.TEST","message":"Spam complaint
|
172
|
-
has been removed"}
|
173
|
-
|
174
|
-
|
175
|
-
|
310
|
+
has been removed"}
|
311
|
+
|
312
|
+
'
|
313
|
+
http_version:
|
314
|
+
recorded_at: Tue, 25 Feb 2025 01:31:45 GMT
|
315
|
+
recorded_with: VCR 3.0.3
|