NewPollQuestion.wr
06-15-2013
Updates various properties of a poll.
Parameters
- Number : pollid - The ID of the poll this poll question belongs to.
- Number : callsetid - The ID of the calloutset this poll question belongs to.
- Number : qnum - The order in which this question should be asked. Can be 1 or greater.
- String : qtitle - Name of your poll question. Can basically be whatever you want.
- String : question - Entire text of your poll question. Can be up to 762 characters.
- String : type - Type of answer your poll question will respond to. Can be "TOUCHTONE", "MESSAGEONLY", "RECORD", "IDNUMBER", or "NUMBER" .
- String : grouptype - Type of group your poll question is a member of. Can be "NONE", "RANDOMAORDER", "RANDOMQORDER", or "MESSAGETESTER" .
- String : ismaster - Determines if this poll question is the master of a "RANDOMAORDER" group. Can be true or false.
Usage
Example Request
Let's create the most simple basic poll question.
POST /NewPollQuestion.wr HTTP/1.1
Host: api.voicebroadcasting.com
Content-Type: application/x-www-form-urlencoded
apirid=1111&sidtoken=abcxyz123&qnum=1&qtitle=Favorite%20Color&pollid=123&callsetid=456&question=What%20is%20your%20favorite%20color%3F&type=TOUCHTONE&grouptype=NONE&ismaster=false
Example Response
{"questionid":54321,"qnum":1,"response":"confirmed"}