亚马逊API电商接口测试

218 阅读1分钟

API是应用程序的开发接口,在开发程序的时候,我们有些功能可能不需要从到到位去研发,我们可以拿现有的开发出来的功能模块来使用,而这个功能模块,就叫做库(libary)。比如说:要实现数据传输的安全,这就要使用加密技术,使用加密技术就要用到加密算法,而加密算法,已经有好心人,帮我们开发出来了加密算法库,你直接就可以调用,不需要再开发算法。

API测试工具

image.png 公共参数

请求地址: api-gw.onebound.cn/amazon/item…

image.png 响应示例

"item": {
	"detail_url": "https://www.amazon.cn/dp/B07D8SH148?th=1&psc=1",
	"crumbs": {
		"116087071": "Kindle商店",
		"116169071": "Kindle电子书",
		"144154071": "小说"
	},
	"title": "",
	"desc_short": "",
	"brand": "",
	"brandId": "",
	"end_time": "",
	"rootCatId": "116087071",
	"cid": "144154071",
	"star": "4-5",
	"item_imgs": [],
	"nick": "          ",
	"num": "99",
	"num_iid": "B07D8SH148",
	"pic_url": "",
	"currency_code": "CNY",
	"price": "",
	"orginal_price": "",
	"location": "",
	"item_weight": null,
	"item_size": "",
	"post_fee": "",
	"express_fee": "",
	"prop_imgs": {
		"prop_img": []
	},
	"props_img": [],
	"props_name": "",
	"property_alias": "",
	"props_list": [],
	"seller_info": {
		"nick": "          ",
		"city": "",
		"bail": "",
		"level": "",
		"rate": "",
		"score": "",
		"delivery_score": "",
		"item_score": "",
		"shop_type": "",
		"user_num_id": "1",
		"sid": "1",
		"title": "          ",
		"zhuy": "https://www.amazon.cn/",
		"company_name": "",
		"menu": []
	},
	"warning": "",
	"shopinfo": {
		"shop_name": ""
	},
	"shop_item": "",
	"relate_items": "",
	"skus": {
		"sku": []
	},
	"desc": "",
	"pinglun": [],
	"format_check": "fail"
},
"error": "data error",
"translate_status": "",
"translate_time": 0,
"language": {
	"default_lang": "cn",
	"current_lang": "cn"
},
"reason": "data error 接口文档:https://open.onebound.cn/help/api/amazon.item_get.html",
"error_code": "5000",
"cache": 0,
"api_info": "today:146 max:10100 all[303=146+83+74];expires:2030-12-31",
"execution_time": "1.365",
"server_time": "Beijing/2022-08-10 14:06:51",
"client_ip": "106.6.34.3",
"call_args": {
	"num_iid": "B07D8SH148"
},
"api_type": "amazon",
"translate_language": "zh-CN",
"translate_engine": "google_cn",
"server_memory": "3.92MB",
"request_id": "gw-1.62f34afa43a04",
"last_id": "1142204955"