Discovery Wall Contextualized Products
Created by Iago Fernández · last update December 10, 2019
Implementation
Here is a simple example of an implementation in Java for consume this endpoint
1
2
3
4
5
6
7
8
9
10
11
12
13
Client client;
WebTarget target;
public void init(){
client = ClientBuilder.newClient();
target = client.target("https://api.empathybroker.com/search/v1/query/{instance_id}/contextialized-products")
//Query parameters
.queryParam("lang","ES")
.queryParam("session","session_example")
}
public JSON getResponse(String user){
return target.queryParam("user",user).request(MediaType.APPLICATION_JSON).get(JSON.class)
}
Output
The result will be a Json that contains the mathcing products
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
{
"content": {
"docs": [
{
"style": "Casual",
"style_facet": [
"Casual"
],
"name": "Ice Cream Printed T-Shirt",
"familyColor": "",
"url": "https://st.mngbcn.com/rcs/pics/static/T3/fotos/S9/33000445_95_B.jpg",
"image": "https://st.mngbcn.com/rcs/pics/static/T3/fotos/S9/33000445_95.jpg",
"description": "Cotton fabric, Ice cream printed, Rounded neck, Sleeveless, Backstitched finish",
"description_facet": [
"Cotton fabric, Ice cream printed, Rounded neck, Sleeveless, Backstitched finish"
],
"longDescription": "",
"color": [
"Pinks",
"Greys",
"Whites"
],
"color_facet": [
"Pinks",
"Greys",
"Whites"
],
"_id": "33000445672",
"id": "33000445672",
"internal_id": "33000445672",
"shortDescription": "",
"brand": "",
"brand_facet": [
""
],
"reference": "33000445",
"ebSKU": [
"33000445"
],
"categories": [
"baby girl",
"t-shirts"
],
"hierarchical_category": [
"baby girl/t-shirts"
],
"eb_categories": [
"789900198|baby girl/682168502|t-shirts"
],
"colortagging_2": [
"gray"
],
"colortagging_2_auto": [
"gray"
],
"colortagging_2_facet": [
"gray"
],
"ebTagging": {
"click": "https://api-staging.empathybroker.com/tagging/v1/track/ebdemo/click?productId=33000445672&catalog=default&origin=default&store=default&title=Ice+Cream+Printed+T-Shirt&type=4&follow=true&contextualizeApplied=none&url=https://st.mngbcn.com/rcs/pics/static/T3/fotos/S9/33000445_95_B.jpg&externalBoosted=false&filtered=false&contextualizeEnabled=true&scope=default&page=1&position=1&lang=en",
"add2cart": "https://api-staging.empathybroker.com/tagging/v1/track/ebdemo/add2cart?productId=33000445672&catalog=default&origin=default&store=default&title=Ice+Cream+Printed+T-Shirt&type=4&follow=true&contextualizeApplied=none&url=https://st.mngbcn.com/rcs/pics/static/T3/fotos/S9/33000445_95_B.jpg&externalBoosted=false&filtered=false&contextualizeEnabled=true&scope=default&page=1&position=1&lang=en",
"wishlist": "https://api-staging.empathybroker.com/tagging/v1/track/ebdemo/wishlist?productId=33000445672&catalog=default&origin=default&store=default&title=Ice+Cream+Printed+T-Shirt&type=4&follow=true&contextualizeApplied=none&url=https://st.mngbcn.com/rcs/pics/static/T3/fotos/S9/33000445_95_B.jpg&externalBoosted=false&filtered=false&contextualizeEnabled=true&scope=default&page=1&position=1&lang=en",
"conversion": "https://api-staging.empathybroker.com/tagging/v1/track/ebdemo/add2cart?productId=33000445672&catalog=default&origin=default&store=default&title=Ice+Cream+Printed+T-Shirt&type=4&follow=true&contextualizeApplied=none&url=https://st.mngbcn.com/rcs/pics/static/T3/fotos/S9/33000445_95_B.jpg&externalBoosted=false&filtered=false&contextualizeEnabled=true&scope=default&page=1&position=1&lang=en",
"checkout": "https://api-staging.empathybroker.com/tagging/v1/track/ebdemo/checkout?productId=33000445672&catalog=default&origin=default&store=default&title=Ice+Cream+Printed+T-Shirt&type=4&follow=true&contextualizeApplied=none&url=https://st.mngbcn.com/rcs/pics/static/T3/fotos/S9/33000445_95_B.jpg&externalBoosted=false&filtered=false&contextualizeEnabled=true&scope=default&page=1&position=1&lang=en"
}
},
{
"style": "Casual",
"style_facet": [
"Casual"
],
"name": "Ice Cream Printed T-Shirt",
"familyColor": "",
"url": "https://st.mngbcn.com/rcs/pics/static/T3/fotos/S9/33000445_95_B.jpg",
"image": "https://st.mngbcn.com/rcs/pics/static/T3/fotos/S9/33000445_95.jpg",
"description": "Cotton fabric, Ice cream printed, Rounded neck, Sleeveless, Backstitched finish",
"description_facet": [
"Cotton fabric, Ice cream printed, Rounded neck, Sleeveless, Backstitched finish"
],
"longDescription": "",
"color": [
"Pinks",
"Greys",
"Whites"
],
"color_facet": [
"Pinks",
"Greys",
"Whites"
],
"_id": "33000445311",
"id": "33000445311",
"internal_id": "33000445311",
"shortDescription": "",
"brand": "",
"brand_facet": [
""
],
"reference": "33000445",
"ebSKU": [
"33000445"
],
"categories": [
"baby girl",
"t-shirts"
],
"hierarchical_category": [
"baby girl/t-shirts"
],
"eb_categories": [
"789900198|baby girl/682168502|t-shirts"
],
"colortagging_2": [
"gray"
],
"colortagging_2_auto": [
"gray"
],
"colortagging_2_facet": [
"gray"
],
"ebTagging": {
"click": "https://api-staging.empathybroker.com/tagging/v1/track/ebdemo/click?productId=33000445311&catalog=default&origin=default&store=default&title=Ice+Cream+Printed+T-Shirt&type=4&follow=true&contextualizeApplied=none&url=https://st.mngbcn.com/rcs/pics/static/T3/fotos/S9/33000445_95_B.jpg&externalBoosted=false&filtered=false&contextualizeEnabled=true&scope=default&page=1&position=2&lang=en",
"add2cart": "https://api-staging.empathybroker.com/tagging/v1/track/ebdemo/add2cart?productId=33000445311&catalog=default&origin=default&store=default&title=Ice+Cream+Printed+T-Shirt&type=4&follow=true&contextualizeApplied=none&url=https://st.mngbcn.com/rcs/pics/static/T3/fotos/S9/33000445_95_B.jpg&externalBoosted=false&filtered=false&contextualizeEnabled=true&scope=default&page=1&position=2&lang=en",
"wishlist": "https://api-staging.empathybroker.com/tagging/v1/track/ebdemo/wishlist?productId=33000445311&catalog=default&origin=default&store=default&title=Ice+Cream+Printed+T-Shirt&type=4&follow=true&contextualizeApplied=none&url=https://st.mngbcn.com/rcs/pics/static/T3/fotos/S9/33000445_95_B.jpg&externalBoosted=false&filtered=false&contextualizeEnabled=true&scope=default&page=1&position=2&lang=en",
"conversion": "https://api-staging.empathybroker.com/tagging/v1/track/ebdemo/add2cart?productId=33000445311&catalog=default&origin=default&store=default&title=Ice+Cream+Printed+T-Shirt&type=4&follow=true&contextualizeApplied=none&url=https://st.mngbcn.com/rcs/pics/static/T3/fotos/S9/33000445_95_B.jpg&externalBoosted=false&filtered=false&contextualizeEnabled=true&scope=default&page=1&position=2&lang=en",
"checkout": "https://api-staging.empathybroker.com/tagging/v1/track/ebdemo/checkout?productId=33000445311&catalog=default&origin=default&store=default&title=Ice+Cream+Printed+T-Shirt&type=4&follow=true&contextualizeApplied=none&url=https://st.mngbcn.com/rcs/pics/static/T3/fotos/S9/33000445_95_B.jpg&externalBoosted=false&filtered=false&contextualizeEnabled=true&scope=default&page=1&position=2&lang=en"
}
}
],
"numFound": 896365,
"ebTagging": {
"query": "https://api-staging.empathybroker.com/tagging/v1/track/ebdemo/query?externalBoosted=false&filtered=false&contextualizeEnabled=true&totalHits=896365&catalog=default&origin=default&scope=default&store=default&page=1&lang=en&contextualizeApplied=none"
}
}
}