Changes between Version 7 and Version 8 of intfs


Ignore:
Timestamp:
10/08/2012 05:35:59 PM (14 years ago)
Author:
daiyuwen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • intfs

    v7 v8  
    127127 
    128128产品库: 
    129      分类产品列表:http://mrobot.pconline.com.cn/v2/product/types/{产品分类id}?pageNo=1&orderId=1&fmt=json [[BR]] 
    130      例子:http://mrobot.pconline.com.cn/v2/product/types/20937?pageNo=1&orderId=1&fmt=json 
    131           请求方式:get [[BR]] 
    132           是否需要登录:否 [[BR]] 
    133           请求参数: 
    134                pageNo:页码 [[BR]] 
    135                orderId:排序方式,1为按热度倒序,2为按热度正序,3为按价格倒序,4为按价格正序,5为按日期倒序,6为按日期正序 [[BR]] 
    136                fmt:返回格式 
     129     显示分类排名前三的品牌:http://mrobot.pconline.com.cn/v3/product/brandNameTop 
     130            例子:http://mrobot.pconline.com.cn/v3/product/brandNameTop?type=index    [[BR]] 
     131            请求方式:get [[BR]] 
     132            是否需要登录:否 [[BR]] 
     133            请求参数: 
     134                type : 请求的类型 若为index 则为 首页的品牌推荐,若为diys则为diy部分的品牌推荐 
     135                 
     136                 
     137     某产品类型的品牌列表:http://mrobot.pconline.com.cn/v3/product/brand/{产品类型id} 
     138            范例: http://mrobot.pconline.com.cn/v3/product/brand/20937    [[BR]] 
     139            请求方式:get [[BR]] 
     140            是否需要登录:否 [[BR]] 
     141            请求参数: 
     142                {产品类型id} : 产品类型id 
     143                 
     144                 
     145     产品列表:http://mrobot.pconline.com.cn/v3/product/types/${typeId}?brandId=${brandId}&orderId=${orderId}&pageNo=${pageNo} 
     146            范例: http://mrobot.pconline.com.cn/v3/product/types/20937?brandId=46291&orderId=1&pageNo=1    [[BR]] 
     147            请求方式:get [[BR]] 
     148            是否需要登录:否 [[BR]] 
     149            请求参数: 
     150                  typeId:产品分类id 
     151                  pageNo:页码  
     152                  orderId:排序方式,1为按热度倒序,2为按热度正序,3为按价格倒序,4为按价格正序,5为按日期倒序 ,6为按日期正序, 
     153                    brandId:品牌id 
     154 
     155     搜索产品(产品结果列表):http://mrobot.pconline.com.cn/v3/product/models/search?q=${q}&pageNo=${pageNo}&pageSize=${pageSize}&typeId=${typeId}&orderId={orderId} 
     156        范例: http://mrobot.pconline.com.cn/v3/product/models/search?q=%E4%B8%89%E6%98%9F&pageNo=1&pageSize=10&typeId=20937&orderId=3    [[BR]] 
     157        请求方式:get [[BR]] 
     158        是否需要登录:否 [[BR]] 
     159        请求参数: 
     160                q:查询关键字 需要utf-8编码 
     161                typeId:查询的类型Id, 例如:手机20937 笔记本20806 
     162                pageNo:显示的页码,默认为1; 
     163                pageSize:显示的页码,显示的页数;默认为25 
     164                orderId:排序方式,1为按热度倒序,2为按热度正序,3为按价格倒序,4为按价格正序,5为按日期倒序 ,6为按日期正序, 
     165      
     166     产品终端页概述:http://mrobot.pconline.com.cn/v3/product/abstact/${productID} 
     167        范例: http://mrobot.pconline.com.cn/v3/product/abstact/473123     [[BR]] 
     168        请求方式:get [[BR]] 
     169        是否需要登录:否 [[BR]] 
     170        请求参数: 
     171                productID: 类型id 
     172      
     173      
     174     产品终端页参数:http://mrobot.pconline.com.cn/v3/product/detail/{productId} 
     175        范例: http://mrobot.pconline.com.cn/v3/product/detail/473123    [[BR]] 
     176        请求方式:get [[BR]] 
     177        是否需要登录:否 [[BR]] 
     178        请求参数: 
     179                productId: 类型id 
     180      
     181     产品终端页报价:http://mrobot.pconline.com.cn/v3/product/price/${productId}?areaId=${areaId}&areaName=${areaName} 
     182        范例: http://mrobot.pconline.com.cn/v3/product/price/480434?areaId=2    [[BR]] 
     183        请求方式:get [[BR]] 
     184        是否需要登录:否 [[BR]] 
     185        请求参数: 
     186               productId: 产品id 
     187               areaId     地区ID (可选)   默认为全国 
     188               areaName   地区名  (可选) UTF-8编码 
     189      
     190      
     191     产品终端页报价-得到地区列表:http://mrobot.pconline.com.cn/v3/product/price/${productId}?fmt=json&area=true 
     192        范例: http://mrobot.pconline.com.cn/v3/product/price/480434?fmt=json&area=true    [[BR]] 
     193        请求方式:get [[BR]] 
     194        是否需要登录:否 [[BR]] 
     195        请求参数: 
     196               productId: 产品id 
     197      
     198     请求产品资讯:http://mrobot.pconline.com.cn/v3/product/information/{modelId} 
     199        范例: http://mrobot.pconline.com.cn/v3/product/information/501690    [[BR]] 
     200        请求方式:get [[BR]] 
     201        是否需要登录:否 [[BR]] 
     202        请求参数: 
     203               modelId:产品id  
     204               pageNo:第几页 
     205               pageSize:分页数 
     206      
     207     产品点评界面:http://mrobot.pconline.com.cn/v3/product/comments/{modelId} 
     208        范例: http://mrobot.pconline.com.cn/v3/product/comments/501690    [[BR]] 
     209        请求方式:get [[BR]] 
     210        是否需要登录:否 [[BR]] 
     211        请求参数: 
     212               modelId: 产品id 
     213      
     214     产品终端页网上比价:http://mrobot.pconline.com.cn/v3/product/comparePrice/{productId} 
     215        范例: http://mrobot.pconline.com.cn/v3/product/comparePrice/473123    [[BR]] 
     216        请求方式:get [[BR]] 
     217        是否需要登录:否 [[BR]] 
     218        请求参数: 
     219              productId: 类型id 
     220      
     221     产品对比页:http://mrobot.pconline.com.cn/v3/product/detailCompare?id1=${id1}&id2=${id2} 
     222        范例: http://mrobot.pconline.com.cn/v3/product/detailCompare?id1=480434&id2=473123    [[BR]] 
     223        请求方式:get [[BR]] 
     224        是否需要登录:否 [[BR]] 
     225        请求参数: 
     226              id1和id2:是需要对比的两个产品id 
     227      
     228     搜索产品(品牌分类统计)http://mrobot.pconline.com.cn/v3/product/models/search-type?kw={kw} 
     229        范例: http://mrobot.pconline.com.cn/v3/product/models/search-type?kw=%e8%81%94%e6%83%b3    [[BR]] 
     230        请求方式:get [[BR]] 
     231        是否需要登录:否 [[BR]] 
     232        请求参数: 
     233              kw:查询关键字(采用UTF-8方式编码) 
     234      
     235     搜索产品(品牌分类统计)http://mrobot.pconline.com.cn/v3/product/post_comment/?method=addMobile 
     236        请求方式:get [[BR]] 
     237        是否需要登录:否 [[BR]] 
     238        请求参数: 
     239              productId: 产品ID  必填 
     240              score  :  分数 从1到5的整数 必填 
     241              title  : 标题   UTF-8编码  必填 
     242              advantage  :优点  UTF-8编码      请提交“暂无”这两个字的UTF-8编码   必填 
     243                deficiency   :缺点   UTF-8编码   请提交“暂无”这两个字的UTF-8编码  必填 
     244                summary     :总结   UTF-8编码  必填 
     245              common_session_id    :太平洋网络通行证的sessionId 若为空则匿名发评论 
     246        返回参数: 
     247          { 
     248          "stats":"ok", 
     249          "msg":"发送成功" 
     250          } 
     251           
     252          Stats发送状态,成功为ok,失败为error, 
     253          msg中显示提示的信息 ,例如必填字段未填,或者其他必要的提示等 
     254      
     255     产品搜索热点推荐 http://mrobot.pconline.com.cn/v3/product/hotspot/ 
     256        请求方式:get [[BR]] 
     257        是否需要登录:否 [[BR]] 
     258        请求参数: 
     259              无 
    137260 
    138261     根据产品分类id返回选机条件:http://mrobot.pconline.com.cn/v2/product/models/criterion/{产品分类id} [[BR]] 
    139      例子:http://mrobot.pconline.com.cn/v2/product/models/criterion/20937 
     262     例子:http://mrobot.pconline.com.cn/v2/product/models/criterion/20937    [[BR]] 
    140263          请求方式:get [[BR]] 
    141264          是否需要登录:否 [[BR]] 
     
    152275               fmt:返回数据格式,total代表只返回总数,默认返回分页数据  
    153276 
    154      产品终端页:http://mrobot.pconline.com.cn/v2/product/models/{产品id}?areaName=%E4%B8%8A%E6%B5%B7 [[BR]] 
    155      例子:http://mrobot.pconline.com.cn/v2/product/models/480434?areaName=%E4%B8%8A%E6%B5%B7 
    156           请求方式:get [[BR]] 
    157           是否需要登录:否 [[BR]] 
    158           请求参数 
    159                areaName:地区名,该参数需要url编码 [[BR]] 
    160                detail:是否请求详细参数,该参数不需要设值 
    161  
    162      产品终端-查看所有经销商报价:http://mrobot.pconline.com.cn/v2/product/dealers/{产品id} [[BR]] 
    163      例子:http://mrobot.pconline.com.cn/v2/product/dealers/485270 
    164           请求方式l:get [[BR]] 
    165           是否需要登录:否 [[BR]] 
    166           请求参数:无 
    167  
    168      产品评分:http://mrobot.pconline.com.cn/v2/product/score/{产品id}?score=4 [[BR]] 
    169      例子:http://mrobot.pconline.com.cn/v2/product/score/480434?score=4 
    170           请求方式:get [[BR]] 
    171           是否需要登录:否 [[BR]] 
    172           请求参数: 
    173                score:分数大小 
    174  
    175      请求产品评论:http://mrobot.pconline.com.cn/v2/product/comments/{产品id} [[BR]] 
    176      例子:http://mrobot.pconline.com.cn/v2/product/comments/480434 
    177           请求方式:get     [[BR]] 
    178           是否需要登录:否 [[BR]] 
    179           请求参数:无 
    180277 
    181278     请求产品图片:http://mrobot.pconline.com.cn/v2/product/pictures?modelId=480434&fmt=json&pageSize=999&typeId=1