为了进行电商平台API开发,我们需要做下面几件事情。
1)开发者注册一个账号
2)然后在平台应用注册一个应用程序键(App Key) 。
3)下载平台API的SDK并掌握基本的API基础知识和调用
4)利用SDK接口和对象,传入AppKey或者必要的时候获取并传入SessionKey来进行程序开发。
5)利用平台提供的API文档中心和测试工具,对接口进行测试。从而了解返回信息,方便程序获取。
以上是电商平台的API应用开发的关键流程,其中通过平台文档中心和API测试工具,进行概念了解和接口信息查询很重要。因为这些数据就是我们需要在逐步显示出来的。lazada 的API很多,不过都分为了好几个领域,慢慢就会了解深入了。
义乌购yiwugo获得店铺详情 API 返回值说明
API 返回结果
Request address:
https://api-gw.onebound.cn/yiwugo/seller_info/?key=test_api_key&
&nick=Y30365A&&lang=zh-CN&secret=
---------------------------------------
Result Object:
---------------------------------------
{
"user": {
"title": "卫红女装制衣厂义乌篁园市场_义乌篁园服装市场_义乌购",
"shop_id": "Y30365A",
"shop_name": "卫红女装制衣厂义乌篁园市场",
"sid": "",
"zhuy": "https://www.yiwugo.com/hu/Y30365A.html",
"level": "11年",
"shop_type": "gjhy hytit",
"user_num_id": "Y3-0365A",
"nick": "卫红女装制衣厂义乌篁园市场",
"credit": 0,
"quantity": "商品(188)",
"desc": "卫红女装制衣厂是以时尚,高端,上档次,大气为主。连衣裙,套装,T恤,外套等等",
"shop_desc": {
"phone": "13806790169",
"youjian": "[email protected]",
"weixin": "13806790169",
"weixinma": "//img1.yiwugou.com/i004/2021/07/27/28/9e48c16397ccc08a8aea02e688c91ca4.jpg",
"QQ": "'879406395'",
"user_name": "",
"address": "",
"zhuyin": "",
"leixin": "内销 小额批发 "
}
},
"translate_status": "",
"translate_time": 0,
"language": {
"default_lang": "cn",
"current_lang": "cn"
},
"error": "",
"reason": "",
"error_code": "0000",
"cache": 0,
"api_info": "today:86 max:10100 all[194=86+64+44];expires:2030-12-31",
"execution_time": "0.085",
"server_time": "Beijing/2022-08-22 14:10:56",
"client_ip": "106.6.39.114",
"call_args": {
"nick": "Y30365A"
},
"api_type": "yiwugo",
"translate_language": "zh-CN",
"translate_engine": "google_cn",
"server_memory": "0.83MB",
"request_id": "gw-4.63031df03fc3c",
"last_id": "1167183329"
}