Get Surveys - POST /attributes - http://api.spectrumsurveys.com/buyers/v1/attributes
...
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.
...
Code Block |
---|
GET /buyers/v1/attributes/
{
"Q_ID" : 1110
"Buyer_Attribute_ID" : "ABC123",
"Desc" : "Pet Food Preferences",
"Category" : "Pets",
"Type":1,
"localizations":[
{
"localization" : "en_us",
"Q_text": "Do you purchase dry or wet Dog Food?"
"answers":[
{
"buyer_Answer_ID" : "DEF456",
"Answer_Text" : "Dry Food"
"PS_C_ID" : 111
},
{
"buyer_Answer_ID" : "DEF456",
"Answer_Text" : "WetFood"
"PS_C_ID" : 112
}
]
}
]
}
|
Example 3: Singlepunch - alt
Code Block |
---|
GET /suppliers/v2/attributes/1040?survey_localization=en_US { "text":"Are you registered in any of the following US political parties?", "cat":"Politics", "desc":"Political Party Affiliation", "type":1, "class":2, "condition_codes":[ {"id":"111","text":"Democratic Party"}, {"id":"112","text":"Republican Party"}, {"id":"113","text":"Independent"}, {"id":"114","text":"Constitution Party"}, ... {"id":"117","text":"Other"}, {"id":"118","text":"I am not registered with a political party"} ], "crtd_on": 1487871678958, "mod_on": 1487871678958 } |
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 |
...