Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

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": "SURV01FPWYJF00B84Q5AXVHF25QQ8Z",
			"respondent_encoded": "enc14367fa406b368698d7dfa3034bda0d005b10eea",
			"block_id": "con|version_1_task_2"
		}
	}
}

Response:

{
	"code": 200,
	"data": {
		"survey_id": "SURV01FPWYJF00B84Q5AXVHF25QQ8Z",
		"block_id": "con|version_1_task_2",
		"respondent_id": "null",
		"respondent_encoded": "enc14367fa406b368698d7dfa3034bda0d005b10eea",
		"items_looked_at": []
	},
	"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_id 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.

  • No labels