spec/fixtures/vcr_cassettes/deepl_usage.yml in deepl-rb-2.5.3 vs spec/fixtures/vcr_cassettes/deepl_usage.yml in deepl-rb-3.0.0
- old
+ new
@@ -1,10 +1,10 @@
---
http_interactions:
- request:
method: get
- uri: https://api-free.deepl.com/v2/usage
+ uri: https://api.deepl.com/v2/usage
body:
encoding: US-ASCII
string: ''
headers:
Authorization:
@@ -12,11 +12,11 @@
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
- "*/*"
User-Agent:
- - Ruby
+ - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3
response:
status:
code: 200
message: OK
headers:
@@ -34,6 +34,96 @@
- "*"
body:
encoding: UTF-8
string: '{"character_count":303,"character_limit":500000}'
recorded_at: Mon, 17 May 2021 14:18:28 GMT
-recorded_with: VCR 6.0.0
+- request:
+ method: get
+ uri: https://api.deepl.com/v2/usage
+ body:
+ encoding: US-ASCII
+ string: ''
+ headers:
+ Authorization:
+ - DeepL-Auth-Key VALID_TOKEN
+ User-Agent:
+ - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3
+ Accept-Encoding:
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
+ Accept:
+ - "*/*"
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Date:
+ - Tue, 02 Jul 2024 15:04:44 GMT
+ Content-Type:
+ - application/json
+ Transfer-Encoding:
+ - chunked
+ Vary:
+ - Accept-Encoding
+ Access-Control-Allow-Origin:
+ - "*"
+ X-Cache-Status:
+ - MISS
+ Strict-Transport-Security:
+ - max-age=63072000; includeSubDomains; preload
+ Server-Timing:
+ - l7_lb_tls;dur=105, l7_lb_idle;dur=1, l7_lb_receive;dur=0, l7_lb_total;dur=140
+ Access-Control-Expose-Headers:
+ - Server-Timing, X-Trace-ID
+ X-Trace-Id:
+ - abe01bcc8c834ec6a2837d30f9bcf1b2
+ body:
+ encoding: ASCII-8BIT
+ string: '{"character_count":18593,"character_limit":1000000000000}'
+ recorded_at: Tue, 02 Jul 2024 15:04:44 GMT
+- request:
+ method: get
+ uri: https://api.deepl.com/v2/usage
+ body:
+ encoding: UTF-8
+ string: "{}"
+ headers:
+ Authorization:
+ - DeepL-Auth-Key VALID_TOKEN
+ User-Agent:
+ - deepl-ruby/2.5.3 (darwin23) ruby/3.3.3
+ Content-Type:
+ - application/json
+ Accept-Encoding:
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
+ Accept:
+ - "*/*"
+ response:
+ status:
+ code: 200
+ message: OK
+ headers:
+ Date:
+ - Tue, 09 Jul 2024 01:47:02 GMT
+ Content-Type:
+ - application/json
+ Transfer-Encoding:
+ - chunked
+ Vary:
+ - Accept-Encoding
+ Access-Control-Allow-Origin:
+ - "*"
+ X-Cache-Status:
+ - MISS
+ Strict-Transport-Security:
+ - max-age=63072000; includeSubDomains; preload
+ Server-Timing:
+ - l7_lb_tls;dur=166, l7_lb_idle;dur=1, l7_lb_receive;dur=0, l7_lb_total;dur=170
+ Access-Control-Expose-Headers:
+ - Server-Timing, X-Trace-ID
+ X-Trace-Id:
+ - f0901812e3b74562b460fc95cec5d92e
+ body:
+ encoding: ASCII-8BIT
+ string: '{"character_count":69350,"character_limit":1000000000000}'
+ recorded_at: Tue, 09 Jul 2024 01:47:02 GMT
+recorded_with: VCR 6.2.0