PHP代码样例:

    $OpenAPI="https://hotbook.nbt.edu.cn/api/openapi.php?uid=yourid"; 
    $json=file_get_contents($OpenAPI);
    $arr=json_decode($json, true);//获取的JSON数据转换成数组  
    if(count($arr)<1){exit($json);}//如果出错,输出错误信息
    foreach($arr as $bookarr){//循环得到每一本书的数组$bookarr 
        echo '<a href="'.$bookarr['url'].'" target="_blank">
        <img src="'.$bookarr['img'].'" width="115" height="148" />
        <br>'.$bookarr['ti']."</a><br>
        <hr width=115  align=left>"; 
    }
    
    
样例效果:


接力与超越



这边风景



读懂经济学的第一本书



公司理财精要



货币集结号



第二桶金



艾略特波浪理论



统帅力



深入浅出玩转 FPGA