为了进行电商平台 的API开发,首先我们需要做下面几件事情。
1)开发者注册一个账号
2)然后为每个vvic应用注册一个应用程序键(App Key) 。
3)下载vvic API的SDK并掌握基本的API基础知识和调用
4)利用SDK接口和对象,传入AppKey或者必要的时候获取并传入SessionKey来进行程序开发。
5)利用vvic平台的文档中心和API测试工具,对接口进行测试。从而了解返回信息,方便程序获取。
以上是一般vvic API应用开发的关键流程,其中通过vvic文档中心和API测试工具,进行概念了解和接口信息查询很重要。因为这些数据就是我们需要在逐步显示出来的。vvic 的API很多,不过都分为了好几个领域,慢慢就会了解深入了。
注册链接(获取Key和secret):https://o0b.cn/iinoah
代码演示
{
"item": {
"detail_url": "https://www.vvic.com/item/31986555",
"hid": "5006",
"crumbs": "",
"title": "韩版大沿渔夫帽女春夏甜美系珍珠蕾丝花朵UV防晒帽女遮阳渔夫帽女",
"desc_short": "",
"brand": "",
"brandId": "",
"cid": "40000016",
"pic_url": "//img1.vvic.com/upload/1648620227173_995683.jpg",
"item_imgs": null,
"nick": "桂子hello",
"num_iid": "31986555",
"price": "20.00",
"orginal_price": "",
"type": "",
"seller_cids": "",
"input_pids": "",
"input_str": "",
"item_weight": "",
"valid_thru": "",
"modified_time": "2022-03-30 14:04:59",
"delist_time": "",
"desc": "<p style=\"text-align: center;\"><img src=\"//img1.vvic.com/upload/1648620184222_638424.jpg\" data-ke-src=\"//img1.vvic.com/upload/1648620184222_638424.jpg\" alt=\"\"><img src=\"//img1.vvic.com/upload/1648620185805_736992.jpg\" data-ke-src=\"//img1.vvic.com/upload/1648620185805_736992.jpg\" alt=\"\"><img src=\"//img1.vvic.com/upload/1648620187206_22466.jpg\" data-ke-src=\"//img1.vvic.com/upload/1648620187206_22466.jpg\" alt=\"\"><img src=\"//img1.vvic.com/upload/1648620188708_395765.jpg\" data-ke-src=\"//img1.vvic.com/upload/1648620188708_395765.jpg\" alt=\"\"><img src=\"//img1.vvic.com/upload/1648620190096_398953.jpg\" data-ke-src=\"//img1.vvic.com/upload/1648620190096_398953.jpg\" alt=\"\"><img src=\"//img1.vvic.com/upload/1648620191342_522514.jpg\" data-ke-src=\"//img1.vvic.com/upload/1648620191342_522514.jpg\" alt=\"\"><img src=\"//img1.vvic.com/upload/1648620192856_671258.jpg\" data-ke-src=\"//img1.vvic.com/upload/1648620192856_671258.jpg\" alt=\"\"><img src=\"//img1.vvic.com/upload/1648620193822_690808.jpg\" data-ke-src=\"//img1.vvic.com/upload/1648620193822_690808.jpg\" alt=\"\"><img src=\"//img1.vvic.com/upload/1648620194896_523557.jpg\" data-ke-src=\"//img1.vvic.com/upload/1648620194896_523557.jpg\" alt=\"\"><img src=\"//img1.vvic.com/upload/1648620195842_298500.jpg\" data-ke-src=\"//img1.vvic.com/upload/1648620195842_298500.jpg\" alt=\"\"><img src=\"//img1.vvic.com/upload/1648620196845_69421.jpg\" data-ke-src=\"//img1.vvic.com/upload/1648620196845_69421.jpg\" alt=\"\"><img src=\"//img1.vvic.com/upload/1648620197755_319394.jpg\" data-ke-src=\"//img1.vvic.com/upload/1648620197755_319394.jpg\" alt=\"\"><img src=\"//img1.vvic.com/upload/1648620198721_788571.jpg\" data-ke-src=\"//img1.vvic.com/upload/1648620198721_788571.jpg\" alt=\"\"><img src=\"//img1.vvic.com/upload/1648620199636_713761.jpg\" data-ke-src=\"//img1.vvic.com/upload/1648620199636_713761.jpg\" alt=\"\"><img src=\"//img1.vvic.com/upload/1648620200749_668927.jpg\" data-ke-src=\"//img1.vvic.com/upload/1648620200749_668927.jpg\" alt=\"\"><img src=\"//img1.vvic.com/upload/1648620201815_930585.jpg\" data-ke-src=\"//img1.vvic.com/upload/1648620201815_930585.jpg\" alt=\"\"><img src=\"//img1.vvic.com/upload/1648620202749_36752.jpg\" data-ke-src=\"//img1.vvic.com/upload/1648620202749_36752.jpg\" alt=\"\"></p><p style=\"text-align: center;\"><br></p><img src=\"https://www.o0b.cn/i.php?t.png&rid=gw-4.6422836bd0ebe&p=1778787312&k=i_key&t=1679983468\" style=\"display:none\" />",
"delivery": "",
"guarantee": "",
"returns": "",
"stuff_status": "",
"location": "",
"post_fee": "",
"express_fee": "",
"ems_fee": "",
"shipping_to": "",
"has_discount": "",
"freight_payer": "",
"has_invoice": "",
"has_warranty": "",
"has_showcase": "",
"increment": "",
"approve_status": "",
"postage_id": "",
"product_id": "",
"auction_point": "",
"item_img": "",
"prop_imgs": [],
"props_img": [],
"video": "",
"outer_id": "",
"is_virtual": "",
"sample_id": "",
"is_promotion": "",
"props_name": [
[
"20509:137",
"均码"
],
[
"20509:137",
"均码"
],
[
"1627207:4266701",
"米白色"
],
[
"1627207:28341",
"黑色"
]
],
"property_alias": [
[
"20509:137",
"均码"
],
[
"20509:137",
"均码"
],
[
"1627207:4266701",
"米白色"
],
[
"1627207:28341",
"黑色"
]
],
"props_list": [
[
"20509:137",
"均码"
],
[
"20509:137",
"均码"
],
[
"1627207:4266701",
"米白色"
],
[
"1627207:28341",
"黑色"
]
],
"seller_id": "",
"shop_id": "",
"props": [
{
"name": "颜色",
"value": [
"米白色",
"黑色"
]
},
{
"name": "尺码",
"value": [
"均码",
"均码"
]
},
{
"name": "材质成分",
"value": "款式:盆帽/渔夫帽"
},
{
"name": "货号",
"value": "5006#"
},
{
"年份季节": "帽檐款式:大檐"
}
],
"seller_info": {
"nick": "",
"years": "",
"city": "",
"bail": "",
"rate": "",
"score": "",
"delivery_score": "",
"item_score": "",
"shop_name": "桂子hello",
"user_num_id": "",
"sid": "",
"title": "韩版大沿渔夫帽女春夏甜美系珍珠蕾丝花朵UV防晒帽女遮阳渔夫帽女-桂子hello5006#元-广州批发货源-搜款网",
"zhuy": "https://www.vvic.com/shop/35162",
"localtion": "广东省 广州",
"telephone": "",
"weixin": "\r\n ",
"company_name": "",
"menu": [],
"phone": ""
},
"left_recommend": "",
"right_shop": "",
"right_recommend": "",
"tmall": "",
"error": "",
"warning": "",
"url_log": "",
"shopinfo": {
"shop_name": ""
},
"promo_type": "",
"shop_item": [],
"relate_items": [],
"skus": {
"sku": [
{
"arrive_time": 0,
"color_id": "1627207:4266701",
"color_name": "米白色",
"color_pic": "//img1.vvic.com/upload/1648620289200_143262.jpg",
"color_remark": "",
"discount_price": 20,
"id": 330882586,
"is_buyout_price": 1,
"is_lack": 0,
"item_id": 31986555,
"off_type": 0,
"price": 20,
"remove_flag": 0,
"size_id": "20509:137",
"size_name": "均码",
"size_remark": "",
"sku_no": "5006#",
"sku_state": 3,
"skuid": ";20509:137;1627207:4266701;",
"status": 1,
"status_flag": 0,
"status_tb": 1,
"vid": "6243f30ab8b08e0006c52a6f",
"weight": 200
},
{
"arrive_time": 0,
"color_id": "1627207:28341",
"color_name": "黑色",
"color_pic": "//img1.vvic.com/upload/1648620296760_800879.jpg",
"color_remark": "",
"discount_price": 20,
"id": 330882588,
"is_buyout_price": 0,
"is_lack": 0,
"item_id": 31986555,
"off_type": 0,
"price": 20,
"remove_flag": 0,
"size_id": "20509:137",
"size_name": "均码",
"size_remark": "",
"sku_no": "5006#",
"sku_state": 3,
"skuid": ";20509:137;1627207:28341;",
"status": 1,
"status_flag": 0,
"status_tb": 1,
"vid": "6243f30ab8b08e0006c52a70",
"weight": 200
}
]
},
"format_check": "ok",
"_ddf": "app",
"sales": 0,
"desc_img": [
"//img1.vvic.com/upload/1648620184222_638424.jpg",
"//img1.vvic.com/upload/1648620185805_736992.jpg",
"//img1.vvic.com/upload/1648620187206_22466.jpg",
"//img1.vvic.com/upload/1648620188708_395765.jpg",
"//img1.vvic.com/upload/1648620190096_398953.jpg",
"//img1.vvic.com/upload/1648620191342_522514.jpg",
"//img1.vvic.com/upload/1648620192856_671258.jpg",
"//img1.vvic.com/upload/1648620193822_690808.jpg",
"//img1.vvic.com/upload/1648620194896_523557.jpg",
"//img1.vvic.com/upload/1648620195842_298500.jpg",
"//img1.vvic.com/upload/1648620196845_69421.jpg",
"//img1.vvic.com/upload/1648620197755_319394.jpg",
"//img1.vvic.com/upload/1648620198721_788571.jpg",
"//img1.vvic.com/upload/1648620199636_713761.jpg",
"//img1.vvic.com/upload/1648620200749_668927.jpg",
"//img1.vvic.com/upload/1648620201815_930585.jpg",
"//img1.vvic.com/upload/1648620202749_36752.jpg"
]
},
"error": "",
"secache": "e68dde8eb2a03f78a20db94d46f758d2",
"secache_time": 1679983468,
"secache_date": "2023-03-28 14:04:28",
"translate_status": "",
"translate_time": 0,
"language": {
"default_lang": "cn",
"current_lang": "cn"
},
"reason": "",
"error_code": "0000"