{ "code": "10000", "charge": false, "remainTimes": 1305, "remainSeconds": -1, "msg": "查询成功", "result": { "request_id ": "1543813615.443506", "message": "ok ", "det_num": 14, "status": 0, "used_time": 306, "det_info": [{ "person_num": 1, "node_info": [58, 276, 0.9998019337654114, "head", 60, 323, 0.9998019337654114, "neck", 16, 337, 0.9998019337654114, "r_shoulder", 33, 407, 0.9998019337654114, "r_elbow", 82, 439, 0.9998019337654114, "r_wrist", 100, 331, 0.9998019337654114, "l_shoulder", 112, 391, 0.9998019337654114, "l_elbow", 119, 433, 0.9998019337654114, "l_wrist", 34, 433, 0.9237196964835981, "r_hip", 70, 460, 0.9998019337654114, "r_knee", 90, 558, 0.9998019337654114, "r_ankle", 96, 413, 0.9946802868011275, "l_hip", 150, 432, 0.9998019337654114, "l_knee", 185, 514, 0.9998019337654114, "l_ankle"] }] } }
<?php /** * Created by PhpStorm. * User: FZS * Time: 2021/06/09 19:26 */ class freeApi { private $apiUrl; public function __construct() { $this->apiUrl = 'https://way.jd.com/JDAI/pose_estimation?appkey=key&muti_det=1'; } /** * 获取结果 * @return array */ public function getResult() { return file_get_contents($this->apiUrl); } }
package main import ( "fmt" "io/ioutil" "log" "net/http" ) const ( APIURL = "https://way.jd.com/JDAI/pose_estimation?appkey=key&muti_det=1" ) 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)) }