Versions Compared

Key

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

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.

...

Sample API Response


Example 1: Simple MultiPunchThe attribute API POST request

Code Block
POST /buyers/v1/attributes/

{
   "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"
             },
 

             {
                 "Buyer_Answer_ID" : "DEF457",
                 "Answer_Text" : "WetFood"
             }....
        ]
    }
 }





Example 2 : The attribute API Response

Code Block
GET /buyers/v1/attributes/

{
  "Q_ID" : 1110


   "localizations":[
     {
         "answers":[
           {
              " buyer_Answer_ID" : "DEF456",
              "PS_C_ID" : 111
           },


           {
              " buyer_Answer_ID" : "DEF456",
              " PS_C_ID" : 111
           }
        ]
     }
   ]
}







...