spec/fixtures/vcr_cassettes/usage.yml in deepl-rb-2.5.3 vs spec/fixtures/vcr_cassettes/usage.yml in deepl-rb-3.0.0
- old
+ new
@@ -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,138 @@
- "*"
body:
encoding: UTF-8
string: '{"character_count":353,"character_limit":500000}'
recorded_at: Mon, 17 May 2021 14:18:32 GMT
-recorded_with: VCR 6.0.0
+- request:
+ method: get
+ uri: https://api-free.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: 403
+ message: Forbidden
+ headers:
+ Date:
+ - Tue, 02 Jul 2024 13:54:07 GMT
+ Content-Type:
+ - application/json
+ Transfer-Encoding:
+ - chunked
+ Vary:
+ - Accept-Encoding
+ Access-Control-Allow-Origin:
+ - "*"
+ Strict-Transport-Security:
+ - max-age=63072000; includeSubDomains; preload
+ Server-Timing:
+ - l7_lb_tls;dur=101, l7_lb_idle;dur=0, l7_lb_receive;dur=0, l7_lb_total;dur=103
+ Access-Control-Expose-Headers:
+ - Server-Timing, X-Trace-ID
+ X-Trace-Id:
+ - 4dcf2a36b3f14ba89f107449f4b14919
+ body:
+ encoding: ASCII-8BIT
+ string: '{"message":"Wrong endpoint. Use https://api.deepl.com"}'
+ recorded_at: Tue, 02 Jul 2024 13:54:07 GMT
+- 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 14:52:05 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=112, l7_lb_idle;dur=1, l7_lb_receive;dur=0, l7_lb_total;dur=115
+ Access-Control-Expose-Headers:
+ - Server-Timing, X-Trace-ID
+ X-Trace-Id:
+ - de53f558d38c43748bf83b27f4f0edc9
+ body:
+ encoding: ASCII-8BIT
+ string: '{"character_count":18593,"character_limit":1000000000000}'
+ recorded_at: Tue, 02 Jul 2024 14:52:05 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:35:37 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=137, 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:
+ - 543309f656244684bb59d30e9dc824b5
+ body:
+ encoding: ASCII-8BIT
+ string: '{"character_count":69328,"character_limit":1000000000000}'
+ recorded_at: Tue, 09 Jul 2024 01:35:37 GMT
+recorded_with: VCR 6.2.0