How do i pass multiple variable/value pairs in tokenvariables in RestAPI when setting up a campaign

0

I am trying to use token variables for campaigns created via the RESTAPI, I have been unsuccessful in putting multiple variable/value pairs.

 

REST API

https://apihelp.surveygizmo.com/help/article/link/surveycampaign-sub-object#createobject

 

Whats the correct syntax for having more than one token variable specified in the API call.

services answered
    0

    I am encountering an issue with this as well. First, the v5 version of the Survey Campaign object¬†shows the syntax as `var%3Dvalue%26var2%3d=value`. Despite passing this as the token_variable, the token_variable remains set to null. All of the other values passed in the script work, so not sure why this one isn’t. For reference, here is the complete call I am using:

    `https://restapi.surveygizmo.com/v5/survey/1234567/surveycampaign?api_token=xxxxx&api_token_secret=xxxxx&_method=PUT&type=link&name=testing&token_variables=type%3Dessentials%26teacher%3Dme`

    services answered
      0

      I’m not exactly certain if I follow, but the link you referenced shows an example:

      https://restapi.surveygizmo.com/v4/survey/123456/surveycampaign?_method=PUT&type=link&name=New Link Name

      Note that each variable/value pair looks something like this type=link or name=New Link Name. Each additional variable/value pair is separated by an &

      I’m not sure if that is the answer you are looking for, but hopefully this helps.

      Dominic Sharpe answered
        ×

        Login

        Question stats

        • Active
        • Views2235 times
        • Answers2 answers
        • Followers0 followers