spec/fixtures/vcr_cassettes/translate_texts.yml in deepl-rb-2.1.0 vs spec/fixtures/vcr_cassettes/translate_texts.yml in deepl-rb-2.2.0

- old
+ new

@@ -1,10 +1,10 @@ --- http_interactions: - request: method: post - uri: https://api.deepl.com/v1/translate?auth_key=VALID_TOKEN + uri: https://api.deepl.com/v2/translate?auth_key=VALID_TOKEN body: encoding: US-ASCII string: text=Sample+text&source_lang=EN&target_lang=ES headers: Accept-Encoding: @@ -38,11 +38,11 @@ muestra"}]}' http_version: recorded_at: Tue, 08 May 2018 16:31:34 GMT - request: method: post - uri: https://api.deepl.com/v1/translate?auth_key=VALID_TOKEN + uri: https://api.deepl.com/v2/translate?auth_key=VALID_TOKEN body: encoding: US-ASCII string: text=Sample&text=Word&source_lang=EN&target_lang=ES headers: Accept-Encoding: @@ -75,11 +75,11 @@ string: '{"translations":[{"detected_source_language":"EN","text":"Muestra"},{"detected_source_language":"EN","text":"Palabra"}]}' http_version: recorded_at: Tue, 08 May 2018 16:31:35 GMT - request: method: post - uri: https://api.deepl.com/v1/translate?auth_key=VALID_TOKEN + uri: https://api.deepl.com/v2/translate?auth_key=VALID_TOKEN body: encoding: US-ASCII string: text=%3Cp%3ESample+text%3C%2Fp%3E&source_lang=EN&target_lang=ES headers: Accept-Encoding: @@ -113,11 +113,11 @@ de muestra</p>"}]}' http_version: recorded_at: Tue, 08 May 2018 16:31:36 GMT - request: method: post - uri: https://api.deepl.com/v1/translate?auth_key=invalid + uri: https://api.deepl.com/v2/translate?auth_key=invalid body: encoding: US-ASCII string: text=Sample+text&source_lang=EN&target_lang=ES headers: Accept-Encoding: @@ -146,11 +146,11 @@ string: '' http_version: recorded_at: Tue, 08 May 2018 16:31:37 GMT - request: method: post - uri: https://api.deepl.com/v1/translate?auth_key=VALID_TOKEN + uri: https://api.deepl.com/v2/translate?auth_key=VALID_TOKEN body: encoding: US-ASCII string: source_lang=EN&target_lang=ES headers: Accept-Encoding: @@ -179,11 +179,11 @@ string: '{"message":"Parameter ''text'' not specified."}' http_version: recorded_at: Tue, 08 May 2018 16:31:37 GMT - request: method: post - uri: https://api.deepl.com/v1/translate?auth_key=VALID_TOKEN + uri: https://api.deepl.com/v2/translate?auth_key=VALID_TOKEN body: encoding: US-ASCII string: text=Sample+text&source_lang=EN headers: Accept-Encoding: @@ -212,10 +212,10 @@ string: '{"message":"Parameter ''target_lang'' not specified."}' http_version: recorded_at: Tue, 08 May 2018 16:31:37 GMT - request: method: post - uri: https://api.deepl.com/v1/translate?auth_key=VALID_TOKEN&ignore_tags=code,%20span + uri: https://api.deepl.com/v2/translate?auth_key=VALID_TOKEN&ignore_tags=code,%20span body: encoding: US-ASCII string: text=Welcome+and+%3Ccode%3EHello+great+World%3C%2Fcode%3E+Good+Morning%21&source_lang=EN&target_lang=ES headers: Accept-Encoding: