PHP代码样例:

    $OpenAPI="http://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>"; 
    }
    
    
样例效果:


县联社



Self-Directed Behavior



反套路经济学:为什么常识会撒谎?



自我导向行为



2049:未来10000天的可能



学习力跃迁:像AI一样迭代自己



1980年代:小说六记



最高自主學習法



邓小平与保密工作