为了进行电商平台 的API开发,首先我们需要做下面几件事情。
1)开发者注册一个账号
2)然后为每个pinduoduo应用注册一个应用程序键(App Key) 。
3)下载pinduoduo API的SDK并掌握基本的API基础知识和调用
4)利用SDK接口和对象,传入AppKey或者必要的时候获取并传入SessionKey来进行程序开发。
5)利用alibaba平台的文档中心和API测试工具,对接口进行测试。从而了解返回信息,方便程序获取。
以上是一般pinduoduo API应用开发的关键流程,其中通过pinduoduo文档中心和API测试工具,进行概念了解和接口信息查询很重要。因为这些数据就是我们需要在逐步显示出来的。pinduoduo的API很多,不过都分为了好几个领域,慢慢就会了解深入了。
注册链接,获取Key和secret,免费测试
API示例:
{
"labelText": "2件9.5折",
"labelType": "single_goods_percentage_event"
},
{
"labelText": "满200减10",
"labelType": "mall_area_event"
}
],
"previewPriority": 3,
"startTime": 0,
"endTime": 0,
"staticLimitQuantity": 999999,
"attribute": "{\"mg\":null,\"lampInstallInfo\":null,\"ticketRuleId\":null,\"tenBillionSpikeGlobalLowPrice\":null,\"vegetableRuleId\":null,\"skuPreSaleTime\":0,\"hotLiveGroup\":null,\"vegetableHasAllowance\":null,\"vegetableSupplierPrice\":null,\"vegetableStorePercent\":null,\"vegetableIsZeroGoods\":null,\"vegetableSkuGroup\":null,\"vegetableRegularLimitNumber\":null,\"vegetableArchived\":null,\"vegetableSkuOptions\":null}",
"groupTipColor": "#E02E24",
"groupTipFont": 15,
"normalSavePrice": "24.6",
"skuID": 57114357892,
"skuExpansionPrice": "0"
},
{
"skuId": 57114357893,
"goodsId": 1620002566,
"thumbUrl": "https://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg",
"initQuantity": 0,
"quantity": 642,
"limitQuantity": 999999,
"soldQuantity": 0,
"defaultQuantity": 37,
"isOnsale": 1,
"spec": "1115500378,33651",
"specs": [
{
"spec_key": "颜色",
"spec_value": "粉色两件套(外套+裙子)",
"spec_key_id": 1215,
"spec_value_id": 1115500378
},
{
"spec_key": "尺码",
"spec_value": "L(100-110斤)",
"spec_key_id": 1226,
"spec_value_id": 33651
}
],
"price": 0,
"normalPrice": "129",
"groupPrice": "104.4",
"oldGroupPrice": 10440,
"marketPrice": 0,
"weight": 0,
"yellowLabelList": [
{
"labelText": "2件9.5折",
"labelType": "single_goods_percentage_event"
},
{
"labelText": "满200减10",
"labelType": "mall_area_event"
}
],
"previewPriority": 6,
"startTime": 0,
"endTime": 0,
"staticLimitQuantity": 999999,
"attribute": "{\"mg\":null,\"lampInstallInfo\":null,\"ticketRuleId\":null,\"tenBillionSpikeGlobalLowPrice\":null,\"vegetableRuleId\":null,\"skuPreSaleTime\":0,\"hotLiveGroup\":null,\"vegetableHasAllowance\":null,\"vegetableSupplierPrice\":null,\"vegetableStorePercent\":null,\"vegetableIsZeroGoods\":null,\"vegetableSkuGroup\":null,\"vegetableRegularLimitNumber\":null,\"vegetableArchived\":null,\"vegetableSkuOptions\":null}",
"normalSavePrice": "24.6",
"skuID": 57114357893,
"skuExpansionPrice": "0"
},
{
"skuId": 57114357894,
"goodsId": 1620002566,
"thumbUrl": "https://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg",
"initQuantity": 0,
"quantity": 709,
"limitQuantity": 999999,
"soldQuantity": 0,
"hotSale": 1,
"defaultQuantity": 76,
"isOnsale": 1,
"spec": "1115500378,33652",
"specs": [
{
"spec_key": "颜色",
"spec_value": "粉色两件套(外套+裙子)",
"spec_key_id": 1215,
"spec_value_id": 1115500378
},
{
"spec_key": "尺码",
"spec_value": "XL(110-120斤)",
"spec_key_id": 1226,
"spec_value_id": 33652
}
],
"price": 0,
"normalPrice": "129",
"groupPrice": "104.4",
"oldGroupPrice": 10440,
"marketPrice": 0,
"weight": 0,
"yellowLabelList": [
{
"labelText": "2件9.5折",
"labelType": "single_goods_percentage_event"
},
{
"labelText": "满200减10",
"labelType": "mall_area_event"
}
],
"previewPriority": 9,
"startTime": 0,
"endTime": 0,
"staticLimitQuantity": 999999,
"attribute": "{\"mg\":null,\"lampInstallInfo\":null,\"ticketRuleId\":null,\"tenBillionSpikeGlobalLowPrice\":null,\"vegetableRuleId\":null,\"skuPreSaleTime\":0,\"hotLiveGroup\":null,\"vegetableHasAllowance\":null,\"vegetableSupplierPrice\":null,\"vegetableStorePercent\":null,\"vegetableIsZeroGoods\":null,\"vegetableSkuGroup\":null,\"vegetableRegularLimitNumber\":null,\"vegetableArchived\":null,\"vegetableSkuOptions\":null}",
"normalSavePrice": "24.6",
"skuID": 57114357894,
"skuExpansionPrice": "0"
},
{
"skuId": 57114357895,
"goodsId": 1620002566,
"thumbUrl": "https://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg",
"initQuantity": 0,
"quantity": 5,
"limitQuantity": 999999,
"soldQuantity": 0,
"defaultQuantity": 5,
"isOnsale": 1,
"spec": "1115500378,33653",
"specs": [
{
"spec_key": "颜色",
"spec_value": "粉色两件套(外套+裙子)",
"spec_key_id": 1215,
"spec_value_id": 1115500378
},
{
"spec_key": "尺码",
"spec_value": "2XL(120-130斤)",
"spec_key_id": 1226,
"spec_value_id": 33653
}
],
"price": 0,
"normalPrice": "129",
"groupPrice": "104.4",
"oldGroupPrice": 10440,
"marketPrice": 0,
"weight": 0,
"yellowLabelList": [
{
"labelText": "2件9.5折",
"labelType": "single_goods_percentage_event"
},
{
"labelText": "满200减10",
"labelType": "mall_area_event"
}
],
"previewPriority": 12,
"startTime": 0,
"endTime": 0,
"staticLimitQuantity": 999999,
"attribute": "{\"mg\":null,\"lampInstallInfo\":null,\"ticketRuleId\":null,\"tenBillionSpikeGlobalLowPrice\":null,\"vegetableRuleId\":null,\"skuPreSaleTime\":0,\"hotLiveGroup\":null,\"vegetableHasAllowance\":null,\"vegetableSupplierPrice\":null,\"vegetableStorePercent\":null,\"vegetableIsZeroGoods\":null,\"vegetableSkuGroup\":null,\"vegetableRegularLimitNumber\":null,\"vegetableArchived\":null,\"vegetableSkuOptions\":null}",
"normalSavePrice": "24.6",
"skuID": 57114357895,
"skuExpansionPrice": "0"
},
{
"skuId": 57114357896,
"goodsId": 1620002566,
"thumbUrl": "https://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg",
"initQuantity": 0,
"quantity": 742,
"limitQuantity": 999999,
"soldQuantity": 0,
"defaultQuantity": 100,
"isOnsale": 1,
"spec": "1115500378,33656",
"specs": [
{
"spec_key": "颜色",
"spec_value": "粉色两件套(外套+裙子)",
"spec_key_id": 1215,
"spec_value_id": 1115500378
},
{
"spec_key": "尺码",
"spec_value": "3XL(130-140斤)",
"spec_key_id": 1226,
"spec_value_id": 33656
}
注:本帖只展示部分代码,响应参数,注册账号可免费测试或者加v联系"