无名 发表于 2022-5-8 18:13:31

【iApp腾讯翻译接口】腾讯翻译api

接口地址:
https://dictweb.translator.qq.com/eduTranslate?sentence=内容&channel=tencent

以下是iApp调用实列

//注意需要用到浏览器,日后截取
ug(要翻译内容的编辑框id,"text" ,nr)
f(nr=="")
//这里判断一下编辑框是不是空的
{
tw("你要翻译啥?”)
}
else
{
us(浏览器id,"url",
"https://dictweb.translator.qq.com/eduTranslate?sentence="+nr+"&channel=tencent")
tw(”翻译以设置到浏览器”)
}

更多教程访问:http://txs.a152.top
#【分享】iAPP翻译软件源码#
http://cdn.u1.huluxia.com/g3/M01/3E/8C/wKgBOV5IPGKAGD8PAANyI9gofXQ506.pnghttp://cdn.u1.huluxia.com/g3/M01/3E/8C/wKgBOV5IPGKAd-vZAAB3iGRKp8w992.jpg
页: [1]
查看完整版本: 【iApp腾讯翻译接口】腾讯翻译api