好呀,开发者,欢迎来到开发者中心,如果计划在网站、APP、小程序中接入班蔚相关服务,可阅读本文档。
开发过程中如需支持请访问以下链接联系我们:
https://www.bluvarri.com/mall/contact-us
查询达人橱窗中的商品。
get https://www.bluvarri.com/api/open/affiliate/choice_product
返回给定达人的带货列表
响应数据结构:商品列表数据结构
1
2
3
4
5
6
7
8
9
10
11
12
13
async function fetchProduct(influencer,chn,current,size,sort){
const url="https://www.bluvarri.com/api/open/affiliate/choice_product?current="+current+"&size="+size+ "&influencer="+influencer+"&chn="+chn+"&sort="+sort;
return await fetch(url);
}
async function loadProduct(){
const response = await fetchProduct('达人的品牌Id','渠道Id',1,20,'add_time');
var data = await response.json();
console.log(data);
}
loadProduct()
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"code": 200,
"message": "Success",
"product": {
"records": [
{
"brandAvatar": "https://d13-dev-content.oss-cn-hangzhou.aliyuncs.com/brand/avator/21eebe1523d948029e766b7ff10479a5.png.avif",
"brandName": "Yove",
"thumbnail": "https://d13-dev-content.oss-cn-hangzhou.aliyuncs.com/cell/cover/b9ffb6a9a24a47f89505c4cf00118f1a.jpg.avif",
"productName": "新款大爱",
"productPrice": "242.00",
"affiliateLink": "https://www.bluvarri.com/mall/cell-detail?cell_id=8e041d10b9da4697b840c7ad01235ac1&brand_id=0298e729cdd4440fb9e77604511dac2b&influencer=91afe86c90ce45d3b3f59b33e9970f9d&chn=0044b89f7ecf476ea3ee62ad88102d6b&market=api"
}
],
"total": 2,
"size": 30,
"current": 1,
"pages": 1
}
}
商品列表数据对象。
integer
状态码:200 -- 成功,40023 -- 达人或渠道未配置正确。
string
请求状态消息。
object
商品对象
array
商品数据数组.
string
品牌头像URL。
string
品牌名称。
string
商品封面URL。
string
商品名称。
string
商品价格。
string
带货链接。
integer
数据总条数.
integer
数据列表条数。
integer
分页查询当前页数。
integer
分页查询总页数。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"code": 200,
"message": "string",
"product": {
"records": [
{
"brandAvatar": "string",
"brandName": "string",
"thumbnail": "string",
"productName": "string",
"productPrice": "string",
"affiliateLink": "string"
}
],
"total": 0,
"size": 10,
"current": 1,
"pages": 1
}
}