uniTranslate (统一翻译)
    uniTranslate (统一翻译)
    • 说明
    • 翻译配置
      • 添加配置-百度
        POST
      • 添加配置-有道
        POST
      • 添加配置-Google
        POST
      • 添加配置-Deepl
        POST
      • 添加配置-ChatGPT
        POST
      • 添加配置-XunFei
        POST
      • 添加配置-XunFeiNiu
        POST
      • 添加配置-腾讯
        POST
      • 添加配置-火山
        POST
      • 添加配置-PaPaGo
        POST
    • 配置
      • 刷新配置缓存
        GET
      • 删除配置
        POST
      • 修改配置状态
        POST
      • 获取配置列表
        GET
    • 获取翻译缓存大小
      GET
    • 清除翻译缓存
      GET
    • 获取请求记录
      GET
    • 翻译
      POST
    • 聚合翻译
      POST
    • libre 翻译
      POST
    • 白嫖谷歌协议
      POST
    • 获取支持的翻译语种
      GET

      聚合翻译

      开发中
      POST
      /api/aggregateTranslate
      最后修改时间:2024-05-16 07:49:56

      请求参数

      Body 参数application/json
      from
      string 
      源语言
      必需
      to
      string 
      目标语言
      必需
      text
      string 
      要翻译的内容
      必需
      platform
      array[string]
      必需
      参与翻译的平台空数组为所有开启的平台
      示例
      {
          "from": "auto",
          "to": "en",
          "text": "需要翻译的内容",
          "platform": ["Baidu", "YouDao", "Google"]
      }

      示例代码

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      请求示例请求示例
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST '/api/aggregateTranslate' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "from": "auto",
          "to": "en",
          "text": "需要翻译的内容",
          "platform": ["Baidu", "YouDao", "Google"]
      }'

      返回响应

      🟢200成功
      application/json
      Body
      object {0}
      示例
      {}
      修改于 2024-05-16 07:49:56
      上一页
      翻译
      下一页
      libre 翻译
      Built with