{ "is_history": false, "counts": 10, "feedList": [{ "post_id": 100714623, "type": "multi-photo", "url": "https://tuchong.com/22591552/100714623/", "site_id": "22591552", "author_id": "22591552", "published_at": "2021-08-10 15:25:37", "passed_time": "08月10日", "excerpt": "", "favorites": 691, "comments": 269, "rewardable": true, "parent_comments": "225", "rewards": "0", "views": 17894, "collected": false, "shares": 150, "recommend": true, "delete": false, "update": false, "content": "", "title": "", "image_count": 3, "images": [{ "img_id": 1080499493, "img_id_str": "1080499493", "user_id": 22591552, "title": "4672B199-4F6C-4B44-8E64-2AC9E967B524/L0/001", "excerpt": "", "width": 998, "height": 1283, "description": "" }, { "img_id": 800923133, "img_id_str": "800923133", "user_id": 22591552, "title": "F9B8F90C-5A2A-40C1-93D1-08FD6BE98637/L0/001", "excerpt": "", "width": 988, "height": 1288, "description": "" }, { "img_id": 1083972941, "img_id_str": "1083972941", "user_id": 22591552, "title": "C9FC6FD6-9ED9-4445-9B92-59DA4B5E1EA0/L0/001", "excerpt": "", "width": 1009, "height": 1269, "description": "" }], "title_image": null, "tags": ["胶片集", "东欧系人像", "卖图晒单分享", "美女人像群", "人像写真摄影约拍", "女性", "青少年", "人", "坐在", "瑜伽", "薄", "时尚", "怀孕", "体育锻炼", "体操"], "event_tags": ["胶片集", "东欧系人像", "卖图晒单分享", "美女人像群", "人像写真摄影约拍"], "favorite_list_prefix": [], "reward_list_prefix": [], "comment_list_prefix": [], "data_type": "post", "created_at": "", "sites": [], "site": { "site_id": "22591552", "type": "user", "name": "海屿湾", "domain": "", "description": "余生尽人意、听天命", "followers": 729, "url": "https://tuchong.com/22591552/", "icon": "https://lf3-tccdn-tos.pstatp.com/obj/tuchong-avatar/ll_22591552_3", "is_bind_everphoto": false, "has_everphoto_note": true, "videos": 5, "verified": false, "verifications": 0, "verification_list": [], "is_following": false }, "recom_type": "热门", "rqt_id": "2fa93f7d8882923039441c4583d9dc00", "is_favorite": false }], "message": "添加成功", "more": true, "result": "SUCCESS" }
<?php /** * Created by PhpStorm. * User: FZS * Time: 2021/09/01 00:38 */ class freeApi { private $apiUrl; public function __construct() { $this->apiUrl = 'https://api.tuchong.com/feed-app'; } /** * 获取结果 * @return array */ public function getResult() { return file_get_contents($this->apiUrl); } }
package main import ( "fmt" "io/ioutil" "log" "net/http" ) const ( APIURL = "https://api.tuchong.com/feed-app" ) 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)) }