Versions Compared

Key

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

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%

...

If a survey is not defined as an include survey, the PSIDref list will always contain the EXCLUDE list.  This is the default for surveys created on PureSpectrum.  Leveraging the exclude list will allow you the ability to avoid termination due to deduplication.  You may either call the survey's PSIDRef list, and store it, or you may use the optional query string parameter /PSIDref?PSID=%respondent'sPSID%, which will return back a response of 

API Response for "GET /surveys/:survey_id/PSIDEligible?PSID=75xxee23-370b-a8ye-e601-e1fzz59284c8"

Code Block
{
	"eligible":1 // 1 is eligible, 0 is ineligible 
}

...

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)

1 = Core profiling question

2 = Extended profiling question

3 = Custom profiling question

Parameter

Type

Description

Nullable

text

string

The text of the question asked to the respondent

descstringA description of the question that is asked of the respondentcatstringCategory name of the question that is asked of the respondent

type

integerclassinteger


PSIDRefarray

Contains a list of  "PSIDRef" numbers which fall either under include or exclude category.


...