万能翻译

GET
https://api.mymzf.com/api/fy

接口描述

自动识别输入的内容进行翻译auto为自动检测

请求参数

请求示例

var axios = require('axios')

var config = {
  method: 'get',
  url: 'https://api.mymzf.com/api/fy?text=你好世界&type=AUTO'
}

axios(config)
  .then(function (response) {
    console.log(JSON.stringify(response.data))
  })
  .catch(function (error) {
    console.log(error)
  })

返回示例

{"code":200,"msg":"翻译成功","data":{"text":"你好世界","translate":"HELLO WORLD"}}