0
阳光沙滩商城的API文档
拉大锯 发表于 2019-12-02 18:03 6871

阳光沙滩商城的API文档

baseUrl:

https://api.sunofbeach.net/shop

数据格式:json

发现

获取发现页的分类

  • 方法:get
  • 参数:无
  • 接口:/discovery/categories
  • 返回:
{
    "success": true,
    "code": 10000,
    "message": "获取分类成功.",
    "data": [
        {
            "id": 9660,
            "title": "推荐"
        },
        {
            "id": 9649,
            "title": "食品"
        }
    ]
}

字段含义:

  • id 分类的id,也就是materialId
  • title 分类名称

根据发现页分类ID获取分类内容

  • 方法:get
  • 参数:无
  • 接口:/discovery/{materialId}/{page}
    • materialId 分类id
    • page 页码
  • 返回:
{
    "success": true,
    "code": 10000,
    "message": "获取成功.",
    "data": [
        {
            "category_id": 50013196,
            "category_name": null,
            "click_url": "//s.click.taobao.com/t?e=m%3D2%26s%3DhXqHdcVPA31w4vFB6t2Z2ueEDrYVVa64Dne87AjQPk9yINtkUhsv0BcvKH%2BTjMa38aSx7PqjIIZm5nS0VR3oT0KAZCke%2BMGJxC%2FP4%2FZfPFbcQmwDRwHnn1oN8CPq4PKMZiqtwk9j5QPwdDmZ4my9rNxg%2BOuc502%2FxKQVLSayBBekOrGae4DS5oO2CiNcVz0Ken9V8QqUE14KAPbaLraL5LtdhRLMp6nxY4S2k1mJ%2BZU%3D&scm=1007.19011.125573.0_9660&pvid=9e141d3e-367c-445e-b2dd-164409bc01e7&app_pvid=59590_11.8.57.194_76981_1575265017272&ptl=floorId:9660;originalFloorId:9660;pvid:9e141d3e-367c-445e-b2dd-164409bc01e7;app_pvid:59590_11.8.57.194_76981_1575265017272&union_lens=lensId%3AOPT%401575265017%400b0839c2_0d6c_16ec51c9e3e_ba02%4001",
            "commission_rate": "6.0",
            "coupon_amount": 50,
            "coupon_click_url": "//uland.taobao.com/coupon/edetail?e=jTRK9ngpcrwNfLV8niU3R5TgU2jJNKOfU1BGIDN741G0%2Bc5Gzwi6geKSfLX1rbqQLGbJes29FQq2QeBl4W2u75z0DDzD1ZdVKMOj3xTK3tZKuy%2B0WAVbvPskU%2Fn7vZ%2Fe3KE7Ta9aMuRNo1KEDehNsJ4dcb7gMzr8o%2Be84lu5p3EGQASttHIRqUS8oXsFw3XFyDMraI2cBGPGcv8Nne7cgq5OaBGcL9GSTA0FRtOwCuw%3D&&app_pvid=59590_11.8.57.194_76981_1575265017272&ptl=floorId:9660;app_pvid:59590_11.8.57.194_76981_1575265017272;tpp_pvid:9e141d3e-367c-445e-b2dd-164409bc01e7&union_lens=lensId%3AOPT%401575265017%400b0839c2_0d6c_16ec51c9e3e_ba02%4001",
            "coupon_end_time": "1575561599000",
            "coupon_info": null,
            "coupon_remain_count": 97000,
            "coupon_share_url": "//uland.taobao.com/coupon/edetail?e=jTRK9ngpcrwNfLV8niU3R5TgU2jJNKOfU1BGIDN741G0%2Bc5Gzwi6geKSfLX1rbqQLGbJes29FQq2QeBl4W2u75z0DDzD1ZdVKMOj3xTK3tZKuy%2B0WAVbvPskU%2Fn7vZ%2Fe3KE7Ta9aMuRNo1KEDehNsJ4dcb7gMzr8o%2Be84lu5p3EGQASttHIRqUS8oXsFw3XFyDMraI2cBGPGcv8Nne7cgq5OaBGcL9GSTA0FRtOwCuw%3D&&app_pvid=59590_11.8.57.194_76981_1575265017272&ptl=floorId:9660;app_pvid:59590_11.8.57.194_76981_1575265017272;tpp_pvid:9e141d3e-367c-445e-b2dd-164409bc01e7&union_lens=lensId%3AOPT%401575265017%400b0839c2_0d6c_16ec51c9e3e_ba02%4001",
            "coupon_start_fee": "79.0",
            "coupon_start_time": "1575216000000",
            "coupon_total_count": 100000,
            "item_description": "全面升级 加绒加厚 更有加长款满足个高的你",
            "item_id": 560264222655,
            "level_one_category_id": 16,
            "level_one_category_name": "女装/女士精品",
            "nick": "依牧绒旗舰店",
            "pict_url": "//gw.alicdn.com/bao/uploaded/i4/2131383559/O1CN01DMHSl01cA4AO3d5gI_!!0-item_pic.jpg",
            "seller_id": 2131383559,
            "shop_title": "依牧绒旗舰店",
            "small_images": {
                "string": [
                    "//img.alicdn.com/i2/2131383559/O1CN01xvHcmS1cA44x3e8Ag_!!2131383559.jpg",
                    "//img.alicdn.com/i3/2131383559/TB2OuVLjWagSKJjy0FaXXb0dpXa_!!2131383559.jpg",
                    "//img.alicdn.com/i1/2131383559/TB23CrcnYsTMeJjSsziXXcdwXXa_!!2131383559.jpg",
                    "//img.alicdn.com/i3/2131383559/TB2uh5.nYwTMeJjSszfXXXbtFXa_!!2131383559.jpg"
                ]
            },
            "title": "2019秋冬马甲羽绒棉女加绒保暖学生马夹棉服外套女棉衣面包服背心",
            "user_type": 1,
            "volume": 30804,
            "zk_final_price": "79.9"
        },
        {
            "category_id": 50019001,
            "category_name": null,
            "click_url": "//s.click.taobao.com/t?e=m%3D2%26s%3DN8yGtdbUXiVw4vFB6t2Z2ueEDrYVVa64Dne87AjQPk9yINtkUhsv0BcvKH%2BTjMa38aSx7PqjIIZm5nS0VR3oT0KAZCke%2BMGJxC%2FP4%2FZfPFbcQmwDRwHnn1oN8CPq4PKMZiqtwk9j5QNerBM5mSXVLZIQa6qg9eLV0a3u46RXbtekOrGae4DS5oO2CiNcVz0KPqWqRPDXyNNpqoxKosq%2FMbtdhRLMp6nxY4S2k1mJ%2BZU%3D&scm=1007.19011.125573.0_9660&pvid=9e141d3e-367c-445e-b2dd-164409bc01e7&app_pvid=59590_11.8.57.194_76981_1575265017272&ptl=floorId:9660;originalFloorId:9660;pvid:9e141d3e-367c-445e-b2dd-164409bc01e7;app_pvid:59590_11.8.57.194_76981_1575265017272&union_lens=lensId%3AOPT%401575265017%400b0839c2_0d6c_16ec51c9e3f_ba08%4001",
            "commission_rate": "9.0",
            "coupon_amount": 20,
            "coupon_click_url": "//uland.taobao.com/coupon/edetail?e=QQzniHg2%2BooNfLV8niU3R5TgU2jJNKOfU1BGIDN741G0%2Bc5Gzwi6geKSfLX1rbqQLGbJes29FQq2QeBl4W2u7xytS5OGw29olRKZ8DI0LPZKuy%2B0WAVbvPskU%2Fn7vZ%2Fe3KE7Ta9aMuRNo1KEDehNsJ4dcb7gMzr8o%2Be84lu5p3EGQASttHIRqWOUJeY8%2FPSU5VEyZiiJcVy4Q6eh0tBC8a5OaBGcL9GSTA0FRtOwCuw%3D&&app_pvid=59590_11.8.57.194_76981_1575265017272&ptl=floorId:9660;app_pvid:59590_11.8.57.194_76981_1575265017272;tpp_pvid:9e141d3e-367c-445e-b2dd-164409bc01e7&union_lens=lensId%3AOPT%401575265017%400b0839c2_0d6c_16ec51c9e3f_ba08%4001",
            "coupon_end_time": "1575475199000",
            "coupon_info": null,
            "coupon_remain_count": 99000,
            "coupon_share_url": "//uland.taobao.com/coupon/edetail?e=QQzniHg2%2BooNfLV8niU3R5TgU2jJNKOfU1BGIDN741G0%2Bc5Gzwi6geKSfLX1rbqQLGbJes29FQq2QeBl4W2u7xytS5OGw29olRKZ8DI0LPZKuy%2B0WAVbvPskU%2Fn7vZ%2Fe3KE7Ta9aMuRNo1KEDehNsJ4dcb7gMzr8o%2Be84lu5p3EGQASttHIRqWOUJeY8%2FPSU5VEyZiiJcVy4Q6eh0tBC8a5OaBGcL9GSTA0FRtOwCuw%3D&&app_pvid=59590_11.8.57.194_76981_1575265017272&ptl=floorId:9660;app_pvid:59590_11.8.57.194_76981_1575265017272;tpp_pvid:9e141d3e-367c-445e-b2dd-164409bc01e7&union_lens=lensId%3AOPT%401575265017%400b0839c2_0d6c_16ec51c9e3f_ba08%4001",
            "coupon_start_fee": "29.0",
            "coupon_start_time": "1575216000000",
            "coupon_total_count": 100000,
            "item_description": "买1送1 买2送3",
            "item_id": 590710941228,
            "level_one_category_id": 50025705,
            "level_one_category_name": "洗护清洁剂/卫生巾/纸/香薰",
            "nick": "大末居家日用专营店",
            "pict_url": "//gw.alicdn.com/bao/uploaded/i2/1881526428/O1CN01wUGVGL1xM4SAcwL9t_!!0-item_pic.jpg",
            "seller_id": 1881526428,
            "shop_title": "大末居家日用专营店",
            "small_images": {
                "string": [
                    "//img.alicdn.com/i4/1881526428/O1CN01ICyMUo1xM4SL4Rg8S_!!1881526428.jpg",
                    "//img.alicdn.com/i1/1881526428/O1CN01SkxFxs1xM4U6pr6CO_!!1881526428.jpg",
                    "//img.alicdn.com/i2/1881526428/O1CN017aRJGB1xM4TyHZz0M_!!1881526428.jpg",
                    "//img.alicdn.com/i3/1881526428/O1CN01bxnKyp1xM4TzzZZ1S_!!1881526428.jpg"
                ]
            },
            "title": "活氧彩漂白剂彩色衣物还原衣服通用彩票粉家用彩漂粉去渍去黄增白",
            "user_type": 1,
            "volume": 63107,
            "zk_final_price": "29.9"
        }
    ]
}

字段含义:

物料字段解析

生成淘口令

生成淘口令,淘口令就是复制以后打开淘宝会跳转到特定的界面

  • 方法:post
  • 接口:/tpwd
  • body字段:url 要生成淘口令的url地址(必填)
  • body字段:title 内容标题 (非必填)
  • 返回:
{
    "success": true,
    "code": 10000,
    "message": "淘宝口令构建成功!",
    "data": {
        "tbk_tpwd_create_response": {
            "data": {
                "model": "¥xhQoYC66sMX¥"
            },
            "request_id": "64jzpdn6m026"
        }
    }
}

model 口令

获取相关商品

  • 方法:post
  • 接口:/goods/relative
  • 参数:goodsId 商品ID(必填)
  • 返回
{
    "success": true,
    "code": 10000,
    "message": "获取相关商品成功.",
    "data": {
        "tbk_item_recommend_get_response": {
            "results": {
                "n_tbk_item": [
                    {
                        "item_url": "https://item.taobao.com/item.htm?id=586409791994",
                        "num_iid": 586409791994,
                        "pict_url": "https://img.alicdn.com/tfscom/i1/850484481/O1CN01B5dq8Z1iyLGULHvUL_!!850484481.jpg",
                        "provcity": "浙江 杭州",
                        "reserve_price": "298.00",
                        "small_images": {
                            "string": [
                                "https://img.alicdn.com/tfscom/i3/850484481/O1CN01qFYkTC1iyLGTSLRkX_!!850484481.jpg",
                                "https://img.alicdn.com/tfscom/i4/850484481/O1CN01mwzVwu1iyLGVSpVqR_!!850484481.jpg",
                                "https://img.alicdn.com/tfscom/i3/850484481/O1CN01ADr7uK1iyLGTRyQHB_!!850484481.jpg",
                                "https://img.alicdn.com/tfscom/i3/850484481/O1CN0146mqNO1iyLGa2yLYD_!!850484481.jpg"
                            ]
                        },
                        "title": "羽绒棉背心女士马夹外穿韩版加厚中长款宽松秋冬网红棉马甲外套潮",
                        "user_type": 0,
                        "zk_final_price": "65.00"
                    }
                ]
            },
            "request_id": "xss3clsdajh8"
        }
    }
}

搜索接口

  • 方法:get
  • 接口:/search
  • 参数:page页码(必填)
  • 参数:keyword 关键字(必填)
  • 返回:
{
    "success": true,
    "code": 10000,
    "message": "搜索成功.",
    "data": {
        "tbk_dg_material_optional_response": {
            "result_list": {
                "map_data": [
                    {
                        "category_id": 50011977,
                        "category_name": "洁面",
                        "commission_rate": "2106",
                        "commission_type": "MKT",
                        "coupon_amount": "50",
                        "coupon_end_time": "2019-12-06",
                        "coupon_id": "148d9d6ee22a40b8a9edf3cd9cca5bea",
                        "coupon_info": "满51.00元减50元",
                        "coupon_remain_count": 100000,
                        "coupon_share_url": "//uland.taobao.com/coupon/edetail?e=zR6oJv3HxYMNfLV8niU3RwXoB%2BDaBK5LQS0Flu%2FfbSp4QsdWMikAalrisGmre1Id522H2TxuqpJ0WI0w%2Fy1%2FUQBhsQBH6bPpnXTi95x%2F5EnCIALRMrUzmckbkW%2BkBhM2q2rZP7lt5W1ZLSj1nOXTTgH%2FlwNDrBX3bNt8v1hgCr6aTXmsSV3hf%2FMuEspq%2F3ISiJuCef6Q6GuOn7Sn8esaKgrE199RXvLx%2FjtLOxCEadVVbrKqp4Yn8g%3D%3D&&app_pvid=59590_11.132.118.131_591_1575278342678&ptl=floorId:2836;app_pvid:59590_11.132.118.131_591_1575278342678;tpp_pvid:100_11.9.3.155_1484_3811575278342682292&xId=5iX1bnfX3GSqpWopgYWlRorjJvZrmGQ8NzW5KyZnfJnORfB1V9ls6UFJGcxoDpW1ka4lVKA2dKjAUbI7OWUoWl&union_lens=lensId%3A0b847683_0cb4_16ec5e7f259_5cda",
                        "coupon_start_fee": "51.00",
                        "coupon_start_time": "2019-12-02",
                        "coupon_total_count": 100000,
                        "include_dxjh": "false",
                        "include_mkt": "true",
                        "info_dxjh": "{}",
                        "item_description": "深层清洁毛孔泡沫氨基酸控油洗面奶",
                        "item_id": 599642809504,
                        "item_url": "https://detail.tmall.com/item.htm?id=599642809504",
                        "level_one_category_id": 1801,
                        "level_one_category_name": "美容护肤/美体/精油",
                        "nick": "朴悦旗舰店",
                        "num_iid": 599642809504,
                        "pict_url": "https://img.alicdn.com/bao/uploaded/i1/2201504856387/O1CN01LaHjYm1x3IEtfPnUv_!!0-item_pic.jpg",
                        "presale_deposit": null,
                        "presale_end_time": 0,
                        "presale_start_time": 0,
                        "presale_tail_end_time": 0,
                        "presale_tail_start_time": 0,
                        "provcity": "浙江 温州",
                        "real_post_fee": "0.00",
                        "reserve_price": "368",
                        "seller_id": 2201504856387,
                        "shop_dsr": 49301,
                        "shop_title": "朴悦旗舰店",
                        "short_title": "朴悦玫瑰滋养女男士深层清洁洁面膏",
                        "small_images": {
                            "string": [
                                "https://img.alicdn.com/i3/2201504856387/O1CN01kErajQ1x3IEs6QDCx_!!2201504856387.jpg",
                                "https://img.alicdn.com/i4/2201504856387/O1CN01myeUW91x3IEt4FPET_!!2201504856387.jpg",
                                "https://img.alicdn.com/i3/2201504856387/O1CN01SsaMHx1x3IEuZbwan_!!2201504856387.jpg",
                                "https://img.alicdn.com/i3/2201504856387/O1CN0191Qbri1x3IEsKZ4Wk_!!2201504856387.jpg"
                            ]
                        },
                        "title": "朴悦玫瑰滋养洁面膏女男士深层清洁毛孔泡沫洗面奶温和氨基酸控油",
                        "tk_total_commi": "610.06",
                        "tk_total_sales": "318",
                        "url": "//s.click.taobao.com/t?e=m%3D2%26s%3Dj%2B1spI3qz9kcQipKwQzePOeEDrYVVa64r4ll3HtqqoxyINtkUhsv0G7pUK386tCDyLijLsm%2Be5hm5nS0VR3oT0KAZCke%2BMGJxC%2FP4%2FZfPFbcQmwDRwHnn1oN8CPq4PKMSBaygToy7XlvKzaj8WgV5VhGKxHIVN7zskmx5kiO8DrXn%2F66GKkZXbj8Cm8j3o1mWS5Ua7R8sogUSYuZCqnQwioX879W%2Fg3McSpj5qSCmbA%3D&scm=null&pvid=100_11.9.3.155_1484_3811575278342682292&app_pvid=59590_11.132.118.131_591_1575278342678&ptl=floorId:2836;originalFloorId:2836;pvid:100_11.9.3.155_1484_3811575278342682292;app_pvid:59590_11.132.118.131_591_1575278342678&xId=5iX1bnfX3GSqpWopgYWlRorjJvZrmGQ8NzW5KyZnfJnORfB1V9ls6UFJGcxoDpW1ka4lVKA2dKjAUbI7OWUoWl&union_lens=lensId%3A0b847683_0cb4_16ec5e7f259_5cda",
                        "user_type": 1,
                        "volume": 507,
                        "white_image": "https://img.alicdn.com/bao/uploaded/O1CN01VOS2zo1x3IDkonPPM_!!2-item_pic.png",
                        "x_id": "5iX1bnfX3GSqpWopgYWlRorjJvZrmGQ8NzW5KyZnfJnORfB1V9ls6UFJGcxoDpW1ka4lVKA2dKjAUbI7OWUoWl",
                        "zk_final_price": "168",
                        "jdd_num": 0,
                        "jdd_price": null,
                        "oetime": null,
                        "ostime": null
                    },
                    {
                        "category_id": 50011977,
                        "category_name": "洁面",
                        "commission_rate": "1203",
                        "commission_type": "MKT",
                        "coupon_amount": "30",
                        "coupon_end_time": "2019-12-05",
                        "coupon_id": "87d2ebeb5685483986e6b330c21a7f5f",
                        "coupon_info": "满69.00元减30元",
                        "coupon_remain_count": 99929,
                        "coupon_share_url": "//uland.taobao.com/coupon/edetail?e=4XpygGwyFIkNfLV8niU3RwXoB%2BDaBK5LQS0Flu%2FfbSp4QsdWMikAalrisGmre1Id522H2TxuqpINesp7gn%2Be987OOaxnvQ0rnXTi95x%2F5EnCIALRMrUzmckbkW%2BkBhM2q2rZP7lt5W1ZLSj1nOXTTgH%2FlwNDrBX3bNt8v1hgCr7w8JifyEUHj7SIFlZWv%2BMI%2FZySoZmG4hx%2FEcO4WUgotHCshnSxXxfjTTiZb6qxNoeie%2FpBy9wBFg%3D%3D&&app_pvid=59590_11.132.118.131_591_1575278342678&ptl=floorId:2836;app_pvid:59590_11.132.118.131_591_1575278342678;tpp_pvid:100_11.9.3.155_1484_3811575278342682292&xId=iZlXNaxgCiWNr6zR3sN52oc9s4EG7gDHrYxpBFYksK25jq0sCdlRB2g1yTpku35H97o7iqcsqO1OINPMP1p2zD&union_lens=lensId%3A0b847683_0cb4_16ec5e7f259_5cdb",
                        "coupon_start_fee": "69.00",
                        "coupon_start_time": "2019-11-29",
                        "coupon_total_count": 100000,
                        "include_dxjh": "true",
                        "include_mkt": "true",
                        "info_dxjh": "{}",
                        "item_description": "除螨净肤 卸妆洗护 季德胜保密配方用心传承",
                        "item_id": 573698005083,
                        "item_url": "https://detail.tmall.com/item.htm?id=573698005083",
                        "level_one_category_id": 1801,
                        "level_one_category_name": "美容护肤/美体/精油",
                        "nick": "季德胜旗舰店",
                        "num_iid": 573698005083,
                        "pict_url": "https://img.alicdn.com/bao/uploaded/i2/2479351423/O1CN01azU5j71MNmB2KEAbf_!!0-item_pic.jpg",
                        "presale_deposit": null,
                        "presale_end_time": 0,
                        "presale_start_time": 0,
                        "presale_tail_end_time": 0,
                        "presale_tail_start_time": 0,
                        "provcity": "江苏 南通",
                        "real_post_fee": "0.00",
                        "reserve_price": "119",
                        "seller_id": 2479351423,
                        "shop_dsr": 48553,
                        "shop_title": "季德胜旗舰店",
                        "short_title": "季德胜百部草本氨基酸除螨女洗面奶",
                        "small_images": {
                            "string": [
                                "https://img.alicdn.com/i3/2479351423/O1CN01aqnqmg1MNmAeqoEIO_!!2479351423.jpg",
                                "https://img.alicdn.com/i1/2479351423/O1CN01GWrzUt1MNm4fBjnB1_!!2479351423.jpg",
                                "https://img.alicdn.com/i4/2479351423/O1CN01eb52DN1MNm8k6ZjZw_!!2479351423.jpg",
                                "https://img.alicdn.com/i4/2479351423/O1CN01SIgIB61MNm9aBnRxX_!!2479351423.jpg"
                            ]
                        },
                        "title": "季德胜百部草本氨基酸除螨洗面奶女祛痘清洁控油去螨虫男士洁面乳",
                        "tk_total_commi": "243188",
                        "tk_total_sales": "8780",
                        "url": "//s.click.taobao.com/t?e=m%3D2%26s%3DgUiLQU7%2FQLgcQipKwQzePOeEDrYVVa64r4ll3HtqqoxyINtkUhsv0G7pUK386tCDyLijLsm%2Be5hm5nS0VR3oT0KAZCke%2BMGJxC%2FP4%2FZfPFbcQmwDRwHnn1oN8CPq4PKMSBaygToy7XkE0DTilvyypEZ2r7aDcEE%2BjB7r%2B0aDb9HA690f%2B0EVnh1zIaJvETSGYckP0VpqcrHjM7YyINweHVINgCELUUjKxiXvDf8DaRs%3D&scm=null&pvid=100_11.9.3.155_1484_3811575278342682292&app_pvid=59590_11.132.118.131_591_1575278342678&ptl=floorId:2836;originalFloorId:2836;pvid:100_11.9.3.155_1484_3811575278342682292;app_pvid:59590_11.132.118.131_591_1575278342678&xId=iZlXNaxgCiWNr6zR3sN52oc9s4EG7gDHrYxpBFYksK25jq0sCdlRB2g1yTpku35H97o7iqcsqO1OINPMP1p2zD&union_lens=lensId%3A0b847683_0cb4_16ec5e7f259_5cdb",
                        "user_type": 1,
                        "volume": 9183,
                        "white_image": "https://img.alicdn.com/bao/uploaded/TB2nSl6mA7mBKNjSZFyXXbydFXa_!!2479351423.png",
                        "x_id": "iZlXNaxgCiWNr6zR3sN52oc9s4EG7gDHrYxpBFYksK25jq0sCdlRB2g1yTpku35H97o7iqcsqO1OINPMP1p2zD",
                        "zk_final_price": "69.9",
                        "jdd_num": 0,
                        "jdd_price": null,
                        "oetime": null,
                        "ostime": null
                    }
                ]
            },
            "total_results": 307087,
            "request_id": "e3698tip080w"
        }
    }
}

特惠接口

  • 方法:get
  • 接口:/onSell/page
    • page页码(必填)
  • 参数:无
  • 返回
{
    "success": true,
    "code": 10000,
    "message": "获取特惠成功.",
    "data": {
        "tbk_dg_optimus_material_response": {
            "is_default": "false",
            "result_list": {
                "map_data": [
                    {
                        "category_id": 162103,
                        "category_name": "毛衣",
                        "click_url": "//s.click.taobao.com/t?e=m%3D2%26s%3DkJjDwvFIqYxw4vFB6t2Z2ueEDrYVVa64Dne87AjQPk9yINtkUhsv0ECvTuG%2B3p84nQtg3Vl34jFm5nS0VR3oT0KAZCke%2BMGJxC%2FP4%2FZfPFbcQmwDRwHnn1oN8CPq4PKMZiqtwk9j5QNKB%2BYy4c6YhN3ITMvHwC4IkG2QazC6gqykOrGae4DS5oO2CiNcVz0Ka%2BiLKH5gMOE7VEHsV4LYvLtdhRLMp6nxY4S2k1mJ%2BZU%3D&scm=1007.15023.81719.0&pvid=c562ceff-a680-4c0f-827e-d66b1954ac3d&app_pvid=59590_11.27.14.1_56272_1575279443807&ptl=floorId:3756;originalFloorId:3756;pvid:c562ceff-a680-4c0f-827e-d66b1954ac3d;app_pvid:59590_11.27.14.1_56272_1575279443807&union_lens=lensId%3AOPT%401575279443%400b1b0e01_0da9_16ec5f8bfe7_2ca3%4001",
                        "commission_rate": "12.0",
                        "coupon_amount": 3,
                        "coupon_click_url": "//uland.taobao.com/coupon/edetail?e=GNMakVevGXwNfLV8niU3R5TgU2jJNKOfU1BGIDN741G0%2Bc5Gzwi6geKSfLX1rbqQLGbJes29FQq2QeBl4W2u73iskVg2QFTJNNrkD%2BFGqh1Kuy%2B0WAVbvPskU%2Fn7vZ%2Fe3KE7Ta9aMuRNo1KEDehNsJ4dcb7gMzr8o%2Be84lu5p3EE%2BdAb1JoOOhYd3odUFuqu%2Bs19raUbf6IC13R2LHOwZq5OaBGcL9GSTA0FRtOwCuw%3D&&app_pvid=59590_11.27.14.1_56272_1575279443807&ptl=floorId:3756;app_pvid:59590_11.27.14.1_56272_1575279443807;tpp_pvid:c562ceff-a680-4c0f-827e-d66b1954ac3d&union_lens=lensId%3AOPT%401575279443%400b1b0e01_0da9_16ec5f8bfe7_2ca3%4001",
                        "coupon_end_time": "1575820799000",
                        "coupon_info": "满19.00元减3元",
                        "coupon_remain_count": 100000,
                        "coupon_share_url": "//uland.taobao.com/coupon/edetail?e=GNMakVevGXwNfLV8niU3R5TgU2jJNKOfU1BGIDN741G0%2Bc5Gzwi6geKSfLX1rbqQLGbJes29FQq2QeBl4W2u73iskVg2QFTJNNrkD%2BFGqh1Kuy%2B0WAVbvPskU%2Fn7vZ%2Fe3KE7Ta9aMuRNo1KEDehNsJ4dcb7gMzr8o%2Be84lu5p3EE%2BdAb1JoOOhYd3odUFuqu%2Bs19raUbf6IC13R2LHOwZq5OaBGcL9GSTA0FRtOwCuw%3D&&app_pvid=59590_11.27.14.1_56272_1575279443807&ptl=floorId:3756;app_pvid:59590_11.27.14.1_56272_1575279443807;tpp_pvid:c562ceff-a680-4c0f-827e-d66b1954ac3d&union_lens=lensId%3AOPT%401575279443%400b1b0e01_0da9_16ec5f8bfe7_2ca3%4001",
                        "coupon_start_fee": "19.0",
                        "coupon_start_time": "1575216000000",
                        "coupon_total_count": 100000,
                        "item_description": "自发热德绒阳离子打底衫加厚保暧",
                        "item_id": 607196010599,
                        "level_one_category_id": 16,
                        "level_one_category_name": "女装/女士精品",
                        "nick": "希丹娜旗舰店",
                        "pict_url": "//img.alicdn.com/bao/uploaded/i3/3522656586/O1CN01rpRmRs1yWR3wTsiO3_!!0-item_pic.jpg",
                        "seller_id": 3522656586,
                        "shop_title": "希丹娜旗舰店",
                        "small_images": {
                            "string": [
                                "//img.alicdn.com/i4/3522656586/O1CN01L2dyS41yWR3ht9IzQ_!!0-item_pic.jpg",
                                "//img.alicdn.com/i4/3522656586/O1CN01eCFXa61yWR3hsir1Y_!!3522656586.jpg",
                                "//img.alicdn.com/i4/3522656586/O1CN019BBvKo1yWR3XaN4t9_!!3522656586.jpg",
                                "//img.alicdn.com/i3/3522656586/O1CN01176svF1yWR3cE8RY1_!!3522656586.jpg"
                            ]
                        },
                        "title": "德绒阳离子打底衫加绒加厚保暖半高领纯色2019年新款百搭自发热",
                        "user_type": 1,
                        "volume": 11527,
                        "zk_final_price": "24.8"
                    }
                ]
            },
            "request_id": "9rzhkon6fpqb"
        }
    }
}

精选

精选分类

  • 方法:get
  • 接口:/recommend/categories
  • 参数:无
  • 返回
{
    "success": true,
    "code": 10000,
    "message": "获取精选分类成功.",
    "data": [
        {
            "type": 1,
            "favorites_id": 19876595,
            "favorites_title": "程序员必备"
        },
        {
            "type": 1,
            "favorites_id": 19876636,
            "favorites_title": "办公室零食"
        },
        {
            "type": 1,
            "favorites_id": 19876637,
            "favorites_title": "上班族早餐"
        },
        {
            "type": 1,
            "favorites_id": 19876649,
            "favorites_title": "日用品"
        },
        {
            "type": 1,
            "favorites_id": 19902751,
            "favorites_title": "电脑周边"
        },
        {
            "type": 1,
            "favorites_id": 19903201,
            "favorites_title": "秋天必备"
        }
    ]
}

有了id就可以根据id去获取到商品列表啦

精选内容

  • 方法:get
  • 接口:/recommend/categoryId
    • categoryId 分类的id
  • 参数:无
  • 返回:
{
    "success": true,
    "code": 10000,
    "message": "获取精选内容成功.",
    "data": {
        "tbk_uatm_favorites_item_get_response": {
            "results": {
                "favoriteId": 0,
                "uatm_tbk_item": [
                    {
                        "click_url": "https://s.click.taobao.com/t?e=m%3D2%26s%3DQqgvXVwF4QAcQipKwQzePOeEDrYVVa64yK8Cckff7TXjf2vlNIV67lbA7kVj6DOjxeoNewupcd6YzwUb1bbXppZwHxYkBYTUeP8T%2BYUOOiuIOBqu0asPv%2F0jCkSDmD6DKe3%2FbelnU7chre9gvq5P3zKYVV1BId1rfp5HoTJX0vWplyh2W4e4BPxr1c6V5LsG1hjz2dNwkcRt%2ByMzJ8mpM%2Fe7B5ZkP8EjSdChf3U3iXY%2B5QowgvHJPA%3D%3D&unid=19902751&union_lens=lensId:0b012096_0c74_16ec657c76b_e230",
                        "coupon_click_url": "https://uland.taobao.com/coupon/edetail?e=TBIJTibAhO4GQASttHIRqQA9fN4MifAG7tS89T6GqASOeUcSvy%2FHYmF5qFnaO9996DeX2ucVKhvHjZlrd41oqDEL25HyNw0xJ4FRquMv%2FTtFRuNP9Tp9RQH%2FlwNDrBX3XYsE5g93lTYZao0HO%2FvX0w%3D%3D&union_lens=lensId:0b012096_0c74_16ec657c76b_e230",
                        "coupon_end_time": "2019-12-07",
                        "coupon_info": "满7元减5元",
                        "coupon_remain_count": 99635,
                        "coupon_start_time": "2019-12-01",
                        "coupon_total_count": 100000,
                        "event_end_time": "1970-01-01 00:00:00",
                        "event_start_time": "1970-01-01 00:00:00",
                        "item_url": "https://item.taobao.com/item.htm?id=595184094985",
                        "num_iid": 595184094985,
                        "pict_url": "https://img.alicdn.com/tfscom/i1/1744991291/O1CN01J58x6I1LPJqtM61gh_!!0-item_pic.jpg",
                        "reserve_price": "45.00",
                        "status": 1,
                        "title": "纳雷特原装正品适用 OPPO数据线闪充R9 R15 R11s R11 R11s plus R9s R7安卓手机原厂快充短充电器头线2米加长",
                        "tk_rate": "9.00",
                        "type": 4,
                        "user_type": 1,
                        "volume": 11450,
                        "zk_final_price": "10.90",
                        "zk_final_price_wap": "10.90"
                    }
                ]
            },
            "total_results": 26,
            "request_id": "sa9tsfbr1uco"
        }
    }
}
评论
0/240
  • 孤帆
    baseUrl没了吗
    2020-05-21 00:51  回复
    1237709141930246144
    • 拉大锯  回复 @2020-05-21 00:51
      怎么没呢?在开头不是吧吗?
      2020-05-21 00:51   回复 1153952789488054272
    • 孤帆  回复 @拉大锯
      我也不知道,没法访问,code;404, message:内容不存在,我之前运行到手机上的APP也没法用了
      2020-05-21 00:51   回复 1237709141930246144
    • 拉大锯  回复 @孤帆
      BaseUrl改了,你改了吗?全平台通知过了哦!
      2020-05-21 00:51   回复 1153952789488054272
    • 孤帆  回复 @拉大锯
      我没改,尴尬
      2020-05-21 00:51   回复 1237709141930246144
  • QMSCount
    报错:java.lang.BootstrapMethodError: Exception from call site #6 bootstrap method 网上查到需要在build.gradle的android{}中添加 compileOptions{ sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }
    2020-05-08 16:44  回复
    1256859371158114304
  • cola11
    api 失效了吗 那个链接打不开了
    2020-05-01 15:18  回复
    1255329538661945344
    • QMSCount  回复 @2020-05-01 15:18
      没问题啊 API_URL:https://api.sunofbeach.net/shop/ Categories{success=true, code=10000, message='获取分类成功.', data=[DataBean{id=9660, title='推荐'}。。。
      2020-05-01 15:18   回复 1256859371158114304
  • 神的凝视
    视频中会用到retrofit和rxjava这些框架吗?
    2019-12-05 18:03  回复
    1199259111552835584
    • 拉大锯  回复 @神的凝视
      框架只是工具,即使不用这个,你自己也可以选择呀。具体再看吧,主要是我的时间安排,哈哈。如果时间够,文章写好了,就用。要不哪个快哪个来。但是总体来说,这个不用到,以后的项目也会用到的。总不会每个项目都用一样的。
      2019-12-05 18:03   回复 1153952789488054272
  • hhit
    求视频
    2019-12-04 10:37  回复
    1200961328827719680
    • 拉大锯  回复 @hhit
      还在筹备中,感谢支持。UI已经上传到蓝狐了,账号跟喜马拉雅的素材同一个账号和密码。
      2019-12-04 10:37   回复 1153952789488054272
  • Android
    大佬,为你点赞,我等你的课程,不知道怎么用 哈哈哈
    2019-12-03 15:50  回复
    1188268143848574976
    • 拉大锯  回复 @Android
      感谢支持,我在画UI了,过几天回家,在家有空的时候我写好先。然后就可以出课程了。感谢你们的一直支持与关注。谢谢。
      2019-12-03 15:50   回复 1153952789488054272
  • sofiworker
    居然来了,感谢师傅的无私奉献😀
    2019-12-03 12:59  回复
    1200698213460467712
    • 拉大锯  回复 @sofiworker
      你知道怎么用了吗?哈哈,我还在准备课程。
      2019-12-03 12:59   回复 1153952789488054272
    • sofiworker  回复 @拉大锯
      之前写过点玩Android的
      2019-12-03 12:59   回复 1200698213460467712
    • 拉大锯  回复 @sofiworker
      嗯,好。有啥建议的话可以提出来,我也尽量做好一点,感谢支持。
      2019-12-03 12:59   回复 1153952789488054272
文章目录