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": { "survey_id": "SURVL01GW7A4Y5DR61ENNN3E0B60YK9", "block_id": "shelf", "respondent_id": "null", "respondent_encoded": "encc7b362de53d062695b94ecc6c028bdff6bb6596a", "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": "" }
respondent_encoded
is the one passed in the respondent App url as respondent_id
and is retrieved using the Get Respondent Encoded ID 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.