为了进行电商平台 的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示例:
{
"item": {
"num_iid": "1620002566",
"title": "【2件套】套装秋冬新款仿獭兔毛钉珠皮草毛毛短外套加厚大衣女装",
"desc_short": "",
"price": "104.4",
"total_price": "",
"suggestive_price": "",
"orginal_price": "129",
"nick": "果果家气质女装",
"num": 27,
"min_num": 0,
"detail_url": "http://yangkeduo.com/goods.html?goods_id=1620002566",
"pic_url": "https://omsproductionimg.yangkeduo.com/images/2018-06-06/864126a1f461e606796b2204d18a09e9.jpeg",
"brand": null,
"brandId": "",
"item_imgs": [
{
"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/bcf848aa71c6389607ae7a84b70f1543.jpeg"
},
{
"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/176019babfdecffa1d9f98f40b7e99b4.jpeg"
},
{
"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/efb5db42397550bffd3211ca6f197498.jpeg"
},
{
"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/d209ef7bcc9183c3bb8ca1dfdb108d49.jpeg"
},
{
"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/74257ab65f3f00da7a90fde9042fe640.jpeg"
},
{
"url": "https://t00img.yangkeduo.com/goods/images/2019-08-17/e8fbd9cb-cc74-4caa-9380-84c46d27b008.jpg"
},
{
"url": "https://t00img.yangkeduo.com/goods/images/2019-08-17/d76f515b-e375-4060-b94e-cf64f6b0964e.jpg"
},
{
"url": "https://t00img.yangkeduo.com/goods/images/2019-08-17/f2f279b5-6000-4fbe-b99b-7c1cbd7884ea.jpg"
}
],
"rootCatId": 8439,
"cid": 23151,
"favcount": 0,
"fanscount": 0,
"crumbs": [],
"created_time": "",
"modified_time": "",
"delist_time": "",
"desc": "
",
"item_weight": "",
"item_size": "",
"location": "",
"post_fee": "",
"express_fee": "",
"ems_fee": "",
"shipping_to": "",
"has_discount": "",
"video": null,
"is_virtual": "",
"sample_id": "",
"is_promotion": "",
"props_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:119128:尺码:S(90斤以下);1226:96784:尺码:M(90-100斤);1226:33651:尺码:L(100-110斤);1226:33652:尺码:XL(110-120斤);1226:33653:尺码:2XL(120-130斤);1226:33656:尺码:3XL(130-140斤);1215:1115501666:颜色:米色两件套(外套+裙子);1215:105309781:颜色:蓝色两件套(外套+裙子)",
"prop_imgs": {
"prop_img": [
{
"properties": "1215:1115500378",
"url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg"
},
{
"properties": "1226:119128",
"url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg"
},
{
"properties": "1215:1115500378",
"url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg"
},
{
"properties": "1226:96784",
"url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg"
},
{
"properties": "1215:1115500378",
"url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg"
},
{
"properties": "1226:33651",
"url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg"
},
{
"properties": "1215:1115500378",
"url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg"
},
{
"properties": "1226:33652",
"url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg"
},
{
"properties": "1215:1115500378",
"url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg"
},
{
"properties": "1226:33653",
"url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg"
},
{
"properties": "1215:1115500378",
"url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg"
},
{
"properties": "1226:33656",
"url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg"
},
{
"properties": "1215:1115501666",
"url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/415bed99d5a925123d7b7c39547205de.jpeg"
},
{
"properties": "1226:119128",
"url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/415bed99d5a925123d7b7c39547205de.jpeg"
},
{
"properties": "1215:1115501666",
"url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/415bed99d5a925123d7b7c39547205de.jpeg"
},
{
"properties": "1226:96784",
"url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/415bed99d5a925123d7b7c39547205de.jpeg"
},
{
"properties": "1215:1115501666",
"url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/415bed99d5a925123d7b7c39547205de.jpeg"
},
{
"properties": "1226:33651",
"url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/415bed99d5a925123d7b7c39547205de.jpeg"
},
{
"properties": "1215:1115501666",
"url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/415bed99d5a925123d7b7c39547205de.jpeg"
},
{
"properties": "1226:33652",
"url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/415bed99d5a925123d7b7c39547205de.jpeg"
},
{
"properties": "1215:1115501666",
"url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/415bed99d5a925123d7b7c39547205de.jpeg"
},
{
"properties": "1226:33653",
"url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/415bed99d5a925123d7b7c39547205de.jpeg"
},
{
"properties": "1215:1115501666",
"url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/415bed99d5a925123d7b7c39547205de.jpeg"
},
{
"properties": "1226:33656",
"url": "https://t00img.yangkeduo.com/goods/images/2018-08-28/415bed99d5a925123d7b7c39547205de.jpeg"
},
{
"properties": "1215:105309781",
"url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/48b30664f0f7e526ab1b956e813f25cf.jpeg"
},
{
"properties": "1226:119128",
"url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/48b30664f0f7e526ab1b956e813f25cf.jpeg"
},
{
"properties": "1215:105309781",
"url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/3660b7893ca5cda1ffcea745d10b2506.jpeg"
},
{
"properties": "1226:96784",
"url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/3660b7893ca5cda1ffcea745d10b2506.jpeg"
},
{
"properties": "1215:105309781",
"url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/a4a5a671afbb2d8e1f4c21c0ced3bea8.jpeg"
},
{
"properties": "1226:33651",
"url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/a4a5a671afbb2d8e1f4c21c0ced3bea8.jpeg"
},
{
"properties": "1215:105309781",
"url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/f0551176629bf81f25757c160198dba1.jpeg"
},
{
"properties": "1226:33652",
"url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/f0551176629bf81f25757c160198dba1.jpeg"
},
{
"properties": "1215:105309781",
"url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/801a2e23140bfe76229f02aab0a8a5fe.jpeg"
},
{
"properties": "1226:33653",
"url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/801a2e23140bfe76229f02aab0a8a5fe.jpeg"
},
{
"properties": "1215:105309781",
"url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/2f202934f16f0eee41257b77bf489262.jpeg"
},
{
"properties": "1226:33656",
"url": "https://t00img.yangkeduo.com/goods/images/2018-11-17/2f202934f16f0eee41257b77bf489262.jpeg"
}
]
},
"property_alias": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:119128:尺码:S(90斤以下);1226:96784:尺码:M(90-100斤);1226:33651:尺码:L(100-110斤);1226:33652:尺码:XL(110-120斤);1226:33653:尺码:2XL(120-130斤);1226:33656:尺码:3XL(130-140斤);1215:1115501666:颜色:米色两件套(外套+裙子);1215:105309781:颜色:蓝色两件套(外套+裙子)",
"props": [
{
"name": "发货地",
"value": "江苏省"
},
{
"name": "是否带毛领",
"value": "不带毛领"
}
],
"total_sold": "",
"skus": {
"sku": [
{
"price": "104.4",
"total_price": "129",
"properties": "1215:1115500378;1226:119128",
"properties_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:119128:尺码:S(90斤以下)",
"orginal_price": "129",
"quantity": 723,
"sku_id": 57114357891
},
{
"price": "104.4",
"total_price": "129",
"properties": "1215:1115500378;1226:96784",
"properties_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:96784:尺码:M(90-100斤)",
"orginal_price": "129",
"quantity": 561,
"sku_id": 57114357892
},
{
"price": "104.4",
"total_price": "129",
"properties": "1215:1115500378;1226:33651",
"properties_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:33651:尺码:L(100-110斤)",
"orginal_price": "129",
"quantity": 642,
"sku_id": 57114357893
},
{
"price": "104.4",
"total_price": "129",
"properties": "1215:1115500378;1226:33652",
"properties_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:33652:尺码:XL(110-120斤)",
"orginal_price": "129",
"quantity": 709,
"sku_id": 57114357894
},
{
"price": "104.4",
"total_price": "129",
"properties": "1215:1115500378;1226:33653",
"properties_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:33653:尺码:2XL(120-130斤)",
"orginal_price": "129",
"quantity": 5,
"sku_id": 57114357895
},
{
"price": "104.4",
"total_price": "129",
"properties": "1215:1115500378;1226:33656",
"properties_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:33656:尺码:3XL(130-140斤)",
"orginal_price": "129",
"quantity": 742,
"sku_id": 57114357896
},
{
"price": "104.4",
"total_price": "129",
"properties": "1215:1115501666;1226:119128",
"properties_name": "1215:1115501666:颜色:米色两件套(外套+裙子);1226:119128:尺码:S(90斤以下)",
"orginal_price": "129",
"quantity": 222,
"sku_id": 57114357897
},
注:本帖只展示部分代码,响应参数,注册账号可免费测试或者加v联系"