为了进行电商平台 的API开发,首先我们需要做下面几件事情。
1)开发者注册一个账号
2)然后为每个alibaba应用注册一个应用程序键(App Key) 。
3)下载alibaba API的SDK并掌握基本的API基础知识和调用
4)利用SDK接口和对象,传入AppKey或者必要的时候获取并传入SessionKey来进行程序开发。
5)利用alibaba平台的文档中心和API测试工具,对接口进行测试。从而了解返回信息,方便程序获取。
以上是一般alibaba API应用开发的关键流程,其中通过alibaba文档中心和API测试工具,进行概念了解和接口信息查询很重要。因为这些数据就是我们需要在逐步显示出来的。alibaba 的API很多,不过都分为了好几个领域,慢慢就会了解深入了。
注册链接,获取Key和secret,免费测试
API示例:
{
"items": {
"page": "1",
"error": "",
"real_total_results": 271299,
"total_results": 271299,
"pageCount": 9043,
"pageSize": 30,
"item": [
{
"title": "Safetoe Steel Toe Cow Leather S3 Industrial Safety Shoe Men's Construction Protective Security safty Work Shoe",
"pic_url": "https://s.alicdn.com/@sc04/kf/H519b7b82e91047e693bfea2c351580bbu.jpg_200x200.jpg",
"promotion_price": "8.80 ",
"price": "8.80 ",
"sales": 0,
"num_iid": "62135124547",
"seller_nick": "cn1517127125naug",
"sample_id": "bda624f37e1745f4adeecb7bcbfccd2f",
"post_fee": "",
"area": "",
"detail_url": "https://www.alibaba.com/product-detail/New-design-titanium-eyewear-frame-wholesale_62135124547.html?spm=a2700.galleryofferlist.topad_classic.d_image.1e185ce15Iorl5"
},
{
"title": "Shoes Waterproof And Oil-proof Construction Shoes Unisex Work Shoes Durable Manufacturers Affordable Prices",
"pic_url": "https://s.alicdn.com/@sc04/kf/H0916c26716f544fb8332093855113415S.jpg_200x200.jpg",
"promotion_price": "7.00 ",
"price": "7.00 ",
"sales": 0,
"num_iid": "1600937320657",
"seller_nick": "jianyilaobao",
"sample_id": "bda624f37e1745f4adeecb7bcbfccd2f",
"post_fee": "",
"area": "",
"detail_url": "https://www.alibaba.com/product-detail/New-design-titanium-eyewear-frame-wholesale_1600937320657.html?spm=a2700.galleryofferlist.topad_classic.d_image.1e185ce15Iorl5"
},
{
"title": "运动鞋最受欢迎的天然运动鞋清洁剂运动鞋清洁液运动鞋护理套装",
"pic_url": "https://s.alicdn.com/@sc04/kf/Hf4ff6218af8a497a9e5c04c4c35dd00bK.jpg_200x200.jpg",
"promotion_price": "0.25 ",
"price": "0.25 ",
"sales": 0,
"num_iid": "1600324301594",
"seller_nick": "cn1539412449zwsd",
"sample_id": "bda624f37e1745f4adeecb7bcbfccd2f",
"post_fee": "",
"area": "",
"detail_url": "https://www.alibaba.com/product-detail/New-design-titanium-eyewear-frame-wholesale_1600324301594.html?spm=a2700.galleryofferlist.topad_classic.d_image.1e185ce15Iorl5"
},
{
"title": "ENTE SAFETY轻型结构皮鞋男士钢趾鞋运动鞋安全工作男靴安全女鞋",
"pic_url": "https://s.alicdn.com/@sc04/kf/H2b02df04bb754fe68c5279a6a511dc30R.jpg_200x200.jpg",
"promotion_price": "8.88 ",
"price": "8.88 ",
"sales": 27,
"num_iid": "1600449206155",
"seller_nick": "cn1515278111cndu",
"sample_id": "bda624f37e1745f4adeecb7bcbfccd2f",
"post_fee": "",
"area": "",
"detail_url": "https://www.alibaba.com/product-detail/New-design-titanium-eyewear-frame-wholesale_1600449206155.html?spm=a2700.galleryofferlist.topad_classic.d_image.1e185ce15Iorl5"
},
{
"title": "本厂直接提供旋转卡扣。旋转鞋扣。定制鞋带",
"pic_url": "https://s.alicdn.com/@sc04/kf/H026d25e81da54bcaaf37acbdc9313f04g.jpg_200x200.jpg",
"promotion_price": "1.20 ",
"price": "1.20 ",
"sales": 0,
"num_iid": "1600908111936",
"seller_nick": "mykjtech",
"sample_id": "bda624f37e1745f4adeecb7bcbfccd2f",
"post_fee": "",
"area": "",
"detail_url": "https://www.alibaba.com/product-detail/New-design-titanium-eyewear-frame-wholesale_1600908111936.html?spm=a2700.galleryofferlist.topad_classic.d_image.1e185ce15Iorl5"
},
{
"title": "鞋类批发家居宿舍维护去污足球运动鞋皮鞋帆布白色泡沫鞋清洁剂喷雾",
"pic_url": "https://s.alicdn.com/@sc04/kf/He8391f05e4f3475ba5d1ad6398072f14t.jpg_200x200.jpg",
"promotion_price": "0.69 ",
"price": "0.69 ",
"sales": 24,
"num_iid": "1600457800927",
"seller_nick": "cn1544729090zxnp",
"sample_id": "bda624f37e1745f4adeecb7bcbfccd2f",
"post_fee": "",
"area": "",
"detail_url": "https://www.alibaba.com/product-detail/New-design-titanium-eyewear-frame-wholesale_1600457800927.html?spm=a2700.galleryofferlist.topad_classic.d_image.1e185ce15Iorl5"
},
{
"title": "DEBONSAPT热销工业防护透气工作靴休闲训练鞋钢脚趾安全鞋商店冬季",
"pic_url": "https://s.alicdn.com/@sc04/kf/Heb3c3f1e27d340c68e078bff13f7b08dK.jpg_200x200.jpg",
"promotion_price": "12.28 ",
"price": "12.28 ",
"sales": 57,
"num_iid": "1600345181379",
"seller_nick": "cn1544338395jnpq",
"sample_id": "bda624f37e1745f4adeecb7bcbfccd2f",
"post_fee": "",
"area": "",
"detail_url": "https://www.alibaba.com/product-detail/New-design-titanium-eyewear-frame-wholesale_1600345181379.html?spm=a2700.galleryofferlist.topad_classic.d_image.1e185ce15Iorl5"
},
注:本帖只展示部分代码,响应参数,注册账号可免费测试或者点击头像联系"