接口地址

https://api.vvhan.com/api/fy

返回格式

JSON

請求方式:

GET

請求示例:

https://api.vvhan.com/api/fy?text=是小韓啊

 

參數說明

名稱 必填 類型 說明
info string 輸入要翻譯的內容

返回數據

{"code":1,"msg":"Successful","info":"是小韓"}

調用實例

自行調用

示例代碼

<?php
header("Content-Type:text/json;charset=UTF-8"); $info = $_GET['info']; $result = file_get_contents("https://api.vvhan.com/api/fy?text=" . $info); echo $result;
?>