get_shop_shelf_detail_items_looked_at
New server Endpoint (note this is different to get params_id):
https://public-survey-data-api.rose.conceptsauce.io/api
Request body:
{
"event_type": "survey_data_request",
"action": "get_shop_shelf_detail_items_looked_at",
"data": {
"target": {
"survey_id": "SURVL01GW7A4Y5DR61ENNN3E0B60YK9",
"respondent_encoded": "encc7b362de53d062695b94ecc6c028bdff6bb6596a",
"block_id": "shelf"
}
}
}
Response:
{
"code": 200,
"data": {
"data_complete": true,
"survey_id": "SURVL01GW7A4Y5DR61ENNN3E0B60YK9",
"block_id": "shelf",
"respondent_id": "null",
"respondent_encoded": "encc7b362de53d062695b94ecc6c028bdff6bb6596a",
"run_id": null,
"items_looked_at": [
{
"sku": "a5053827111157",
"views_looked_at": [
{
"view_id": "front",
"duration_of_view": "1164.0",
"time_of_view": "26067.0"
},
{
"view_id": "front",
"duration_of_view": "810.0",
"time_of_view": "27231.0"
},
{
"view_id": "back",
"duration_of_view": "719.0",
"time_of_view": "28041.0"
},
{
"view_id": "front",
"duration_of_view": "889.0",
"time_of_view": "29626.0"
},
{
"view_id": "back",
"duration_of_view": "616.0",
"time_of_view": "30515.0"
},
{
"view_id": "front",
"duration_of_view": "851.0",
"time_of_view": "31131.0"
},
{
"view_id": "back",
"duration_of_view": "543.0",
"time_of_view": "31982.0"
}
]
}
]
},
"event_type": "survey_data_request",
"action": "get_shop_shelf_detail_items_looked_at",
"client_msg_id": "",
"platform_status": {
"status": "running",
"shut_down_timestamp": 0
}
respondent_encoded
is the one passed in the respondent App url as respondent_id
and is retrieved using the https://conceptsauce.atlassian.net/wiki/spaces/API/pages/2725347329 step.
block_id
is the same as present in Admin App
Inside the target , each parameter must be set manually. The provided by survey_id
, respondent_encoded
and block_id
ARE ONLY EXAMPLES.
If the specified value is invalid, response for such a request will be with code: 802 (which means: No data available for specified target)
The response with 802 code may also mean: The target is alright, but no respondent bought anything yet.
©2020 ConceptSauce ltd / For further help please contact us directly on Team@conceptsauce.io