【发布时间】:2022-01-26 02:15:21
【问题描述】:
对https://www.deepl.com的请求示例:
curl https://api-free.deepl.com/v2/translate \
-d auth_key=[yourAuthKey] \
-d "text=Hello world!" \
-d "target_lang=DE"
示例响应:
{"translations": [{
"detected_source_language":"EN",
"text":"Hallo Welt!"
}]
}
我想使用 Indy 的 TIdHTTP 组件在 Delphi 11 中实现上述示例,但我无法将现有答案转换为对我来说可行的解决方案。
【问题讨论】:
-
几十年来我一直确信 "Hello, World!" 不应该包含逗号,但今天我学会了otherwise。