Get Surveys - GET /attributes - http://api.spectrumsurveys.com/suppliers/v2/attributes/:qualification_code?survey_localization=:survey_localization
...
Call this API to view the respondent's question text, condition codes, and condition code texts for unfamiliar qualification codes/condition codes. Survey_localization is a required Query String parameter.
...
- Qualifications are shared across surveyLocalizations on PureSpectrum. For example, we use the same code for b2b employment in the US/English, that we use in Japanese Japan.
- Condition codes when appropriate are also shared across localizations
- Even though the codes may be the same, we represent these questions/answers using the appropriate language/localization
- We only currently support 3 question types in this api call: Singlepunch, Singlepunch-alt, & Multipunch
- singlepunch is presented as a dropdown. Singlepunch-alt and Multipunch are shown in push-button form
HEADER Parameters
Parameter | Type | Required | Description |
---|---|---|---|
access-token | string | Yes | Token used to identify the authenticity of the user. |
...
Code Block |
---|
GET /suppliers/v2/attributes/1040?survey_localization=en_US { "q_text":"Are you registered in any of the following US political parties?", "q_cat":"Politics", "q_desc":"Political Party Affiliation", "q_type":1, "q_class":2, "conditions":[ {"c_id":"111","c_text":"Democratic Party"}, {"c_id":"112","c_text":"Republican Party"}, {"c_id":"113","c_text":"Independent"}, {"c_id":"114","c_text":"Constitution Party"}, ... {"c_id":"117","c_text":"Other"}, {"c_id":"118","c_text":"I am not registered with a political party"} ] } |
HTTP Response Codes
Response | Status | Description |
---|---|---|
200 | OK | |
400 | Bad Request | You may be missing the survey_localization code |
404 | Not Found | Qualification code doesn't exist in database |
5xx | Internal Server Error | Please Report to support@purespectrun.com |