接口地址

https://api.vvhan.com/api/60s

返回格式

圖片

請求方式:

GET

請求示例(圖片)

https://api.vvhan.com/api/60s

請求示例(JSON)

https://api.vvhan.com/api/60s?type=json

參數(shù)說明

名稱 必填 類型 說明
type string 是否輸出JSON

返回?cái)?shù)據(jù)

圖片格式返回

調(diào)用實(shí)例

自行調(diào)用

示例代碼

<?php
header("Content-Type:text/json;charset=UTF-8"); date_default_timezone_set("PRC"); $xx = $_GET["type"]; $url = "https://api.vvhan.com/api/60s?type=" . $xx; $data = file_get_contents($url); echo $data;