Question about updating the parameters of the survey response using the API

0

I want to convert the parameter form {data[ID][option SKU]=Yes,data[ID][value] = Response text} to JSON submission in the post request?what should I do?

The method I see from the SG api documentation is to write parameters in Url

url:https://restapi.surveygizmo.com/v5/survey/123456/surveyresponse/1?_method=POST&data[2][10001]=yes&data[3][value]=Test_answer

But I want to post these parameters using json

E.g:

data[ID][value] = Response text >> {“data”:[{“id”:”2″,”answer_id”:”10002″,”answer”:”yes”},{“id”:”3″,”answer_id”:”0″,”answer”:”Test_answer”}]}

 

Thinks

CESARALAS asked
    ×

    Login

    Question stats

    • Active
    • Views520 times
    • Answers0 answers
    • Followers1 follower