Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

first we send this object to the server end points:

Code Block
languagejson
https://better-params-api.rose.conceptsauce.io/api

We place the param_id in this object, we get the param_id from the published URL:

Code Block
languagejson
{
	"event_type": "params_crud",
	"action": "get_params",
	"data": {
		"params_id": "PRMS01G027YJBWQ4RE9RMBNJJ73YJ1"
	}
}

The response will give you the survey_id, this is then used in the API calls:

Code Block
languagejson
{
	"code": 200,
	"data": {
		"params": {
			"survey_id": "SURVT01G027YJ46E7575APG7X1J8XPV",
			"state": "test",
			"survey_type": "test",
			"respondent_token": "RESP01G027YJA08A0X7QRAN4B8NXCW"
		}
	},
	"event_type": "params_crud",
	"action": "get_params",
	"client_msg_id": ""
}

...