-
Notifications
You must be signed in to change notification settings - Fork 136
/
下厨房API.md.htm
1 lines (1 loc) · 65.9 KB
/
下厨房API.md.htm
1
<!DOCTYPE html><html><head><title>下厨房API.md</title></head><body># 下厨房API<br/><br/>## 1. 首页数据<br/>- **url:**<br/>`http://api.xiachufang.com/v2/issues/list.json?cursor=&origin=iphone&api_sign=069310ae4fc0b866207dba71320f1c13&sk=7UnwJ-JkQ36hbfrMRoL0fA&size=2&timezone=Asia%2FShanghai&version=5.1.1&api_key=0f9f79be1dac5f003e7de6f876b17c00`<br/><br/>- **响应实例:**<br/>``` json<br/>{<br/> "status": "ok",<br/> "content": {<br/> "cursor": {<br/> "has_next": true,<br/> "has_prev": false,<br/> "prev": "",<br/> "next": "2016-03-31"<br/> },<br/> "count": 2,<br/> "issues": [<br/> {<br/> "items_count": 10,<br/> "title": "今天,我是不会骗你的",<br/> "items": [<br/> {<br/> "publish_time": "2016-04-01 00:00:18",<br/> "url": "http://www.xiachufang.com/recipe/100466460/",<br/> "template": 6,<br/> "id": 1906,<br/> "contents": {<br/> "image": {<br/> "url": "http://s2.cdn.xiachufang.com/1be3b60ff72e11e59977cb15070b2df8.jpg?imageView2/2/interlace/1/q/85/format/jpg/.jpg",<br/> "width": "640",<br/> "height": "440"<br/> }<br/> },<br/> "column_name": ""<br/> },<br/> ...<br/> ]<br/> }<br/> ]<br/> }<br/>}<br/>```<br/><br/>- **分析:**<br/> - `cursor`:相关<br/> - `count`:所获取菜谱组数(即几天的菜谱)<br/> - `issues`:当天菜谱数据<br/> - `items_count`:菜谱个数<br/> - `title`:当天菜谱标题<br/> - `items`:每道菜谱<br/> - `publish_time`:菜谱发布时间<br/> - `url`:网页**url**(模板不同,**url**处理不同)<br/> - `template`:模板<br/> - `id`:跳转界面的**id**<br/> - `contents`:菜谱显示内容(模板不同,对应`contents`不同)<br/> - `image`:图片内容<br/> - `url`:图片地址<br/> - `width`:图片宽度<br/> - `height`:图片高度<br/> - `column_name`:未知<br/> - `issue_id`:当天菜谱id<br/> - `publish_date`:当天菜谱发布日期<br/> - `today_events`:当天事件(作用未知)<br/> <br/>- **不同模板对应不同`url`、`contents`**<br/> **模板1:帖子**<br/> - `url`:直接跳转<br/> `http://simplecms.xiachufang.com/posts/678/`<br/> - `contents`:菜谱显示内容<br/> - `image`:图片内容<br/> - `url`:图片地址<br/> - `width`:图片宽度<br/> - `height`:图片高度<br/> - `desc`:描述<br/> - `title`:标题<br/> <br/> **模板2:菜单**<br/> - `url`:根据字符串判断跳转界面<br/> `http://www.xiachufang.com/recipe_list/101665990/`<br/> - `contents`:菜谱显示内容<br/> - `title_2nd`:子标题<br/> - `title_1st`:标题<br/> - `image`:图片内容<br/> - `url`:图片地址<br/> - `width`:图片宽度<br/> - `height`:图片高度<br/> <br/> **模板4:作品**<br/> - `url`:根据字符串判断跳转界面<br/> `http://www.xiachufang.com/dish/113630319`<br/> - `contents`:菜谱显示内容<br/> - `whisper`:标题<br/> - `image`:图片内容<br/> - `url`:图片地址<br/> - `width`:图片宽度<br/> - `height`:图片高度<br/> <br/> **模板5:菜谱**<br/> - `url`:网页URL<br/> - `contents`:菜谱显示内容<br/> - `video_url`:视频地址<br/> - `image`:图片内容<br/> - `url`:图片地址<br/> - `width`:图片宽度<br/> - `height`:图片高度<br/> - `author`:作者<br/> - `url`:作者详情url<br/> - `photo`:作者头像<br/> - `id`:作者id<br/> - `name`:作者名字<br/> - `desc`:描述<br/> - `title`:标题<br/> - `n_cooked`:做过的人数<br/> - `n_dishes`:作品数<br/> - `score`:评分<br/> - `recipe_id`:食谱id<br/><br/> **模板6:周刊**<br/> - `url`:直接跳转<br/> `http://simplecms.xiachufang.com/posts/673/`<br/> - `contents`:菜谱显示内容<br/> - `image`:图片内容<br/> - `url`:图片地址<br/> - `width`:图片宽度<br/> - `height`:图片高度<br/> <br/> <br/>## 2. 关注动态<br/>- **url:**<br/>`http://api.xiachufang.com/v2/account/feeds_v3.json?offset=0&origin=iphone&api_sign=5682ea5db42972d13cc17bc1401000fe&sk=7UnwJ-JkQ36hbfrMRoL0fA&limit=10&version=5.1.1&api_key=0f9f79be1dac5f003e7de6f876b17c00`<br/><br/>- **响应实例:**<br/>``` json<br/>{<br/> "status": "ok",<br/> "content": {<br/> "count": 10,<br/> "feeds": [<br/> {<br/> "dish": {<br/> "photo": "http://s1.cdn.xiachufang.com/74b29ad7f74711e58422ad0432d0ed1f.jpg@2o_50sh_1pr_1l_600w_90q_1wh.jpg",<br/> "friendly_create_time": "5天前",<br/> "create_time": "2016-03-31 21:50:30",<br/> "npics": 1,<br/> "pic_tags": [],<br/> "ncomments": 104,<br/> ....<br/> "kind": 1005,<br/> "id": 118636400,<br/> "ncomments": 0<br/> },<br/> ...<br/> }<br/> ]<br/> }<br/>}<br/>```<br/><br/>- **分析:**<br/> - `count`:动态个数<br/> - `feeds`:动态内容<br/> - `dish`:作品数据(模板4作品数据)<br/> - `kind`:类型 作用未知<br/> - `id`:**id**<br/> - `ncomments`:评论数<br/> <br/> <br/>## 3. 导航数据<br/>- **url:**<br/>`http://api.xiachufang.com/v2/init_page_v5.json?version=5.1.1&timezone=Asia%2FShanghai&api_sign=8436824b4ec402b228bf20028d49c9b5&api_key=0f9f79be1dac5f003e7de6f876b17c00&origin=iphone&sk=7UnwJ-JkQ36hbfrMRoL0fA`<br/><br/>- **响应实例:**<br/>``` json<br/>{<br/> "status": "ok",<br/> "content": {<br/> "pop_events": {<br/> "count": 2,<br/> "events": [<br/> {<br/> "n_dishes": 4227,<br/> "customization": {},<br/> "id": "100103943",<br/> "dishes": {<br/> "dishes": [<br/> {<br/> "thumbnail_280": "http://s1.cdn.xiachufang.com/8dc43d8cf78c11e59258bb83824c504b.jpg@2o_50sh_1pr_1l_280w_280h_1c_1e_90q_1wh.jpg"<br/> },<br/> {<br/> "thumbnail_280": "http://s1.cdn.xiachufang.com/b85aec24f79811e58808b82a72e00100.jpg@2o_50sh_1pr_1l_280w_280h_1c_1e_90q_1wh.jpg"<br/> },<br/> {<br/> "thumbnail_280": "http://s2.cdn.xiachufang.com/d0bc4470f79b11e5aa2977e2a243108d.jpg?imageView2/1/w/280/h/280/interlace/1/q/90/format/jpg/.jpg"<br/> },<br/> {<br/> "thumbnail_280": "http://s2.cdn.xiachufang.com/ba195111f7ad11e582e9ab74505d9e69.jpg?imageView2/1/w/280/h/280/interlace/1/q/90/format/jpg/.jpg"<br/> },<br/> {<br/> "thumbnail_280": "http://s1.cdn.xiachufang.com/1f2b765af79211e58808b82a72e00100.jpg@2o_50sh_1pr_1l_280w_280h_1c_1e_90q_1wh.jpg"<br/> }<br/> ]<br/> },<br/> "name": "早餐•2016年4月1日"<br/> },<br/> {<br/> "n_dishes": 2432,<br/> "customization": {},<br/> "id": "100103980",<br/> "dishes": {<br/> "dishes": [<br/> {<br/> "thumbnail_280": "http://s2.cdn.xiachufang.com/41e613b4f7bd11e598acb82a72e00100.jpg?imageView2/1/w/280/h/280/interlace/1/q/90/format/jpg/.jpg"<br/> },<br/> {<br/> "thumbnail_280": "http://s2.cdn.xiachufang.com/ed95b92bf7c111e583c8290a22f6f154.jpg?imageView2/1/w/280/h/280/interlace/1/q/90/format/jpg/.jpg"<br/> },<br/> {<br/> "thumbnail_280": "http://s1.cdn.xiachufang.com/769206b6f7c911e59055b82a72e00100.jpg@2o_50sh_1pr_1l_280w_280h_1c_1e_90q_1wh.jpg"<br/> },<br/> {<br/> "thumbnail_280": "http://s2.cdn.xiachufang.com/a2f99d57f7ac11e58213c33a40356101.jpg?imageView2/1/w/280/h/280/interlace/1/q/90/format/jpg/.jpg"<br/> },<br/> {<br/> "thumbnail_280": "http://s2.cdn.xiachufang.com/9ef2f80ef7c911e59055b82a72e00100.jpg?imageView2/1/w/280/h/280/interlace/1/q/90/format/jpg/.jpg"<br/> }<br/> ]<br/> },<br/> "name": "午餐•2016年4月1日"<br/> }<br/> ]<br/> },<br/> "navs": [<br/> {<br/> "url": "http://www.xiachufang.com/page/top-list/",<br/> "name": "排行榜",<br/> "picurl": "http://static.xiachufang.com/upload/3693c0aa-66a5-11e5-b02a-e0db5512b208.png"<br/> },<br/> {<br/> "url": "http://www.xiachufang.com/explore/video/",<br/> "name": "看视频",<br/> "picurl": "http://static.xiachufang.com/upload/38a1e07a-66a5-11e5-8394-b82a72e00100.png"<br/> },<br/> {<br/> "url": "https://www.xiachufang.com/explore/buybuybuy/",<br/> "name": "买买买",<br/> "picurl": "http://s2.cdn.xiachufang.com/24819202b43e11e59c9ab82a72e00100.png?imageView2/2/interlace/1/q/85/format/png/.png"<br/> },<br/> {<br/> "url": "http://www.xiachufang.com/page/app-category/",<br/> "name": "菜谱分类",<br/> "picurl": "http://static.xiachufang.com/upload/3c912506-66a5-11e5-8394-b82a72e00100.png"<br/> }<br/> ],<br/> "pop_recipe_picurl": "http://s1.cdn.xiachufang.com/6570f700f4ec11e5a7d23d821bf6757d.jpg@2o_50sh_1pr_1l_280w_216h_1c_1e_90q_1wh.jpg"<br/> }<br/>}<br/>```<br/><br/>- **分析:**<br/> - `pop_events`:导航(早餐、午餐、晚餐)<br/> - `count`:导航个数<br/> - `events`:内容<br/> - `n_dishes`:作品个数<br/> - `customization`:未知<br/> - `id`:导航id<br/> - `dishes`:图片(显示在首页右侧的图片,取第一个显示)<br/> - `thumbnail_280`:图片地址<br/> - `name`:导航标题<br/> - `navs`:分类导航<br/> - `url`:跳转url<br/> - `name`:分类标题<br/> - `picurl`:分类图标<br/> - `pop_recipe_picurl`:顶部食谱图片地址<br/><br/><br/><br/>## 5. cell跳转数据<br/><br/>### 模板1:帖子 直接跳转<br/><br/>### 模板2:菜单<br/>#### 1. 菜单详情<br/>- **url:**<br/>`http://api.xiachufang.com/v2/recipe_lists/show.json?origin=iphone&id=100072887&api_sign=ec3c1a93b369b4f339840abf3f2e64de&pic_size=720&sk=7UnwJ-JkQ36hbfrMRoL0fA&version=5.1.1&api_key=0f9f79be1dac5f003e7de6f876b17c00`<br/><br/>- **响应实例:**<br/>```objc<br/>{<br/> "status": "ok",<br/> "content": {<br/> "update_time": "2014-11-02 09:19:45",<br/> "pv": 0,<br/> "name": "“稻香村”",<br/> "author": {<br/> "photo60": "http://s1.cdn.xiachufang.com/f4b3ae5ed06f11e5bc81c555d5c14291.jpg@2o_50sh_1pr_1l_60w_60h_1c_1e_90q_1wh.jpg",<br/> "photo160": "http://s1.cdn.xiachufang.com/f4b3ae5ed06f11e5bc81c555d5c14291.jpg@2o_50sh_1pr_1l_160w_160h_1c_1e_90q_1wh.jpg",<br/> "name": "DAISY_Liu",<br/> "photo": "http://s1.cdn.xiachufang.com/f4b3ae5ed06f11e5bc81c555d5c14291.jpg@2o_50sh_1pr_1l_60w_60h_1c_1e_90q_1wh.jpg",<br/> "is_expert": false,<br/> "mail": "",<br/> "id": "10697611"<br/> },<br/> "url": "http://www.xiachufang.com/recipe_list/100072887/",<br/> "photo": "",<br/> "recipes": [<br/> 100370460,<br/> 145503,<br/> 100047978,<br/> 21602,<br/> 256890<br/> ],<br/> "sample_recipes": [<br/> {<br/> "video_url": "",<br/> "photo": "http://s2.cdn.xiachufang.com/3b7185687e6211e5ba43310f8cef27ea.jpg?imageView2/2/w/620/interlace/1/q/90/format/jpg/.jpg",<br/> "friendly_create_time": "1年前",<br/> "create_time": "2014-08-21 22:10:18",<br/> "is_exclusive": true,<br/> "photo140": "http://s2.cdn.xiachufang.com/3b7185687e6211e5ba43310f8cef27ea.jpg?imageView2/1/w/140/h/106/interlace/1/q/90/format/jpg/.jpg",<br/> "photo580": "http://s2.cdn.xiachufang.com/3b7185687e6211e5ba43310f8cef27ea.jpg?imageView2/2/w/620/interlace/1/q/90/format/jpg/.jpg",<br/> "id": "100370460",<br/> "photo90": "http://s2.cdn.xiachufang.com/3b7185687e6211e5ba43310f8cef27ea.jpg?imageView2/1/w/280/h/216/interlace/1/q/90/format/jpg/.jpg",<br/> "stats": {<br/> "n_collects": "5093",<br/> "n_comments": "21",<br/> "n_cooked": "70",<br/> "n_dishes": "80",<br/> "cooked_by_me": false,<br/> "n_cooked_last_week": "1",<br/> "n_pv": "0"<br/> },<br/> "thumb": "http://s2.cdn.xiachufang.com/3b7185687e6211e5ba43310f8cef27ea.jpg?imageView2/1/w/140/h/106/interlace/1/q/90/format/jpg/.jpg",<br/> "author": {<br/> "photo60": "http://s2.cdn.xiachufang.com/14bc534883ec11e5b053b82a72e00100.jpg?imageView2/1/w/60/h/60/interlace/1/q/90/format/jpg/.jpg",<br/> "photo160": "http://s2.cdn.xiachufang.com/14bc534883ec11e5b053b82a72e00100.jpg?imageView2/1/w/160/h/160/interlace/1/q/90/format/jpg/.jpg",<br/> "name": "洛凡-lola",<br/> "photo": "http://s2.cdn.xiachufang.com/14bc534883ec11e5b053b82a72e00100.jpg?imageView2/1/w/60/h/60/interlace/1/q/90/format/jpg/.jpg",<br/> "is_expert": true,<br/> "mail": "",<br/> "id": "11441425"<br/> },<br/> "score": "8.8",<br/> "photo526": "http://s2.cdn.xiachufang.com/3b7185687e6211e5ba43310f8cef27ea.jpg?imageView2/2/w/620/interlace/1/q/90/format/jpg/.jpg",<br/> "photo640": "http://s2.cdn.xiachufang.com/3b7185687e6211e5ba43310f8cef27ea.jpg?imageView2/2/w/620/interlace/1/q/90/format/jpg/.jpg",<br/> "ingredient": [<br/> {<br/> "name": "面粉(普通的就成 未漂白的更健康)"<br/> },<br/> {<br/> "name": "熟核桃仁(原味儿的)"<br/> },<br/> {<br/> "name": "白糖"<br/> },<br/> {<br/> "name": "泡打粉"<br/> },<br/> {<br/> "name": "苏打粉(小苏打)"<br/> },<br/> {<br/> "name": "核桃油"<br/> },<br/> {<br/> "name": "水"<br/> }<br/> ],<br/> "video_page_url": "",<br/> "purchase_url": "http://www.xiachufang.com/page/ec/baking_market/?recipe_id=100370460",<br/> "photo80": "http://s2.cdn.xiachufang.com/3b7185687e6211e5ba43310f8cef27ea.jpg?imageView2/1/w/140/h/106/interlace/1/q/90/format/jpg/.jpg",<br/> "photo280": "http://s2.cdn.xiachufang.com/3b7185687e6211e5ba43310f8cef27ea.jpg?imageView2/1/w/280/h/216/interlace/1/q/90/format/jpg/.jpg",<br/> "desc": "500克核桃仁相当于2500克鸡蛋或4750克牛奶的营养价值。。。",<br/> "ident": "3b7185687e6211e5ba43310f8cef27ea.jpg",<br/> "name": "桃酥(孕妇专享健康\"稻香村味儿\"核桃油版桃酥)",<br/> "photo340": "http://s2.cdn.xiachufang.com/3b7185687e6211e5ba43310f8cef27ea.jpg?imageView2/2/w/620/interlace/1/q/90/format/jpg/.jpg"<br/> },<br/> ....<br/> ],<br/> "thumbnail": "",<br/> "collected_by_me": false,<br/> "create_time": "2013-10-28 12:00:45",<br/> "ncollects": 0,<br/> "nrecipes": 28,<br/> "first_recipe": 第一个菜谱,<br/> "id": "100072887",<br/> "desc": "在哪儿都惦记着稻香村的味儿!\r\n虽同是传统点心,也有很多同类菜谱儿、菜单儿,可就是想把那思念的味道给弄一起!"<br/> }<br/>}<br/>```<br/>- **分析:**<br/> - `update_time`:更新时间<br/> - `pv`:返回`integer`作用未知<br/> - `name`:标题<br/> - `author`:菜单作者<br/> - `url`:网页url<br/> - `photo`:图片地址<br/> - `recipes`:`Array`(元素为菜谱的**id**)<br/> - `sample_recipes`:`Array`菜谱详情(元素为`模板5菜谱`)<br/> - `thumbnail`:缩略图地址<br/> - `collected_by_me`:`Boolean`是否被我收藏<br/> - `create_time`:创建时间<br/> - `ncollects`:收藏此菜单的人数<br/> - `nrecipes`:菜单内菜谱数<br/> - `first_recipe`:第一个菜谱(内容与`菜谱详情数组`第一个元素相同)<br/> - `id`:菜单**id**<br/> - `desc`:菜单描述<br/><br/>#### 2. 菜单内菜谱`理由`数据<br/><br/>- **url:**<br/>`http://api.xiachufang.com/v2/recipe_lists/100072887/recipes_v2.json?offset=0&origin=iphone&api_sign=2057b55a66e4d86a9284232741762f0e&sk=7UnwJ-JkQ36hbfrMRoL0fA&limit=20&version=5.1.1&api_key=0f9f79be1dac5f003e7de6f876b17c00`<br/><br/>- **返回实例:**<br/>```objc<br/>{<br/> "status": "ok",<br/> "content": {<br/> "count": 20,<br/> "recipes": [<br/> {<br/> "reason": "",<br/> "recipe_id": "100370460"<br/> },<br/> {<br/> "reason": "看到微博大家的留言所以来加!可是这个似乎不太一样。。",<br/> "recipe_id": "227562"<br/> },<br/> ....<br/> ],<br/> "total": 28<br/> }<br/>}<br/>```<br/><br/>- **分析:**<br/> - `count`:菜谱个数<br/> - `recipes`:`Array`菜谱**id**与**理由**数组<br/> - `reason`:理由(有则显示)<br/> - `recipe_id`:菜谱**id**<br/> - `total`:菜谱个数<br/><br/>### 模板4:作品<br/>- **url:**<br/>`http://api.xiachufang.com/v2/dishes/show_v2.json?version=5.1.1&id=115286113&api_sign=b4d9108454ecd4b57009eefc87970a57&api_key=0f9f79be1dac5f003e7de6f876b17c00&origin=iphone&sk=7UnwJ-JkQ36hbfrMRoL0fA`<br/><br/>- **返回实例:**<br/>```objc<br/>{<br/> "status": "ok",<br/> "content": {<br/> "dish": {<br/> "photo": "http://s1.cdn.xiachufang.com/74b29ad7f74711e58422ad0432d0ed1f.jpg@2o_50sh_1pr_1l_600w_90q_1wh.jpg",<br/> "friendly_create_time": "5天前",<br/> "create_time": "2016-03-31 21:50:30",<br/> "npics": 1,<br/> "pic_tags": [],<br/> "ncomments": 104,<br/> "thumbnail_280": "http://s1.cdn.xiachufang.com/74b29ad7f74711e58422ad0432d0ed1f.jpg@2o_50sh_1pr_1l_280w_280h_1c_1e_90q_1wh.jpg",<br/> "author": {<br/> "hometown_location": "",<br/> "photo60": "http://s2.cdn.xiachufang.com/0135851c856611e59fc6d10cd655714f.jpg?imageView2/1/w/60/h/60/interlace/1/q/90/format/jpg/.jpg",<br/> "photo160": "http://s2.cdn.xiachufang.com/0135851c856611e59fc6d10cd655714f.jpg?imageView2/1/w/160/h/160/interlace/1/q/90/format/jpg/.jpg",<br/> "name": "lulututu",<br/> "photo": "http://s2.cdn.xiachufang.com/0135851c856611e59fc6d10cd655714f.jpg?imageView2/1/w/60/h/60/interlace/1/q/90/format/jpg/.jpg",<br/> "is_expert": true,<br/> "current_location": "",<br/> "mail": "",<br/> "id": "101194114"<br/> },<br/> "main_pic": {<br/> "280": "http://s1.cdn.xiachufang.com/74b29ad7f74711e58422ad0432d0ed1f.jpg@2o_50sh_1pr_1l_280w_280h_1c_1e_90q_1wh.jpg",<br/> "600": "http://s1.cdn.xiachufang.com/74b29ad7f74711e58422ad0432d0ed1f.jpg@2o_50sh_1pr_1l_600w_90q_1wh.jpg",<br/> "ident": "74b29ad7f74711e58422ad0432d0ed1f.jpg"<br/> },<br/> "id": "115286113",<br/> "extra_pics": [],<br/> "thumbnail": "http://s1.cdn.xiachufang.com/74b29ad7f74711e58422ad0432d0ed1f.jpg@2o_50sh_1pr_1l_280w_280h_1c_1e_90q_1wh.jpg",<br/> "digg_users": {<br/> "count": 5,<br/> "total": 715,<br/> "users": [<br/> {<br/> "photo60": "http://s2.cdn.xiachufang.com/83c7114a8ab511e59714918d68b3a9c6.jpg?imageView2/1/w/60/h/60/interlace/1/q/90/format/jpg/.jpg",<br/> "photo160": "http://s2.cdn.xiachufang.com/83c7114a8ab511e59714918d68b3a9c6.jpg?imageView2/1/w/160/h/160/interlace/1/q/90/format/jpg/.jpg",<br/> "name": "KAIXIN。",<br/> "photo": "http://s2.cdn.xiachufang.com/83c7114a8ab511e59714918d68b3a9c6.jpg?imageView2/1/w/30/h/30/interlace/1/q/90/format/jpg/.jpg",<br/> "is_expert": false,<br/> "mail": "",<br/> "id": "104864686"<br/> },<br/> ....<br/> ]<br/> },<br/> "ndiggs": 715,<br/> "recipe_id": "100643670",<br/> "latest_comments": [<br/> {<br/> "author": {<br/> "photo60": "http://s2.cdn.xiachufang.com/0135851c856611e59fc6d10cd655714f.jpg?imageView2/1/w/60/h/60/interlace/1/q/90/format/jpg/.jpg",<br/> "photo160": "http://s2.cdn.xiachufang.com/0135851c856611e59fc6d10cd655714f.jpg?imageView2/1/w/160/h/160/interlace/1/q/90/format/jpg/.jpg",<br/> "name": "lulututu",<br/> "photo": "http://s2.cdn.xiachufang.com/0135851c856611e59fc6d10cd655714f.jpg?imageView2/1/w/60/h/60/interlace/1/q/90/format/jpg/.jpg",<br/> "is_expert": true,<br/> "mail": "",<br/> "id": "101194114"<br/> },<br/> "at_users": [<br/> {<br/> "photo60": "http://s2.cdn.xiachufang.com/78f4165e9bf011e58a5259e98bce7065.jpg?imageView2/1/w/60/h/60/interlace/1/q/90/format/jpg/.jpg",<br/> "photo160": "http://s2.cdn.xiachufang.com/78f4165e9bf011e58a5259e98bce7065.jpg?imageView2/1/w/160/h/160/interlace/1/q/90/format/jpg/.jpg",<br/> "name": "抹茶小姐很high",<br/> "photo": "http://s2.cdn.xiachufang.com/78f4165e9bf011e58a5259e98bce7065.jpg?imageView2/1/w/30/h/30/interlace/1/q/90/format/jpg/.jpg",<br/> "is_expert": false,<br/> "mail": "",<br/> "id": "107905432"<br/> }<br/> ....<br/> ],<br/> }<br/> ....<br/> ],<br/> "desc": "你瞪啥?\r\n\r\n还看得出来是Sunny的包吗?可是好像有奇怪东西冒了出来👻\r\n做的时候真没想到会这样啊~~思想又飘到外太空去了🌚 \r\n#早餐•2016年4月1日#",<br/> "is_orphan": false,<br/> "ident": "74b29ad7f74711e58422ad0432d0ed1f.jpg",<br/> "name": "花样水果吐司",<br/> "thumbnail_160": "http://s1.cdn.xiachufang.com/74b29ad7f74711e58422ad0432d0ed1f.jpg@2o_50sh_1pr_1l_280w_280h_1c_1e_90q_1wh.jpg",<br/> "events": [<br/> {<br/> "is_promoted": true,<br/> "id": "100103943",<br/> "name": "早餐•2016年4月1日",<br/> "author": {<br/> "photo60": "http://s2.cdn.xiachufang.com/59b45da3b39611e5be47e0db5512b208.jpg?imageView2/1/w/60/h/60/interlace/1/q/90/format/jpg/.jpg",<br/> "photo160": "http://s2.cdn.xiachufang.com/59b45da3b39611e5be47e0db5512b208.jpg?imageView2/1/w/160/h/160/interlace/1/q/90/format/jpg/.jpg",<br/> "name": "xcf",<br/> "photo": "http://s2.cdn.xiachufang.com/59b45da3b39611e5be47e0db5512b208.jpg?imageView2/1/w/60/h/60/interlace/1/q/90/format/jpg/.jpg",<br/> "is_expert": false,<br/> "mail": "",<br/> "id": "100000"<br/> }<br/> }<br/> ],<br/> "digged_by_me": false,<br/> "at_users": []<br/> }<br/> }<br/>}<br/>```<br/><br/>- **分析:**<br/> - `dish`:作品详情<br/> - `photo`:图片地址(大小为600)<br/> - `friendly_create_time`:显示时间<br/> - `create_time`:创建时间<br/> - `npics`:图片总数<br/> - `pic_tags`:(数组)未知<br/> - `ncomments`:评论数<br/> - `thumbnail_280`:缩略图(大小为280)<br/> - `author`:作者<br/> - `hometown_location`:家乡<br/> - `photo60`:头像(尺寸60)<br/> - `photo160`:头像(尺寸160)<br/> - `name`:昵称<br/> - `photo`:头像(尺寸60)<br/> - `is_expert`:是否为专家(是则显示专家标识)<br/> - `current_location`:当前地址<br/> - `mail`:邮箱<br/> - `id`:用户id<br/> - `main_pic`:主要图片<br/> - `280`:图片地址(尺寸280)<br/> - `ident`:标识(即图片名字)<br/> - `600`:图片地址(尺寸600)<br/> - `id`:作品对应**id**<br/> - `extra_pics`:附加图片<br/> - `280`:图片地址(尺寸280)<br/> - `ident`:标识(即图片名字)<br/> - `600`:图片地址(尺寸600)<br/> - `thumbnail`:缩略图<br/> - `digg_users`:点赞用户<br/> - `count`:显示点赞用户的数量(作用未知)<br/> - `total`:总点赞人数<br/> - `users`:点赞用户数组(元素为`author`)<br/> - `ndiggs`:(Integer)未知<br/> - `recipe_id`:菜谱id<br/> - `latest_comments`:`Array`最后评论(元素为`评论`)<br/> - `author`:作者<br/> - `at_users`:`Array`(元素为`作者`)<br/> - `target_id`:事件**id**<br/> - `create_time`:评论创建时间<br/> - `txt`:评论内容<br/> - `id`:评论**id**<br/> - `desc`:文字描述<br/> - `is_orphan`:是否为分享内容<br/> - `ident`:标识(图片名字)<br/> - `name`:菜谱名称<br/> - `thumbnail_160`:图片地址<br/> - `events`:`Array`(分享才有的数据)<br/> - `is_promoted`:是否被推广<br/> - `id`:**id**<br/> - `name`:标题<br/> - `author`:作者<br/> - `digged_by_me`:是否被我点赞<br/> - `at_users`:`Array`评论的用户数据数组<br/><br/>### 模板5:菜谱<br/>#### 1. 菜谱详情<br/>- **url:**<br/>`http://api.xiachufang.com/v2/recipes/show_v2.json?origin=iphone&mode=full&id=101773324&api_sign=6332fd2dc5517a725cc5a7fb8e58ea5e&sk=7UnwJ-JkQ36hbfrMRoL0fA&version=5.1.1&api_key=0f9f79be1dac5f003e7de6f876b17c00`<br/><br/>- **返回实例:**<br/>```objc<br/>{<br/> "status": "ok",<br/> "content": {<br/> "recipe": {<br/> "instruction": [<br/> {<br/> "url": "http://s2.cdn.xiachufang.com/0bd8bc14f64511e596f0b82a72e00100.jpg?imageView2/1/w/400/h/320/interlace/1/q/90/format/jpg/.jpg",<br/> "text": "猪里脊肉切1.5cm宽厚片。然后撒上盐、蒜泥、蜂蜜搓搓搁一边腌制2小时,然后你去玩玩手机啦看看电视啦待会再来以至于我忘记拍腌制步骤了。",<br/> "step": "0",<br/> "ident": "0bd8bc14f64511e596f0b82a72e00100.jpg"<br/> },<br/> ....<br/> ],<br/> "video_url": "",<br/> "photo": "http://s2.cdn.xiachufang.com/7fb4fd0ff64411e5bee01d5566363f54.jpg?imageView2/2/w/620/interlace/1/q/90/format/jpg/.jpg",<br/> "friendly_create_time": "6天前",<br/> "create_time": "2016-03-30 15:17:11",<br/> "is_exclusive": false,<br/> "photo140": "http://s2.cdn.xiachufang.com/7fb4fd0ff64411e5bee01d5566363f54.jpg?imageView2/1/w/140/h/106/interlace/1/q/90/format/jpg/.jpg",<br/> "photo580": "http://s2.cdn.xiachufang.com/7fb4fd0ff64411e5bee01d5566363f54.jpg?imageView2/2/w/620/interlace/1/q/90/format/jpg/.jpg",<br/> "id": "101773324",<br/> "video_page_url": "",<br/> "photo90": "http://s2.cdn.xiachufang.com/7fb4fd0ff64411e5bee01d5566363f54.jpg?imageView2/1/w/280/h/216/interlace/1/q/90/format/jpg/.jpg",<br/> "stats": {<br/> "n_collects": "9172",<br/> "n_comments": "18",<br/> "n_cooked": "16",<br/> "n_dishes": "20",<br/> "cooked_by_me": false,<br/> "n_cooked_last_week": "15",<br/> "n_pv": "0"<br/> },<br/> "thumb": "http://s2.cdn.xiachufang.com/7fb4fd0ff64411e5bee01d5566363f54.jpg?imageView2/1/w/140/h/106/interlace/1/q/90/format/jpg/.jpg",<br/> "author": {<br/> "photo60": "http://s2.cdn.xiachufang.com/960aa8d1ac2d11e5a321fd63a523483a.jpg?imageView2/1/w/60/h/60/interlace/1/q/90/format/jpg/.jpg",<br/> "photo160": "http://s2.cdn.xiachufang.com/960aa8d1ac2d11e5a321fd63a523483a.jpg?imageView2/1/w/160/h/160/interlace/1/q/90/format/jpg/.jpg",<br/> "name": "阿修罗ashura",<br/> "photo": "http://s2.cdn.xiachufang.com/960aa8d1ac2d11e5a321fd63a523483a.jpg?imageView2/1/w/60/h/60/interlace/1/q/90/format/jpg/.jpg",<br/> "is_expert": true,<br/> "mail": "",<br/> "id": "100567322"<br/> },<br/> "score": "",<br/> "tips": "封面图好难选,不切开不足以体现这块猪排的知心程度,切开吧又不足以展现漂亮的外壳。",<br/> "photo526": "http://s2.cdn.xiachufang.com/7fb4fd0ff64411e5bee01d5566363f54.jpg?imageView2/2/w/620/interlace/1/q/90/format/jpg/.jpg",<br/> "photo640": "http://s2.cdn.xiachufang.com/7fb4fd0ff64411e5bee01d5566363f54.jpg?imageView2/2/w/620/interlace/1/q/90/format/jpg/.jpg",<br/> "ingredient": [<br/> {<br/> "amount": "半斤",<br/> "name": "猪里脊",<br/> "cat": "M"<br/> },<br/> ....<br/> ],<br/> "dish_author": [],<br/> "purchase_url": "",<br/> "ident": "7fb4fd0ff64411e5bee01d5566363f54.jpg",<br/> "photo280": "http://s2.cdn.xiachufang.com/7fb4fd0ff64411e5bee01d5566363f54.jpg?imageView2/1/w/280/h/216/interlace/1/q/90/format/jpg/.jpg",<br/> "desc": "hi大家好,我是知心大姐姐,来做一个芝心猪排。过敏患者只能吃吃猪了,多可怜呢嘤嘤嘤。这个猪排炸好了配个色拉,或者来个咖喱饭什么的都是很过瘾呢。",<br/> "photo80": "http://s2.cdn.xiachufang.com/7fb4fd0ff64411e5bee01d5566363f54.jpg?imageView2/1/w/140/h/106/interlace/1/q/90/format/jpg/.jpg",<br/> "name": "知心的猪排",<br/> "url": "http://www.xiachufang.com/recipe/101773324/",<br/> "photo340": "http://s2.cdn.xiachufang.com/7fb4fd0ff64411e5bee01d5566363f54.jpg?imageView2/2/w/620/interlace/1/q/90/format/jpg/.jpg",<br/> "summary": "hi大家好,我是知心大姐姐,来做一个芝心猪排。过敏患者只能吃吃猪了,多可怜呢嘤嘤嘤。这个猪排炸好了配个色拉,或者来个咖喱饭什么的都是很过瘾呢。"<br/> }<br/> }<br/>}<br/>```<br/><br/>- **分析:**<br/> - `recipe`:菜谱<br/> - `instruction`:`Array`步骤介绍数组<br/> - `url`:图片地址<br/> - `text`:文字描述<br/> - `step`:步骤<br/> - `ident`:标识(图片名字)<br/> - `video_url`:视频地址<br/> - `video_page_url`:视频页面**url**<br/> - `friendly_create_time`:创建时间<br/> - `create_time`:创建时间<br/> - `is_exclusive`:是否为独家(是则显示`独家`图标)<br/> - `id`:菜谱**id**<br/> - `stats`:菜谱状态<br/> - `n_collects`:被收藏次数<br/> - `n_comments`:评论数<br/> - `n_cooked`:做过的人数<br/> - `n_dishes`:作品数<br/> - `cooked_by_me`:是否由我制作(作用未知)<br/> - `n_cooked_last_week`:最近7天做过人数<br/> - `n_pv`:未知<br/> - `author`:作者<br/> - `score`:分数<br/> - `tips`:小贴士(有则显示)<br/> - `ingredient`:`Array`用料<br/> - `name`:名称<br/> - `amount`:数量<br/> - `cat`:未知<br/> - `dish_author`:`Array`作品作者(未知)<br/> - `purchase_url`:一键购买**url**`直接跳转`<br/> - `url`:菜谱**url**<br/> - `desc`:菜谱描述<br/> - `summary`:菜谱简述<br/> - `ident`:标识(图片的名字)<br/> - `name`:菜谱标题<br/> - `photo`:菜谱图片<br/> - `thumb`:缩略图<br/> - `photo80`:菜谱图片<br/> - `photo90`:菜谱图片<br/> - `photo140`:菜谱图片<br/> - `photo280`:菜谱图片<br/> - `photo340`:菜谱图片<br/> - `photo526`:菜谱图片<br/> - `photo580`:菜谱图片<br/> - `photo640`:菜谱图片<br/><br/>#### 2. 菜谱作品id数组数据<br/>- **url:**<br/>`http://api.xiachufang.com/v2/recipes/101773324/dishes_v2.json?detail=false&offset=0&origin=iphone&api_sign=43b447f66fff40e58f39d1aa7b6aab0e&sk=7UnwJ-JkQ36hbfrMRoL0fA&limit=4&version=5.1.1&api_key=0f9f79be1dac5f003e7de6f876b17c00`<br/><br/>- **返回实例:**<br/>```objc<br/>{<br/> "status": "ok",<br/> "content": {<br/> "count": 4,<br/> "total": 20,<br/> "dish_ids": [<br/> 115422648,<br/> 115406797,<br/> 115405331,<br/> 115400878<br/> ]<br/> }<br/>}<br/>```<br/><br/>- **分析:**<br/> - `count`:显示的作品数量<br/> - `total`:所有作品总数<br/> - `dish_ids`:`Array`作品**id**数组<br/> <br/><br/>#### 3. 菜谱内作品详细数据<br/>- **url:**<br/>`http://api.xiachufang.com/v2/dishes/lookup_v2.json?version=5.1.1&id=115422648%2C115406797%2C115405331%2C115400878&api_sign=ca8aa5cbae7ce01e2c705e4cef02c0ac&api_key=0f9f79be1dac5f003e7de6f876b17c00&origin=iphone&sk=7UnwJ-JkQ36hbfrMRoL0fA`<br/><br/>- **返回实例:**<br/>```objc<br/>{<br/> "status": "ok",<br/> "content": {<br/> "count": "4",<br/> "dishes": [<br/> {<br/> "photo": "http://s1.cdn.xiachufang.com/3090a94cfaee11e59e91b701d551df8c.jpg@2o_50sh_1pr_1l_600w_90q_1wh.jpg",<br/> "friendly_create_time": "4小时前",<br/> "create_time": "2016-04-05 13:21:03",<br/> "npics": 1,<br/> "pic_tags": [],<br/> "ncomments": 0,<br/> ....<br/>```<br/><br/>- **分析:**<br/> - `dishes`:`Array`作品数组(元素为`模板4作品数据`)<br/><br/>#### 4. `被加入的菜单`数据<br/>- **url:**<br/>`http://api.xiachufang.com/v2/recipes/101773324/related_recipe_lists_v2.json?detail=true&offset=0&origin=iphone&api_sign=13227ccd1adc16087e67960be8b45457&sk=7UnwJ-JkQ36hbfrMRoL0fA&limit=2&version=5.1.1&api_key=0f9f79be1dac5f003e7de6f876b17c00`<br/><br/>- **返回实例:**<br/>```objc<br/>{<br/> "status": "ok",<br/> "content": {<br/> "count": 2,<br/> "total": 43,<br/> "recipe_lists": [<br/> {<br/> "name": "元气简餐",<br/> "author": {<br/> "photo60": "http://s1.cdn.xiachufang.com/f987f56cdf5511e5b3e4b82a72e00100.jpg@2o_50sh_1pr_1l_60w_60h_1c_1e_90q_1wh.jpg",<br/> ....<br/>```<br/><br/>- **分析:**<br/> - `count`:当前显示`被加入的菜单`数量<br/> - `total`:总共`被加入的菜单`数量<br/> - `recipe_lists`:`Array`菜单数组(元素为前面的`模型2菜单`)<br/><br/><br/>### 模板6:周刊 直接跳转</body></html>