淘宝API接口:item_get_app - 获得淘宝app商品详情原数据

为了进行电商平台 lazada 的API开发,首先我们需要做下面几件事情。
1)开发者注册一个账号
2)然后为每个 lazada 应用注册一个应用程序键(App Key) 。
3)下载 lazada API的SDK并掌握基本的API基础知识和调用
4)利用SDK接口和对象,传入AppKey或者必要的时候获取并传入SessionKey来进行程序开发。
5)利用lazada平台的文档中心和API测试工具,对接口进行测试。从而了解返回信息,方便程序获取。
以上是一般lazada API应用开发的关键流程,其中通过lazada文档中心和API测试工具,进行概念了解和接口信息查询很重要。因为这些数据就是我们需要在逐步显示出来的。lazada 的API很多,不过都分为了好几个领域,慢慢就会了解深入了。

注册链接(获取Key和secret):http://console.open.onebound.cn/console/?i=lucy
在这里插入图片描述
Result Object:

{
“item”: {
“apiStack”: [
{
“name”: “esi”,
“value”: “{“endpoint”: {“mode”: “android”, “osVersion”: “10.9.20”, “protocolVersion”: “3.0”, “ultronage”: “true”}, “componentsVO”: {“askAllVO”: {“events”: {“itemClick”: [{“type”: “openUrl”, “fields”: {“url”: “KaTeX parse error: Can't use function '\"' in math mode at position 26: …askAll.linkUrl}\̲"̲}}, {\"type\": …{vertical.askAll.model4XList}”}}, “bottomBarVO”: {“events”: {“rightClick”: [{“type”: “addToCart”}, {“type”: “userTrack”, “fields”: {“page”: “Page_Detail”, “eventId”: “2101”, “arg1”: “Page_Detail_Button-AddToCart”, “args”: {“spm”: “a2141.7631564.addtocart”}}}], “rightClick1”: [{“type”: “buyNow”}, {“type”: “userTrack”, “fields”: {“page”: “Page_Detail”, “eventId”: “2101”, “arg1”: “Page_Detail_Button-Buy”, “args”: {“spm”: “a2141.7631564.buy”}}}], “leftClick”: [{“type”: “openUrl”, “fields”: {“url”: “//shop.m.taobao.com/shop/shop_index.htm?user_id=2596264565&item_id=520813250866”, “queryParams”: {“currentClickTime”: “-1”}}}, {“type”: “userTrack”, “fields”: {“page”: “Page_Detail”, “eventId”: “2101”, “arg1”: “Page_Detail_Button-BarShop”, “args”: {“spm”: “a2141.7631564.barshop”}}}], “exposureItem”: [{“type”: “checkCollect”}], “leftClick1”: [{“type”: “openWW”}, {“type”: “userTrack”, “fields”: {“page”: “Page_Detail”, “eventId”: “2101”, “arg1”: “Page_Detail_Button-BarWangWang”, “args”: {“spm”: “a2141.7631564.barwangwang”}}}], “leftClick2”: [{“type”: “collectClick”}]}, “backgroundColor”: “#ffffff”, “leftButtons”: [{“title”: {“text”: “店铺”, “color”: “#666666”, “disabledColor”: “#666666”, “disabledAlpha”: “1.0”, “bold”: “false”, “fontSize”: “10”, “alpha”: “1.0”}, “icon”: {“iconFontName”: “삊”, “color”: “#ff5000”, “disabledColor”: “#dddddd”, “alpha”: “1.0”, “disabledAlpha”: “1.0”, “size”: “19”}, “disabled”: “false”}, {“title”: {“text”: “客服”, “color”: “#666666”, “disabledColor”: “#666666”, “disabledAlpha”: “1.0”, “bold”: “false”, “fontSize”: “10”, “alpha”: “1.0”}, “icon”: {“iconFontName”: “쁪”, “color”: “#666666”, “disabledColor”: “#dddddd”, “alpha”: “1.0”, “disabledAlpha”: “1.0”, “size”: “19”}, “disabled”: “false”}, {“title”: {“text”: “收藏”, “color”: “#666666”, “disabledColor”: “#666666”, “disabledAlpha”: “1.0”, “bold”: “false”, “fontSize”: “10”, “alpha”: “1.0”}, “icon”: {“iconFontName”: “뀚”, “color”: “#666666”, “disabledColor”: “#dddddd”, “alpha”: “1.0”, “disabledAlpha”: “1.0”, “size”: “19”}, “disabled”: “false”}], “rightButtons”: [{“title”: {“text”: “加入购物车”, “color”: “#ffffff”, “disabledColor”: “#33ffffff”, “disabledAlpha”: “0.2”, “bold”: “true”, “fontSize”: “14”, “alpha”: “1.0”}, “background”: {“gradientColor”: [”#ffcb00", “#ff9402”], “disabledColor”: [“#ffcb00”, “#ff9402”], “alpha”: “1.0”, “disabledAlpha”: “1.0”}, “disabled”: “false”}, {“title”: {“text”: “领券购买”, “color”: “#ffffff”, “disabledColor”: “#80ffffff”, “disabledAlpha”: “0.2”, “bold”: “true”, “fontSize”: “14”, “alpha”: “1.0”}, “subTitle”: {“text”: “券后¥20.7起”, “color”: “#ffffff”, “disabledColor”: “#ffffff”, “disabledAlpha”: “0.2”, “bold”: “false”, “fontSize”: “11”, “alpha”: “1.0”}, “background”: {“gradientColor”: [“#ff7700”, “#ff4900”], “disabledColor”: [“#ff7700”, “#ff4900”], “alpha”: “1.0”, “disabledAlpha”: “1.0”}, “disabled”: “false”}]}, “commentVO”: {“events”: {“itemClick”: [{“type”: “openRate”}]}, “rateList”: “KaTeX parse error: Can't use function '\"' in math mode at position 16: {rate.rateList}\̲"̲, \"keywords\":…{rate.keywords}”, “totalCount”: “KaTeX parse error: Can't use function '\"' in math mode at position 18: …ate.totalCount}\̲"̲}, \"couponVO\"…{empty props.groupProps} AND KaTeX parse error: Can't use function '\"' in math mode at position 24: …rops.propsList}\̲"̲, \"propsList\"…{props.propsList[0].baseProps}”, “groupProps”: “KaTeX parse error: Can't use function '\"' in math mode at position 19: …ops.groupProps}\̲"̲}, \"priceVO\":…{seller.taoShopUrl}”, “queryParams”: {“currentClickTime”: “-1”}}}, {“type”: “userTrack”, “fields”: {“page”: “Page_Detail”, “eventId”: “2101”, “arg1”: “Page_Detail_Button-NewShopcard-Click”, “args”: {“spm”: “a2141.7631564.newshopcard”}}}], “exposureItem”: [{“type”: “userTrack”, “fields”: {“page”: “Page_Detail”, “eventId”: “2201”, “arg1”: “Page_Detail_Show-NewShopcard”, “args”: {“spm”: “a2141.7631564.newshopcard”}}}]}, “backgroundColor”: “KaTeX parse error: Can't use function '\"' in math mode at position 25: …tmosphereColor}\̲"̲, \"shopIcon\":…{seller.shopIcon}”, “shopName”: “KaTeX parse error: Can't use function '\"' in math mode at position 18: …eller.shopName}\̲"̲, \"shopNameCol…{seller.taoShopUrl}”, “evaluates”: “KaTeX parse error: Can't use function '\"' in math mode at position 19: …ller.evaluates}\̲"̲, \"needMask\":…{seller.atmophereMask}”, “maskColor”: “KaTeX parse error: Can't use function '\"' in math mode at position 29: …phereMaskColor}\̲"̲, \"creditLevel…{seller.creditLevelIcon}”, “entranceList”: [{“borderColor”: “#FF5000”, “backgroundColor”: “#ffffff”, “text”: “进店逛逛”, “event”: [{“type”: “openUrl”, “fields”: {“url”: “//shop.m.taobao.com/shop/shop_index.htm?user_id=2596264565&item_id=520813250866&currentClickTime=-1”}}, {“fields”: {“args”: {“spm”: “a2141.7631564.shoppage”}, “eventId”: “2101”, “arg1”: “Page_Detail_Button-NewShopcard-ShopPage”, “page”: “Page_Detail”}, “type”: “userTrack”}], “textColor”: “#FF5000”}, {“borderColor”: “#FF5000”, “backgroundColor”: “#ffffff”, “text”: “全部宝贝”, “event”: [{“type”: “openUrl”, “fields”: {“url”: “//shop.m.taobao.com/shop/shop_index.htm?user_id=2596264565&item_id=520813250866&shop_navi=allitems”}}, {“fields”: {“args”: {“spm”: “a2141.7631564.allitem”}, “eventId”: “2101”, “arg1”: “Page_Detail_Button-NewShopcard-AllItem”, “page”: “Page_Detail”}, “type”: “userTrack”}], “textColor”: “#FF5000”}], “certIcon”: “KaTeX parse error: Can't use function '\"' in math mode at position 18: …eller.certIcon}\̲"̲, \"images\": […{seller.creditLevelIcon}”, “KaTeX parse error: Can't use function '\"' in math mode at position 19: …ller.brandIcon}\̲"̲]}, \"titleVO\"…bottom_bar_TB_promo2019_get_voucher_buy_3696074”], “divisionDescRecmd”: [“divisionKaTeX parse error: Can't use function '\"' in math mode at position 26: …scRecmd_3696023\̲"̲], \"detailInfo…pic_gallery_3695801”, “dinamicKaTeX parse error: Can't use function '\"' in math mode at position 20: …e_daily_3695807\̲"̲, \"dinamiccoupon_promote_daily_3695828”, “dinamicKaTeX parse error: Can't use function '\"' in math mode at position 30: …current_3695831\̲"̲, \"dinamicDetailBrandInfoCloth_3695832”, “dinamicKaTeX parse error: Can't use function '\"' in math mode at position 26: …agesTip_3695833\̲"̲, \"tipTB_presaleTmall2_3695836”, “tipKaTeX parse error: Can't use function '\"' in math mode at position 21: …iceTip2_3695837\̲"̲, \"tipTB_pricedCouponTip2_3695838”, “tipKaTeX parse error: Can't use function '\"' in math mode at position 21: …ipTime2_3695839\̲"̲, \"dinamicTB_coupon_promotion2019_3695841”, “dinamicKaTeX parse error: Can't use function '\"' in math mode at position 40: …nd_info_3695848\̲"̲, \"dinamicTB_detail_brand_info_3695849”, “dinamicKaTeX parse error: Can't use function '\"' in math mode at position 31: …ichtext_3695851\̲"̲, \"dinamicTB_detail_title_tmallMarket_3695852”, “dinamicKaTeX parse error: Can't use function '\"' in math mode at position 32: …xinxuan_3695853\̲"̲, \"dinamicTB_detail_kernel_params_3695854”, “dinamicKaTeX parse error: Can't use function '\"' in math mode at position 33: …c

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值