{ "code": 200, "msg": "成功", "mp4_video": "https://alimov2.a.kwimgs.com/upic/2024/01/12/23/BMjAyNDAxMTIyMzUzMDRfODEwNTYyNjg3XzEyMTkzMjE3Njg0M18xXzM=_b_Bd101cc3a9294a0c1595fe5b9b96abcf2.mp4?clientCacheKey=3xtku8hk5z5mxr2_b.mp4&tt=b&di=78e49864&bp=13414" }
<?php /** * Created by PhpStorm. * User: FZS * Time: 2024/10/23 07:11 */ class freeApi { private $apiUrl; public function __construct() { $this->apiUrl = 'https://api.kuleu.com/api/MP4_xiaojiejie?type=json'; } /** * 获取结果 * @return array */ public function getResult() { return file_get_contents($this->apiUrl); } }
package main import ( "fmt" "io/ioutil" "log" "net/http" ) const ( APIURL = "https://api.kuleu.com/api/MP4_xiaojiejie?type=json" ) func main() { queryUrl := fmt.Sprintf("%s",APIURL) resp, err := http.Get(queryUrl) if err != nil { log.Println(err) return } defer resp.Body.Close() body, err := ioutil.ReadAll(resp.Body) if err != nil { fmt.Println(err) return } fmt.Println(string(body)) }