首页 > 其他分享 >vvic根据ID取商品详情 API

vvic根据ID取商品详情 API

时间:2023-08-01 10:32:38浏览次数:33  
标签:upload jpg id API vvic img1 com ID


为了进行电商平台 的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)

vvic根据ID取商品详情 API_接口

vvic根据ID取商品详情 API_junit_02

代码演示

{
	"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"

标签:upload,jpg,id,API,vvic,img1,com,ID
From: https://blog.51cto.com/u_16182967/6918269

相关文章

  • alibaba获得店铺的所有商品 API
    为了进行电商平台的API开发,首先我们需要做下面几件事情。1)开发者注册一个账号2)然后为每个alibaba应用注册一个应用程序键(AppKey)。3)下载alibabaAPI的SDK并掌握基本的API基础知识和调用4)利用SDK接口和对象,传入AppKey或者必要的时候获取并传入SessionKey来进行程序开发。5)利用ali......
  • 用大白话科普什么是「API接口」
    ......
  • alibaba按关键字搜索商品 API
    为了进行电商平台的API开发,首先我们需要做下面几件事情。1)开发者注册一个账号2)然后为每个alibaba应用注册一个应用程序键(AppKey)。3)下载alibabaAPI的SDK并掌握基本的API基础知识和调用4)利用SDK接口和对象,传入AppKey或者必要的时候获取并传入SessionKey来进行程序开发。5)利用ali......
  • shopee根据ID取商品详情 API
    简单演示公共参数:https://o0b.cn/iinoah名称类型必须描述keyString是调用key(前往获取key和secret)secretString是调用密钥api_nameString是API接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等]cacheString否[yes,no]默认yes,将调用缓存的数据,速度比较快result_typ......
  • NET6 Webapi 大驼峰传到前端变成了小驼峰
    JsonSerializerOptions.PropertyNamingPolicy属性services.AddControllers().AddJsonOptions(options=>{//获取或设置一个值,该值指定用于将对象的属性名称转换为其他格式(例如camel大小写)的策略;若为null,则保持属性名称不变......
  • vue中使用provide和inject依赖注入组件之间进行父子组件传值(也适用于嵌套路由)
      父组件中:provide:function(){return{reload:this.reload//父组件中的方法}}子组件中:inject:['reload']使用:this.reload()//也可传入参数......
  • IDEA为新项目默认设置
    File->newProjectssetup提前设置好maven3.配置项目SDK......
  • rest-apiV2.0.0升级为simplest-api开源框架生态之simplest-jpa发布
    什么是simplestsimplest追求存粹简单和极致。旨在为项目快速开发提供一系列的基础能力,方便用户根据项目需求快速进行功能拓展不在去关心一些繁琐。重复工作,而是把重点聚焦到业务。前言程序10年。作为一个多年程序。深知每个项目和程序,都有很多重复性工作要做。入行近10......
  • android重复点击问题
    openclassSingleClickListener(privatevalintervalMils:Long=1000):OnClickListener{privatevalTAG=this.javaClass.nameprivatevarmLastClickTime=0LoverridefunonClick(p0:View?){Logger.logger(TAG,"onClick")......
  • 6种主流的Hybrid 技术框架与方案
    移动操作系统在经历了诸神混战之后,BlackBerryOS、SymbianOS、WindowsPhone等早期的移动操作系统逐渐因失去竞争力而退出。目前,市场上主要只剩下安卓和iOS两大阵营,使得iOS和安卓工程师成为抢手资源。然而,由于两者系统的差异,开发同一个应用需投入两倍的工作量,不仅增加了人力成本,而......