名称 | 必填 | 类型 | 说明 |
---|---|---|---|
type | 否 | string | 是否随机输出 |
{"success":true,"data":{"month":"Oct","day":"18","zh":"井底之蛙,不知大海。","en":"The frog in the well knows nothing of the great ocean.","pic":"https:\/\/staticedu-wps.cache.iciba.com\/image\/0dfd35fcad9190747d8bd3cd2c91c758.jpg"}}
可用做每日一句,自行调用
<?php
header("Content-Type:text/json;charset=UTF-8"); date_default_timezone_set("PRC"); $type = $_GET["type"]; $url = "https://api.vvhan.com/api/en?type=" . $type; $data = file_get_contents($url); echo $data;
?>