starpeng / jdsdk Goto Github PK
View Code? Open in Web Editor NEW京东开放平台.NET版sdk
License: Microsoft Public License
京东开放平台.NET版sdk
License: Microsoft Public License
下载商品信息代码如下
JdSdk.DefaultJdClient clienta = new JdSdk.DefaultJdClient(ServerURL, APP_KEY, APP_SECRET);
JdSdk.Request.WaresListGetRequest reqa = new JdSdk.Request.WaresListGetRequest();
reqa.WareIds = "1003853647";
JdSdk.Response.WaresListGetResponse responsea = clienta.Execute(reqa, SESSION_KEY);
responsea.Body有JSON数据,但responsea.Wares为null
JSON数据如下:
{"ware_list_response":{"code":"0","total":1,"wares":[{"skus":[{"status":"VALID","attributes":"","created":"2013-01-10 10:05:00","modified":"2013-09-16 14:04:07","sku_id":1014864886,"ware_id":1003853647,"shop_id":24402,"jd_price":"134.00","cost_price":"0.00","market_price":"260.00","stock_num":100,"outer_id":"2000009807547","color_value":"","size_value":""}],"title":"alsIRIS直销 进口面料五星级酒店剪绒高吸水性柔软加厚浴巾","attributes":"3097:52565^3099:21499^3098:121248^11394:107632^10013514:10033349","logo":"http://img10.360buyimg.com/n0/g9/M02/12/0A/rBEHalDuIecIAAAAAAFibs1r9CIAADk6QLgyZQAAWKG215.jpg","creator":"","status":"VALID","weight":"0.3","created":"2013-01-10 10:04:59","modified":"2013-09-16 14:04:07","desc":"<div align="center">\n \n
\n <img class="err-product" alt="" src="http://img30.360buyimg.com/popWaterMark/g8/M02/0E/14/rBEHaFCp0joIAAAAAABGbDCFKv0AAC3DAMkHZAAAEaE444.jpg" align="absMiddle" /> \n
\n <img alt="" src="http://img30.360buyimg.com/popWaterMark/g6/M04/06/10/rBEGF1DuIc0IAAAAAADIjbpDZFwAABRigKEYCUAAMil555.jpg" data-ks-lazyloaded="true" /> \n
\n
\n <img alt="" src="http://img30.360buyimg.com/popWaterMark/g6/M04/06/10/rBEGC1DuIdIIAAAAAADpdB1DBwIAABRigKJ29kAAOmM085.jpg" data-ks-lazyloaded="true" /> \n
\n
\n <img alt="" src="http://img30.360buyimg.com/popWaterMark/g6/M04/06/10/rBEGC1DuIdIIAAAAAADoLv2gpt8AABRigKnSkcAAOhG095.jpg" data-ks-lazyloaded="true" /> \n
\n
\n <img alt="" src="http://img30.360buyimg.com/popWaterMark/g6/M04/06/10/rBEGDFDuIccIAAAAAADsD3Lh3rUAABRigKpYhwAAOwn698.jpg" data-ks-lazyloaded="true" /> \n
\n
\n <img alt="" src="http://img30.360buyimg.com/popWaterMark/g6/M04/06/10/rBEGF1DuIc8IAAAAAADnwWWXyu4AABRigK0ktYAAOfZ853.jpg" data-ks-lazyloaded="true" /> \n
\n <img class="err-product" alt="" src="http://img30.360buyimg.com/popWaterMark/g7/M02/0E/15/rBEHZlCqKiUIAAAAAABCOYT5dwcAAC3dQGRuqQAAEJR230.jpg" data-ks-lazyloaded="true" align="middle" height="86" width="740" /> \n
\n <span style="color:#000000;"><span style="font-size: 24px;"><span style="font-family:microsoft yahei;">采用美国及埃及进口优质棉花,为出口全球的高质量柔软毛巾。<span style="font-family:microsoft yahei;">轻软吸水,手感细腻温柔。纤维较长且整齐均匀毛羽不分叉,具有优良的强力!棉纱区别,一目了然。毛巾柔软蓬松,与吸水性强,更具有柔软的肌肤触感,即使敏感肤质的人也可放心使用。
\n <img class="err-product" alt="" src="http://img30.360buyimg.com/popWaterMark/g7/M02/0E/15/rBEHZlCqKiUIAAAAAABFlWb107QAAC3dQGVG7sAAEWt051.jpg" data-ks-lazyloaded="true" align="middle" height="86" width="740" /> \n
\n
\n <table style="border-collapse: collapse;" border="1" width="740"> \n \n <span style="font-family:微软雅黑;font-size:medium;">商品介绍 \n \n \n \n <td colspan="3" align="center" valign="center"><span style="font-family:微软雅黑;font-size:medium;">商品名称 \n <td colspan="9" align="center" bgcolor="#ffffff" valign="center"><span style="font-family:微软雅黑;font-size:medium;"><span style="font-family:微软雅黑;">日本alsIRIS厂家直销 <span style="font-size:medium;">浴巾高吸水性柔软面巾手巾
\n \n \n <td rowspan="2" align="center" valign="center" width="60"><span style="font-family:微软雅黑;font-size:medium;">型号 \n <td rowspan="2" align="center" valign="center" width="45"><span style="font-family:微软雅黑;font-size:medium;">颜色 \n <td rowspan="2" align="center" valign="center" width="55"><span style="font-family:微软雅黑;font-size:medium;">编号 \n <td colspan="3" align="center" valign="center"><span style="font-family:微软雅黑;font-size:medium;">商品外寸CM \n <td colspan="3" align="center" valign="center"><span style="font-family:微软雅黑;font-size:medium;">商品内寸CM \n <td rowspan="2" align="center" valign="center" width="60"><span style="font-family:微软雅黑;font-size:medium;">材质 \n <td rowspan="2" align="center" valign="center" width="50"><span style="font-family:微软雅黑;font-size:medium;">重量kg \n <td rowspan="2" align="center" valign="center" width="80"><span style="font-family:微软雅黑;font-size:medium;">耐重 \n \n \n <td align="center" valign="center"><span style="font-family:微软雅黑;font-size:medium;">长 \n <td align="center" valign="center"><span style="font-family:微软雅黑;font-size:medium;">宽 \n <td align="center" valign="center"><span style="font-family:微软雅黑;font-size:medium;">高 \n <td align="center" valign="center"><span style="font-family:微软雅黑;font-size:medium;">长 \n <td align="center" valign="center"><span style="font-family:微软雅黑;font-size:medium;">宽 \n <td align="center" valign="center"><span style="font-family:微软雅黑;font-size:medium;">高 \n \n \n <td align="center" valign="center"><span style="font-family:微软雅黑;font-size:medium;">毛巾<span style="font-size:medium;">
\n <td align="center" valign="center"><span style="font-size:medium;">白色
\n <td align="center" valign="center"><span style="font-size:medium;">807540
\n <td align="center" valign="center" width="45"><span style="font-size:medium;">
64 \n <td align="center" valign="center" width="45"><span style="font-size:medium;">
\n <td align="center" valign="center" width="45"><span style="font-size:medium;">
130 \n <td align="center" valign="center" width="45"><span style="font-size:medium;"> \n <td align="center" valign="center" width="45"><span style="font-size:medium;"> \n <td align="center" valign="center" width="45"><span style="font-size:medium;"> \n <td align="center" valign="center"><span style="font-family:微软雅黑;font-size:medium;">棉 \n <td align="center" valign="center"><span style="font-size:medium;">
\n <td align="center" valign="center"><span style="font-size:medium;"> \n \n \n \n
\n","cubage":"60:130:10","producter":"","wrap":"","service":"","ware_id":1003853647,"spu_id":0,"cid":1657,"vender_id":24927,"shop_id":24402,"ware_status":"ON_SALE","item_num":"2000009807547","upc_code":"","transport_id":0,"online_time":"2013-09-16 14:02:48","offline_time":"2013-07-09 15:16:13","cost_price":"0.00","market_price":"260.00","jd_price":"134.00","stock_num":100,"outer_id":"","pack_listing":""}]}}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.