有道翻译api调用方法
程序员文章站
2024-01-10 17:47:43
...
$url = "http://fanyi.youdao.com/openapi.do?keyfrom=xujiangtao&key=1490852988&type=data&doctype=json&version=1.1&q=".$content; $list = file_get_contents($url);//来源同穷论坛(http://www.tongqiong.com) $js_de = json_decode($list,true);