deepl-rb 2.4.0 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +7 -4
  3. data/README.md +94 -0
  4. data/VERSION +1 -1
  5. data/deepl-rb.gemspec +24 -4
  6. data/lib/deepl/exceptions/not_found.rb +13 -0
  7. data/lib/deepl/glossary_api.rb +35 -0
  8. data/lib/deepl/requests/base.rb +21 -4
  9. data/lib/deepl/requests/glossary/create.rb +45 -0
  10. data/lib/deepl/requests/glossary/destroy.rb +30 -0
  11. data/lib/deepl/requests/glossary/entries.rb +30 -0
  12. data/lib/deepl/requests/glossary/find.rb +31 -0
  13. data/lib/deepl/requests/glossary/language_pairs.rb +31 -0
  14. data/lib/deepl/requests/glossary/list.rb +30 -0
  15. data/lib/deepl/resources/glossary.rb +25 -0
  16. data/lib/deepl/resources/language_pair.rb +20 -0
  17. data/lib/deepl.rb +15 -0
  18. data/spec/api/deepl_spec.rb +189 -0
  19. data/spec/fixtures/vcr_cassettes/deepl_glossaries.yml +374 -0
  20. data/spec/fixtures/vcr_cassettes/deepl_languages.yml +3 -1
  21. data/spec/fixtures/vcr_cassettes/deepl_translate.yml +212 -1
  22. data/spec/fixtures/vcr_cassettes/deepl_usage.yml +3 -1
  23. data/spec/fixtures/vcr_cassettes/glossaries.yml +480 -0
  24. data/spec/fixtures/vcr_cassettes/languages.yml +9 -3
  25. data/spec/fixtures/vcr_cassettes/translate_texts.yml +340 -322
  26. data/spec/fixtures/vcr_cassettes/usage.yml +3 -1
  27. data/spec/requests/glossary/create_spec.rb +55 -0
  28. data/spec/requests/glossary/destroy_spec.rb +50 -0
  29. data/spec/requests/glossary/entries_spec.rb +48 -0
  30. data/spec/requests/glossary/find_spec.rb +54 -0
  31. data/spec/requests/glossary/language_pairs_spec.rb +30 -0
  32. data/spec/requests/glossary/list_spec.rb +44 -0
  33. data/spec/resources/glossary_spec.rb +35 -0
  34. data/spec/resources/language_pair_spec.rb +20 -0
  35. data/spec/spec_helper.rb +2 -2
  36. metadata +23 -3
@@ -1,325 +1,343 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: post
5
- uri: https://api-free.deepl.com/v2/translate?auth_key=VALID_TOKEN
6
- body:
7
- encoding: US-ASCII
8
- string: text=Sample+text&source_lang=EN&target_lang=ES
9
- headers:
10
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- Content-Type:
17
- - application/x-www-form-urlencoded
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- Server:
24
- - nginx
25
- Date:
26
- - Mon, 17 May 2021 14:20:14 GMT
27
- Content-Type:
28
- - application/json
29
- Content-Length:
30
- - '78'
31
- Connection:
32
- - keep-alive
33
- Access-Control-Allow-Origin:
34
- - "*"
35
- body:
36
- encoding: UTF-8
37
- string: '{"translations":[{"detected_source_language":"EN","text":"Texto de
38
- muestra"}]}'
39
- recorded_at: Mon, 17 May 2021 14:20:14 GMT
40
- - request:
41
- method: post
42
- uri: https://api-free.deepl.com/v2/translate?auth_key=VALID_TOKEN
43
- body:
44
- encoding: US-ASCII
45
- string: text=Sample&text=Word&source_lang=EN&target_lang=ES
46
- headers:
47
- Accept-Encoding:
48
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
49
- Accept:
50
- - "*/*"
51
- User-Agent:
52
- - Ruby
53
- Content-Type:
54
- - application/x-www-form-urlencoded
55
- response:
56
- status:
57
- code: 200
58
- message: OK
59
- headers:
60
- Server:
61
- - nginx
62
- Date:
63
- - Mon, 17 May 2021 14:20:14 GMT
64
- Content-Type:
65
- - application/json
66
- Content-Length:
67
- - '120'
68
- Connection:
69
- - keep-alive
70
- Access-Control-Allow-Origin:
71
- - "*"
72
- body:
73
- encoding: UTF-8
74
- string: '{"translations":[{"detected_source_language":"EN","text":"Muestra"},{"detected_source_language":"EN","text":"Palabra"}]}'
75
- recorded_at: Mon, 17 May 2021 14:20:14 GMT
76
- - request:
77
- method: post
78
- uri: https://api-free.deepl.com/v2/translate?auth_key=VALID_TOKEN&tag_handling=xml
79
- body:
80
- encoding: US-ASCII
81
- string: text=%3Cp%3ESample+text%3C%2Fp%3E&source_lang=EN&target_lang=ES
82
- headers:
83
- Accept-Encoding:
84
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
85
- Accept:
86
- - "*/*"
87
- User-Agent:
88
- - Ruby
89
- Content-Type:
90
- - application/x-www-form-urlencoded
91
- response:
92
- status:
93
- code: 200
94
- message: OK
95
- headers:
96
- Server:
97
- - nginx
98
- Date:
99
- - Mon, 17 May 2021 14:20:15 GMT
100
- Content-Type:
101
- - application/json
102
- Content-Length:
103
- - '85'
104
- Connection:
105
- - keep-alive
106
- Access-Control-Allow-Origin:
107
- - "*"
108
- body:
109
- encoding: UTF-8
110
- string: '{"translations":[{"detected_source_language":"EN","text":"<p>Texto
111
- de muestra</p>"}]}'
112
- recorded_at: Mon, 17 May 2021 14:20:15 GMT
113
- - request:
114
- method: post
115
- uri: https://api-free.deepl.com/v2/translate?auth_key=VALID_TOKEN&ignore_tags=code,span
116
- body:
117
- encoding: US-ASCII
118
- string: text=Welcome+and+%3Ccode%3EHello+great+World%3C%2Fcode%3E+Good+Morning%21&source_lang=EN&target_lang=ES
119
- headers:
120
- Accept-Encoding:
121
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
122
- Accept:
123
- - "*/*"
124
- User-Agent:
125
- - Ruby
126
- Content-Type:
127
- - application/x-www-form-urlencoded
128
- response:
129
- status:
130
- code: 200
131
- message: OK
132
- headers:
133
- Server:
134
- - nginx
135
- Date:
136
- - Mon, 17 May 2021 14:20:16 GMT
137
- Content-Type:
138
- - application/json
139
- Content-Length:
140
- - '119'
141
- Connection:
142
- - keep-alive
143
- Access-Control-Allow-Origin:
144
- - "*"
145
- body:
146
- encoding: ASCII-8BIT
147
- string: !binary |-
148
- eyJ0cmFuc2xhdGlvbnMiOlt7ImRldGVjdGVkX3NvdXJjZV9sYW5ndWFnZSI6IkVOIiwidGV4dCI6IkJpZW52ZW5pZG8geSA8Y29kZT5Ib2xhIGdyYW4gbXVuZG88L2NvZGU+IMKhQnVlbm9zIGTDrWFzISJ9XX0=
149
- recorded_at: Mon, 17 May 2021 14:20:16 GMT
150
- - request:
151
- method: post
152
- uri: https://api-free.deepl.com/v2/translate?auth_key=invalid
153
- body:
154
- encoding: US-ASCII
155
- string: text=Sample+text&source_lang=EN&target_lang=ES
156
- headers:
157
- Accept-Encoding:
158
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
159
- Accept:
160
- - "*/*"
161
- User-Agent:
162
- - Ruby
163
- Content-Type:
164
- - application/x-www-form-urlencoded
165
- response:
166
- status:
167
- code: 403
168
- message: Forbidden
169
- headers:
170
- Server:
171
- - nginx
172
- Date:
173
- - Mon, 17 May 2021 14:20:16 GMT
174
- Content-Length:
175
- - '0'
176
- Connection:
177
- - keep-alive
178
- Access-Control-Allow-Origin:
179
- - "*"
180
- body:
181
- encoding: UTF-8
182
- string: ''
183
- recorded_at: Mon, 17 May 2021 14:20:16 GMT
184
- - request:
185
- method: post
186
- uri: https://api-free.deepl.com/v2/translate?auth_key=VALID_TOKEN
187
- body:
188
- encoding: US-ASCII
189
- string: source_lang=EN&target_lang=ES
190
- headers:
191
- Accept-Encoding:
192
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
193
- Accept:
194
- - "*/*"
195
- User-Agent:
196
- - Ruby
197
- Content-Type:
198
- - application/x-www-form-urlencoded
199
- response:
200
- status:
201
- code: 400
202
- message: Bad Request
203
- headers:
204
- Server:
205
- - nginx
206
- Date:
207
- - Mon, 17 May 2021 14:20:16 GMT
208
- Content-Length:
209
- - '45'
210
- Connection:
211
- - keep-alive
212
- Access-Control-Allow-Origin:
213
- - "*"
214
- body:
215
- encoding: UTF-8
216
- string: '{"message":"Parameter ''text'' not specified."}'
217
- recorded_at: Mon, 17 May 2021 14:20:16 GMT
218
- - request:
219
- method: post
220
- uri: https://api-free.deepl.com/v2/translate?auth_key=VALID_TOKEN
221
- body:
222
- encoding: US-ASCII
223
- string: text=Sample+text&source_lang=EN
224
- headers:
225
- Accept-Encoding:
226
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
227
- Accept:
228
- - "*/*"
229
- User-Agent:
230
- - Ruby
231
- Content-Type:
232
- - application/x-www-form-urlencoded
233
- response:
234
- status:
235
- code: 400
236
- message: Bad Request
237
- headers:
238
- Server:
239
- - nginx
240
- Date:
241
- - Mon, 17 May 2021 14:20:17 GMT
242
- Content-Length:
243
- - '52'
244
- Connection:
245
- - keep-alive
246
- Access-Control-Allow-Origin:
247
- - "*"
248
- body:
249
- encoding: UTF-8
250
- string: '{"message":"Value for ''target_lang'' not supported."}'
251
- recorded_at: Mon, 17 May 2021 14:20:17 GMT
252
- - request:
253
- method: post
254
- uri: https://api-free.deepl.com/v2/translate?auth_key=VALID_TOKEN&ignore_tags=code,span&tag_handling=xml
255
- body:
256
- encoding: US-ASCII
257
- string: text=Welcome+and+%3Ccode%3EHello+great+World%3C%2Fcode%3E+Good+Morning%21&source_lang=EN&target_lang=ES
258
- headers:
259
- Accept-Encoding:
260
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
261
- Accept:
262
- - "*/*"
263
- User-Agent:
264
- - Ruby
265
- Content-Type:
266
- - application/x-www-form-urlencoded
267
- response:
268
- status:
269
- code: 200
270
- message: OK
271
- headers:
272
- Server:
273
- - nginx
274
- Date:
275
- - Mon, 17 May 2021 14:20:56 GMT
276
- Content-Type:
277
- - application/json
278
- Content-Length:
279
- - '121'
280
- Connection:
281
- - keep-alive
282
- Access-Control-Allow-Origin:
283
- - "*"
284
- body:
285
- encoding: ASCII-8BIT
286
- string: !binary |-
287
- eyJ0cmFuc2xhdGlvbnMiOlt7ImRldGVjdGVkX3NvdXJjZV9sYW5ndWFnZSI6IkVOIiwidGV4dCI6IkJpZW52ZW5pZG8geSA8Y29kZT5IZWxsbyBncmVhdCBXb3JsZDwvY29kZT4gwqFCdWVub3MgZMOtYXMhIn1dfQ==
288
- recorded_at: Mon, 17 May 2021 14:20:56 GMT
289
- - request:
290
- method: post
291
- uri: https://api-free.deepl.com/v2/translate?auth_key=VALID_TOKEN&glossary_id=123
292
- body:
293
- encoding: US-ASCII
294
- string: text=%3Cp%3ESample+text%3C%2Fp%3E&source_lang=EN&target_lang=ES
295
- headers:
296
- Accept-Encoding:
297
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
298
- Accept:
299
- - "*/*"
300
- User-Agent:
301
- - Ruby
302
- Content-Type:
303
- - application/x-www-form-urlencoded
304
- response:
305
- status:
306
- code: 400
307
- message: Bad Request
308
- headers:
309
- Server:
310
- - nginx
311
- Date:
312
- - Tue, 28 Sep 2021 17:20:52 GMT
313
- Content-Type:
314
- - application/json
315
- Content-Length:
316
- - '51'
317
- Connection:
318
- - keep-alive
319
- Access-Control-Allow-Origin:
320
- - "*"
321
- body:
322
- encoding: UTF-8
323
- string: '{"message":"Value for ''termbaseId'' not supported."}'
324
- recorded_at: Tue, 28 Sep 2021 17:20:52 GMT
3
+ - request:
4
+ method: post
5
+ uri: https://api-free.deepl.com/v2/translate
6
+ body:
7
+ encoding: US-ASCII
8
+ string: text=Sample+text&source_lang=EN&target_lang=ES
9
+ headers:
10
+ Authorization:
11
+ - DeepL-Auth-Key VALID_TOKEN
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ User-Agent:
17
+ - Ruby
18
+ Content-Type:
19
+ - application/x-www-form-urlencoded
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Mon, 17 May 2021 14:20:14 GMT
29
+ Content-Type:
30
+ - application/json
31
+ Content-Length:
32
+ - "78"
33
+ Connection:
34
+ - keep-alive
35
+ Access-Control-Allow-Origin:
36
+ - "*"
37
+ body:
38
+ encoding: UTF-8
39
+ string:
40
+ '{"translations":[{"detected_source_language":"EN","text":"Texto de
41
+ muestra"}]}'
42
+ recorded_at: Mon, 17 May 2021 14:20:14 GMT
43
+ - request:
44
+ method: post
45
+ uri: https://api-free.deepl.com/v2/translate
46
+ body:
47
+ encoding: US-ASCII
48
+ string: text=Sample&text=Word&source_lang=EN&target_lang=ES
49
+ headers:
50
+ Authorization:
51
+ - DeepL-Auth-Key VALID_TOKEN
52
+ Accept-Encoding:
53
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
54
+ Accept:
55
+ - "*/*"
56
+ User-Agent:
57
+ - Ruby
58
+ Content-Type:
59
+ - application/x-www-form-urlencoded
60
+ response:
61
+ status:
62
+ code: 200
63
+ message: OK
64
+ headers:
65
+ Server:
66
+ - nginx
67
+ Date:
68
+ - Mon, 17 May 2021 14:20:14 GMT
69
+ Content-Type:
70
+ - application/json
71
+ Content-Length:
72
+ - "120"
73
+ Connection:
74
+ - keep-alive
75
+ Access-Control-Allow-Origin:
76
+ - "*"
77
+ body:
78
+ encoding: UTF-8
79
+ string: '{"translations":[{"detected_source_language":"EN","text":"Muestra"},{"detected_source_language":"EN","text":"Palabra"}]}'
80
+ recorded_at: Mon, 17 May 2021 14:20:14 GMT
81
+ - request:
82
+ method: post
83
+ uri: https://api-free.deepl.com/v2/translate?tag_handling=xml
84
+ body:
85
+ encoding: US-ASCII
86
+ string: text=%3Cp%3ESample+text%3C%2Fp%3E&source_lang=EN&target_lang=ES
87
+ headers:
88
+ Authorization:
89
+ - DeepL-Auth-Key VALID_TOKEN
90
+ Accept-Encoding:
91
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
92
+ Accept:
93
+ - "*/*"
94
+ User-Agent:
95
+ - Ruby
96
+ Content-Type:
97
+ - application/x-www-form-urlencoded
98
+ response:
99
+ status:
100
+ code: 200
101
+ message: OK
102
+ headers:
103
+ Server:
104
+ - nginx
105
+ Date:
106
+ - Mon, 17 May 2021 14:20:15 GMT
107
+ Content-Type:
108
+ - application/json
109
+ Content-Length:
110
+ - "85"
111
+ Connection:
112
+ - keep-alive
113
+ Access-Control-Allow-Origin:
114
+ - "*"
115
+ body:
116
+ encoding: UTF-8
117
+ string:
118
+ '{"translations":[{"detected_source_language":"EN","text":"<p>Texto
119
+ de muestra</p>"}]}'
120
+ recorded_at: Mon, 17 May 2021 14:20:15 GMT
121
+ - request:
122
+ method: post
123
+ uri: https://api-free.deepl.com/v2/translate
124
+ body:
125
+ encoding: US-ASCII
126
+ string: text=Sample+text&source_lang=EN&target_lang=ES
127
+ headers:
128
+ Authorization:
129
+ - DeepL-Auth-Key invalid
130
+ Accept-Encoding:
131
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
132
+ Accept:
133
+ - "*/*"
134
+ User-Agent:
135
+ - Ruby
136
+ Content-Type:
137
+ - application/x-www-form-urlencoded
138
+ response:
139
+ status:
140
+ code: 403
141
+ message: Forbidden
142
+ headers:
143
+ Server:
144
+ - nginx
145
+ Date:
146
+ - Mon, 17 May 2021 14:20:16 GMT
147
+ Content-Length:
148
+ - "0"
149
+ Connection:
150
+ - keep-alive
151
+ Access-Control-Allow-Origin:
152
+ - "*"
153
+ body:
154
+ encoding: UTF-8
155
+ string: ""
156
+ recorded_at: Mon, 17 May 2021 14:20:16 GMT
157
+ - request:
158
+ method: post
159
+ uri: https://api-free.deepl.com/v2/translate
160
+ body:
161
+ encoding: US-ASCII
162
+ string: source_lang=EN&target_lang=ES
163
+ headers:
164
+ Authorization:
165
+ - DeepL-Auth-Key VALID_TOKEN
166
+ Accept-Encoding:
167
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
168
+ Accept:
169
+ - "*/*"
170
+ User-Agent:
171
+ - Ruby
172
+ Content-Type:
173
+ - application/x-www-form-urlencoded
174
+ response:
175
+ status:
176
+ code: 400
177
+ message: Bad Request
178
+ headers:
179
+ Server:
180
+ - nginx
181
+ Date:
182
+ - Mon, 17 May 2021 14:20:16 GMT
183
+ Content-Length:
184
+ - "45"
185
+ Connection:
186
+ - keep-alive
187
+ Access-Control-Allow-Origin:
188
+ - "*"
189
+ body:
190
+ encoding: UTF-8
191
+ string: '{"message":"Parameter ''text'' not specified."}'
192
+ recorded_at: Mon, 17 May 2021 14:20:16 GMT
193
+ - request:
194
+ method: post
195
+ uri: https://api-free.deepl.com/v2/translate
196
+ body:
197
+ encoding: US-ASCII
198
+ string: text=Sample+text&source_lang=EN
199
+ headers:
200
+ Authorization:
201
+ - DeepL-Auth-Key VALID_TOKEN
202
+ Accept-Encoding:
203
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
204
+ Accept:
205
+ - "*/*"
206
+ User-Agent:
207
+ - Ruby
208
+ Content-Type:
209
+ - application/x-www-form-urlencoded
210
+ response:
211
+ status:
212
+ code: 400
213
+ message: Bad Request
214
+ headers:
215
+ Server:
216
+ - nginx
217
+ Date:
218
+ - Mon, 17 May 2021 14:20:17 GMT
219
+ Content-Length:
220
+ - "52"
221
+ Connection:
222
+ - keep-alive
223
+ Access-Control-Allow-Origin:
224
+ - "*"
225
+ body:
226
+ encoding: UTF-8
227
+ string: '{"message":"Value for ''target_lang'' not supported."}'
228
+ recorded_at: Mon, 17 May 2021 14:20:17 GMT
229
+ - request:
230
+ method: post
231
+ uri: https://api-free.deepl.com/v2/translate?auth_key=VALID_TOKEN&ignore_tags=code,span&tag_handling=xml
232
+ body:
233
+ encoding: US-ASCII
234
+ string: text=Welcome+and+%3Ccode%3EHello+great+World%3C%2Fcode%3E+Good+Morning%21&source_lang=EN&target_lang=ES
235
+ headers:
236
+ Accept-Encoding:
237
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
238
+ Accept:
239
+ - "*/*"
240
+ User-Agent:
241
+ - Ruby
242
+ Content-Type:
243
+ - application/x-www-form-urlencoded
244
+ response:
245
+ status:
246
+ code: 200
247
+ message: OK
248
+ headers:
249
+ Server:
250
+ - nginx
251
+ Date:
252
+ - Mon, 17 May 2021 14:20:56 GMT
253
+ Content-Type:
254
+ - application/json
255
+ Content-Length:
256
+ - "121"
257
+ Connection:
258
+ - keep-alive
259
+ Access-Control-Allow-Origin:
260
+ - "*"
261
+ body:
262
+ encoding: ASCII-8BIT
263
+ string: !binary |-
264
+ eyJ0cmFuc2xhdGlvbnMiOlt7ImRldGVjdGVkX3NvdXJjZV9sYW5ndWFnZSI6IkVOIiwidGV4dCI6IkJpZW52ZW5pZG8geSA8Y29kZT5IZWxsbyBncmVhdCBXb3JsZDwvY29kZT4gwqFCdWVub3MgZMOtYXMhIn1dfQ==
265
+ recorded_at: Mon, 17 May 2021 14:20:56 GMT
266
+ - request:
267
+ method: post
268
+ uri: https://api-free.deepl.com/v2/translate?auth_key=VALID_TOKEN&glossary_id=123
269
+ body:
270
+ encoding: US-ASCII
271
+ string: text=%3Cp%3ESample+text%3C%2Fp%3E&source_lang=EN&target_lang=ES
272
+ headers:
273
+ Accept-Encoding:
274
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
275
+ Accept:
276
+ - "*/*"
277
+ User-Agent:
278
+ - Ruby
279
+ Content-Type:
280
+ - application/x-www-form-urlencoded
281
+ response:
282
+ status:
283
+ code: 400
284
+ message: Bad Request
285
+ headers:
286
+ Server:
287
+ - nginx
288
+ Date:
289
+ - Tue, 28 Sep 2021 17:20:52 GMT
290
+ Content-Type:
291
+ - application/json
292
+ Content-Length:
293
+ - "51"
294
+ Connection:
295
+ - keep-alive
296
+ Access-Control-Allow-Origin:
297
+ - "*"
298
+ body:
299
+ encoding: UTF-8
300
+ string: '{"message":"Value for ''termbaseId'' not supported."}'
301
+ recorded_at: Tue, 28 Sep 2021 17:20:52 GMT
302
+ - request:
303
+ method: post
304
+ uri: https://api-free.deepl.com/v2/translate?ignore_tags=code,span&tag_handling=xml
305
+ body:
306
+ encoding: US-ASCII
307
+ string: text=Welcome+and+%3Ccode%3EHello+great+World%3C%2Fcode%3E+Good+Morning%21&source_lang=EN&target_lang=ES
308
+ headers:
309
+ Authorization:
310
+ - DeepL-Auth-Key VALID_TOKEN
311
+ Accept-Encoding:
312
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
313
+ Accept:
314
+ - "*/*"
315
+ User-Agent:
316
+ - Ruby
317
+ Content-Type:
318
+ - application/x-www-form-urlencoded
319
+ response:
320
+ status:
321
+ code: 200
322
+ message: OK
323
+ headers:
324
+ Server:
325
+ - nginx
326
+ Date:
327
+ - Thu, 17 Mar 2022 09:55:34 GMT
328
+ Content-Type:
329
+ - application/json
330
+ Transfer-Encoding:
331
+ - chunked
332
+ Connection:
333
+ - keep-alive
334
+ Vary:
335
+ - Accept-Encoding
336
+ Access-Control-Allow-Origin:
337
+ - "*"
338
+ body:
339
+ encoding: ASCII-8BIT
340
+ string: !binary |-
341
+ eyJ0cmFuc2xhdGlvbnMiOlt7ImRldGVjdGVkX3NvdXJjZV9sYW5ndWFnZSI6IkVOIiwidGV4dCI6IkJpZW52ZW5pZG8geSA8Y29kZT5IZWxsbyBncmVhdCBXb3JsZDwvY29kZT4gwqFCdWVub3MgZMOtYXMhIn1dfQ==
342
+ recorded_at: Thu, 17 Mar 2022 09:55:32 GMT
325
343
  recorded_with: VCR 6.0.0