Warning

This site is no longer being maintained. Visit the eDocs documentation portal for updated information.

Visit eDocs
Dismiss message

Discovery Wall Top Clicked

Created by Iago Fernández · last update December 10, 2019

About this endpoint

This is basically the same endpoint that TopClicked but with different tagging and the possibility of filtering.

GET https://api.empathybroker.com/search/v1/query/{instance_id}/dw-topclicked?{Input_Parameters}

Input Parameters

Parameter Data Type
lang String
filterParam String

Implementation

Here is a simple example for consume this endpoint in Java

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}/dw-topclicked")
       //Query parameters
        .queryParam("lang","ES")
           
}
 
public JSON getResponse(String filters){
    return target.queryParam("filterParam",filters).request(MediaType.APPLICATION_JSON).get(JSON.class)
}

Output

The service will return a json containing the most clicked articles in the day before filtered by the section specified

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
{
  "topclicked": {
    "docs": [
      {
        "style": "Suit",
        "name": "100% Cashmere Sweater",
        "url": "https://st.mngbcn.com/rcs/pics/static/T3/fotos/S9/33075712_99_B.jpg",
        "image": "https://st.mngbcn.com/rcs/pics/static/T3/fotos/S9/33075712_99.jpg",
        "description": "Cashmere fabric, Straight design, Rounded neck, Long sleeve with elastic cuffs, Openwork details, Cable knit finish",
        "longDescription": "",
        "color": [
          "Ecru tones",
          "Beige tones",
          "Reds",
          "Pinks",
          "Greys",
          "Blacks"
        ],
        "id": "33075712070",
        "shortDescription": "",
        "reference": "33075712",
        "categories": [
          "woman",
          "cardigans and sweaters"
        ],
        "hierarchical_category": [
          "woman/cardigans and sweaters"
        ],
        "colortagging_1": [
          "black"
        ],
        "ebTagging": {
          "click": "https://api-staging.empathybroker.com/tagging/v1/track/ebdemo/click?productId=33075712070&catalog=default&origin=default&store=default&title=100%25+Cashmere+Sweater&type=100&follow=true&contextualizeApplied=none&url=https://st.mngbcn.com/rcs/pics/static/T3/fotos/S9/33075712_99_B.jpg&externalBoosted=false&filtered=false&contextualizeEnabled=false&scope=default&page=1&position=1&lang=en",
          "add2cart": "https://api-staging.empathybroker.com/tagging/v1/track/ebdemo/add2cart?productId=33075712070&catalog=default&origin=default&store=default&title=100%25+Cashmere+Sweater&type=100&follow=true&contextualizeApplied=none&url=https://st.mngbcn.com/rcs/pics/static/T3/fotos/S9/33075712_99_B.jpg&externalBoosted=false&filtered=false&contextualizeEnabled=false&scope=default&page=1&position=1&lang=en",
          "wishlist": "https://api-staging.empathybroker.com/tagging/v1/track/ebdemo/wishlist?productId=33075712070&catalog=default&origin=default&store=default&title=100%25+Cashmere+Sweater&type=100&follow=true&contextualizeApplied=none&url=https://st.mngbcn.com/rcs/pics/static/T3/fotos/S9/33075712_99_B.jpg&externalBoosted=false&filtered=false&contextualizeEnabled=false&scope=default&page=1&position=1&lang=en",
          "conversion": "https://api-staging.empathybroker.com/tagging/v1/track/ebdemo/add2cart?productId=33075712070&catalog=default&origin=default&store=default&title=100%25+Cashmere+Sweater&type=100&follow=true&contextualizeApplied=none&url=https://st.mngbcn.com/rcs/pics/static/T3/fotos/S9/33075712_99_B.jpg&externalBoosted=false&filtered=false&contextualizeEnabled=false&scope=default&page=1&position=1&lang=en",
          "checkout": "https://api-staging.empathybroker.com/tagging/v1/track/ebdemo/checkout?productId=33075712070&catalog=default&origin=default&store=default&title=100%25+Cashmere+Sweater&type=100&follow=true&contextualizeApplied=none&url=https://st.mngbcn.com/rcs/pics/static/T3/fotos/S9/33075712_99_B.jpg&externalBoosted=false&filtered=false&contextualizeEnabled=false&scope=default&page=1&position=1&lang=en"
        }
      }
    ]
  }
}