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.
@@ -0,0 +1,270 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.mailgun.net/v5/accounts/subaccounts
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ User-Agent:
13
+ - rest-client/2.1.0 (darwin22 x86_64) ruby/2.7.4p191
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-Disposition:
32
+ - inline
33
+ Content-Length:
34
+ - '706'
35
+ Content-Type:
36
+ - application/json
37
+ Date:
38
+ - Mon, 20 Nov 2023 15:30:55 GMT
39
+ Server:
40
+ - TwistedWeb/23.10.0
41
+ Strict-Transport-Security:
42
+ - max-age=63072000; includeSubDomains
43
+ X-Mailgun-Key-Id:
44
+ - 1c7e8847-e7fad6d2
45
+ X-Xss-Protection:
46
+ - 1; mode=block
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"subaccounts":[{"id":"xxx","name":"test-ruby-lib","status":"open"}],"total":1}
50
+
51
+ '
52
+ http_version:
53
+ recorded_at: Mon, 20 Nov 2023 15:30:55 GMT
54
+ - request:
55
+ method: post
56
+ uri: https://api.mailgun.net/v5/accounts/subaccounts
57
+ body:
58
+ encoding: UTF-8
59
+ string: name=test.subaccount
60
+ headers:
61
+ Accept:
62
+ - "*/*"
63
+ User-Agent:
64
+ - rest-client/2.1.0 (darwin22 x86_64) ruby/2.7.4p191
65
+ Content-Length:
66
+ - '20'
67
+ Content-Type:
68
+ - application/x-www-form-urlencoded
69
+ Accept-Encoding:
70
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
71
+ Host:
72
+ - api.mailgun.net
73
+ Authorization:
74
+ - Basic xxx
75
+ response:
76
+ status:
77
+ code: 200
78
+ message: OK
79
+ headers:
80
+ Access-Control-Allow-Credentials:
81
+ - 'true'
82
+ Access-Control-Allow-Origin:
83
+ - "*"
84
+ Cache-Control:
85
+ - no-store
86
+ Content-Disposition:
87
+ - inline
88
+ Content-Length:
89
+ - '90'
90
+ Content-Type:
91
+ - application/json
92
+ Date:
93
+ - Mon, 20 Nov 2023 15:33:05 GMT
94
+ Server:
95
+ - TwistedWeb/23.10.0
96
+ Strict-Transport-Security:
97
+ - max-age=63072000; includeSubDomains
98
+ X-Mailgun-Key-Id:
99
+ - 1c7e8847-e7fad6d2
100
+ X-Xss-Protection:
101
+ - 1; mode=block
102
+ body:
103
+ encoding: UTF-8
104
+ string: '{"subaccount":{"id":"xxx","name":"test.subaccount","status":"open"}}
105
+
106
+ '
107
+ http_version:
108
+ recorded_at: Mon, 20 Nov 2023 15:33:05 GMT
109
+ - request:
110
+ method: get
111
+ uri: https://api.mailgun.net/v5/accounts/subaccounts/xxx
112
+ body:
113
+ encoding: US-ASCII
114
+ string: ''
115
+ headers:
116
+ Accept:
117
+ - "*/*"
118
+ User-Agent:
119
+ - rest-client/2.1.0 (darwin22 x86_64) ruby/2.7.4p191
120
+ Accept-Encoding:
121
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
122
+ Host:
123
+ - api.mailgun.net
124
+ Authorization:
125
+ - Basic xxx
126
+ response:
127
+ status:
128
+ code: 200
129
+ message: OK
130
+ headers:
131
+ Access-Control-Allow-Credentials:
132
+ - 'true'
133
+ Access-Control-Allow-Origin:
134
+ - "*"
135
+ Cache-Control:
136
+ - no-store
137
+ Content-Disposition:
138
+ - inline
139
+ Content-Length:
140
+ - '88'
141
+ Content-Type:
142
+ - application/json
143
+ Date:
144
+ - Mon, 20 Nov 2023 15:33:06 GMT
145
+ Server:
146
+ - TwistedWeb/23.10.0
147
+ Strict-Transport-Security:
148
+ - max-age=63072000; includeSubDomains
149
+ X-Mailgun-Key-Id:
150
+ - 1c7e8847-e7fad6d2
151
+ X-Xss-Protection:
152
+ - 1; mode=block
153
+ body:
154
+ encoding: UTF-8
155
+ string: '{"subaccount":{"id":"xxx","name":"test-ruby-lib","status":"open"}}
156
+
157
+ '
158
+ http_version:
159
+ recorded_at: Mon, 20 Nov 2023 15:33:06 GMT
160
+ - request:
161
+ method: post
162
+ uri: https://api.mailgun.net/v5/accounts/subaccounts/xxx/enable
163
+ body:
164
+ encoding: US-ASCII
165
+ string: ''
166
+ headers:
167
+ Accept:
168
+ - "*/*"
169
+ User-Agent:
170
+ - rest-client/2.1.0 (darwin22 x86_64) ruby/2.7.4p191
171
+ Content-Length:
172
+ - '0'
173
+ Content-Type:
174
+ - application/x-www-form-urlencoded
175
+ Accept-Encoding:
176
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
177
+ Host:
178
+ - api.mailgun.net
179
+ Authorization:
180
+ - Basic xxx
181
+ response:
182
+ status:
183
+ code: 200
184
+ message: OK
185
+ headers:
186
+ Access-Control-Allow-Credentials:
187
+ - 'true'
188
+ Access-Control-Allow-Origin:
189
+ - "*"
190
+ Cache-Control:
191
+ - no-store
192
+ Content-Disposition:
193
+ - inline
194
+ Content-Length:
195
+ - '88'
196
+ Content-Type:
197
+ - application/json
198
+ Date:
199
+ - Mon, 20 Nov 2023 15:33:06 GMT
200
+ Server:
201
+ - TwistedWeb/23.10.0
202
+ Strict-Transport-Security:
203
+ - max-age=63072000; includeSubDomains
204
+ X-Mailgun-Key-Id:
205
+ - 1c7e8847-e7fad6d2
206
+ X-Xss-Protection:
207
+ - 1; mode=block
208
+ body:
209
+ encoding: UTF-8
210
+ string: '{"subaccount":{"id":"xxx","name":"test-ruby-lib","status":"open"}}
211
+
212
+ '
213
+ http_version:
214
+ recorded_at: Mon, 20 Nov 2023 15:33:06 GMT
215
+ - request:
216
+ method: post
217
+ uri: https://api.mailgun.net/v5/accounts/subaccounts/xxx/disable
218
+ body:
219
+ encoding: US-ASCII
220
+ string: ''
221
+ headers:
222
+ Accept:
223
+ - "*/*"
224
+ User-Agent:
225
+ - rest-client/2.1.0 (darwin22 x86_64) ruby/2.7.4p191
226
+ Content-Length:
227
+ - '0'
228
+ Content-Type:
229
+ - application/x-www-form-urlencoded
230
+ Accept-Encoding:
231
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
232
+ Host:
233
+ - api.mailgun.net
234
+ Authorization:
235
+ - Basic xxx
236
+ response:
237
+ status:
238
+ code: 200
239
+ message: OK
240
+ headers:
241
+ Access-Control-Allow-Credentials:
242
+ - 'true'
243
+ Access-Control-Allow-Origin:
244
+ - "*"
245
+ Cache-Control:
246
+ - no-store
247
+ Content-Disposition:
248
+ - inline
249
+ Content-Length:
250
+ - '92'
251
+ Content-Type:
252
+ - application/json
253
+ Date:
254
+ - Mon, 20 Nov 2023 15:33:07 GMT
255
+ Server:
256
+ - TwistedWeb/23.10.0
257
+ Strict-Transport-Security:
258
+ - max-age=63072000; includeSubDomains
259
+ X-Mailgun-Key-Id:
260
+ - 1c7e8847-e7fad6d2
261
+ X-Xss-Protection:
262
+ - 1; mode=block
263
+ body:
264
+ encoding: UTF-8
265
+ string: '{"subaccount":{"id":"xxx","name":"test-ruby-lib","status":"disabled"}}
266
+
267
+ '
268
+ http_version:
269
+ recorded_at: Mon, 20 Nov 2023 15:33:08 GMT
270
+ recorded_with: VCR 3.0.3