GET /Surveys- http://api.spectrumsurveys.com/suppliers/v2/Surveys
GET /Surveys/:Survey_id - http://api.spectrumsurveys.com/suppliers/v2/Surveys/:Survey_id
GET /Surveys/:Survey_id/PSIDRef - http://api.spectrumsurveys.com/suppliers/v2/Surveys/:Survey_id/PSIDRef
GET /Surveys/:Survey_id/PSIDEligible - http://api.spectrumsurveys.com/suppliers/v2/Surveys/:Survey_id/PSIDEligible?PSID=%PSID%
...
or GET /Surveys/:Survey_id call. The value of Include Exclude will not change for a survey which goes live.
Info |
---|
"incl_excl":0 indicates PSIDRef is an exclude list "incl_excl":1 indicates PSIDRef is an include list |
API Response for GET /surveys/:survey_id/PSIDref
...
Parameter | Type | Description | Nullable | ||||||
---|---|---|---|---|---|---|---|---|---|
text | string | The text of the question asked to the respondent | |||||||
desc | string | A description of the question that is asked of the respondent | |||||||
cat | string | Category name of the question that is asked of the respondent | |||||||
type | integer | 1=singlepunch (only one selection is allowed, presented in dropdown form) 2=singlepunch-alt (only one selection is allowed - presented in push button form) 3=multipunch (multiple selections are allowed, presented in push button form) 4=range (not currently supported) | |||||||
class | integer | 1 = Core profiling question 2 = Extended profiling question 3 = Custom profiling question | |||||||
condition_codesPSIDRef | array | contains the condition codes and condition code texts | crtd_on | UTC Timestamp in milliseconds since Unix Epoch | Timestamp of when this attribute was created | mod_on | UTC Timestamp in milliseconds since Unix Epoch | Timestamp of when this attribute was modified. This may include a change in text, addition or modification of condition codes. In case the mod_on has changed since your last sync, delete the qualification in your system and recreate it to prevent inconsistencies Contains a list of "PSIDRef" numbers which fall either under include or exclude category. | |
HTTP Response Codes
Response | Status | Description |
---|---|---|
200 | OK | |
400 | Bad Request | See Error Messages |
404 | Not Found | Qualification code doesn't exist in database |
5xx | Internal Server Error | Please Report to support@purespectrum.com |
...