图书搜索接口可查询图书分类目录

于万千之中选择你所爱--好书推荐,值得你信赖。图书搜索接口可查询图书分类目录。

接口名称:图书搜索接口

接口平台:开放接口

接口地址:http://apis.juhe.cn/goodbook/catalog

支持格式:json/xml

请求方式:get

请求示例:http://apis.juhe.cn/goodbook/catalog?key=你申请的key&dtype=json

图书搜索接口调用代码JSON返回示例:

 

{
"resultcode":"200",
"reason":"success",
"result":[
   {
     "id":"242",
     "catalog":"中国文学"
   },
   {
     "id":"243",
     "catalog":"外国文学"
   },
   {
     "id":"244",
     "catalog":"儿童文学" 
   },
   {
     "id":"245",
     "catalog":"散文"
   },
   {
     "id":"246",
     "catalog":"经典名著"
   },
   {
     "id":"247",
     "catalog":"小说"
   },
   {
     "id":"248",
     "catalog":"历史"
   },
   {
     "id":"249",
     "catalog":"教育"
   },
  {
     "id":"250",
     "catalog":"成功励志"
   },
   {
     "id":"251",
     "catalog":"心灵鸡汤"
   },
   {
     "id":"252",
     "catalog":"人物传记"
   },
   {
     "id":"253",
     "catalog":"心理学"
   },
   {
     "id":"254",
     "catalog":"管理"
   },
   {
     "id":"255",
     "catalog":"经济"
   },
   {
     "id":"256",
     "catalog":"理财"
   },
   {
     "id":"257",
     "catalog":"哲学"
   },
   {
     "id":"258",
     "catalog":"计算机"
   }
  ]
}

 

图书搜索接口调用代码XML返回示例:

 

  xml version="1.0" encoding="utf-8" ?> 
- <root>
  <resultcode>200resultcode> 
  <reason>successreason> 
  - <result>
   - <item>
       <id>242id> 
       <catalog>中国文学catalog> 
     item>
   - <item>
       <id>243id> 
       <catalog>外国文学catalog> 
     item>
   - <item>
       <id>244id> 
       <catalog>儿童文学catalog> 
     item>
   - <item>
       <id>245id> 
       <catalog>散文catalog> 
     item>
   - <item>
       <id>246id> 
       <catalog>经典名著catalog> 
     item>
   - <item>
       <id>247id> 
       <catalog>小说catalog> 
     item>
   - <item>
       <id>248id> 
       <catalog>历史catalog> 
     item>
   - <item>
       <id>249id> 
       <catalog>教育catalog> 
     item>
   - <item>
       <id>250id> 
       <catalog>成功励志catalog> 
     item>
   - <item>
       <id>251id> 
       <catalog>心灵鸡汤catalog> 
     item>
   - <item>
       <id>252id> 
       <catalog>人物传记catalog> 
     item>
   - <item>
       <id>253id> 
       <catalog>心理学catalog> 
     item>
   - <item>
       <id>254id> 
       <catalog>管理catalog> 
     item>
   - <item>
       <id>255id> 
       <catalog>经济catalog> 
     item>
   - <item>
       <id>256id> 
       <catalog>理财catalog> 
     item>
   - <item>
       <id>257id> 
       <catalog>哲学catalog> 
     item>
   - <item>
       <id>258id> 
       <catalog>计算机catalog> 
     item>
   result>
 root>

 

转载于:https://www.cnblogs.com/jiekoupt/p/4988565.html

你可能感兴趣的:(图书搜索接口可查询图书分类目录)