curl -X POST 'https://api.deepl.com/v2/translate' \--header 'Authorization: DeepL-Auth-Key [yourAuthKey]' \--header 'Content-Type: application/json' \--data '{ "text": [ "Hello, world!" ], "target_lang": "DE"}'输出:你将得到一个JSON格式的响应,其中包含了翻译结果的详细...
curl -X POST 'https://api.deepl.com/v2/translate' \ --header 'Authorization: DeepL-Auth-Key [yourAuthKey]' \ --header 'Content-Type: application/json' \ --data '{ "text": [ "Hello, world!" ], "target_lang": "DE" }' 输出: 你将得到一个JSON格式的响应,其中包含了翻译结果的详细...
curl-XPOST'https://api.deepl.com/v2/translate'\--header'Authorization: DeepL-Auth-Key [yourAuthKey]'\--header'Content-Type: application/json'\--data'{ "text": [ "Hello, world!" ], "target_lang": "DE" }' 输出: 你将得到一个 JSON 格式的响应,其中包含了翻译结果的详细信息,如检测到的...
curl -X POST 'https://api.deepl.com/v2/translate' \ --header 'Authorization: DeepL-Auth-Key [yourAuthKey]' \ --header 'Content-Type: application/json' \ --data '{ "text": [ "Hello, world!" ], "target_lang": "DE" }' 输出: 你将得到一个JSON格式的响应,其中包含了翻译结果的详细...
目前DeepLX似乎只支持 JSON 请求格式,并且响应格式和官方 API 不同,希望能提供一个类似 v2/translate 接口,支持 URL-encoded 格式,并且返回数据能兼容官方 API,这样能更方便接口在各种第三方平台使用。 参见tisfeng/Easydict#464 (comment) curl -X POST http://localhost:1188/translate?token=your_access_token ...
{ name: "My Glossary", source_lang: "en", target_lang: "zh", entries: $glossary, entries_format: "tsv" }') # 创建词汇表 curl -X POST "https://api.deepl.com/v2/glossaries" \ --header "Authorization: DeepL-Auth-Key $TOKEN" \ --header "Content-Type: application/json" \ --...
cURL Python Node.js Open a terminal. Then: Set the API keyCopy export API_KEY={YOUR_API_KEY} Sample requestCopy curl -X POST https://api.deepl.com/v2/translate \ --header "Content-Type: application/json" \ --header "Authorization: DeepL-Auth-Key $API_KEY" \ --data '{ "text"...
请先确认以下事项 已仔细阅读了 README 在 issues 页面搜索过(包括已关闭的 issue),未发现类似功能建议 Easydict 已升级到 最新版本 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭 功能描述 自定义 API 使用的是 JSON 格
curl -I https://api-free.deepl.com/v2/translate 如果返回的状态码是200,说明网络连接正常。 查找状态码456在DeepL API文档中的含义: 根据DeepL API的官方文档,状态码456表示“超出配额”。这意味着你可能已经超出了你的API计划允许的字符翻译量限制。 根据文档指示解决问题: 如果你是免费用户:检查你是否已经...