Creating a new automated poll
There are a few steps involved with creating a new poll. Polls can be very complicated with the current available api. Below is an outline of the steps that are needed to complete a new automated poll.
- Switch client ID context to the client you want to create the operator for with SwitchClientId
- Upload phone numbers to PhoneUpload
- Generate a new pollid and callsetid with CreateAutomatedPoll
- Create poll questions with NewPollQuestion
- Update a poll question with audio and answers with UpdatePollQuestion
- Perform a test call with TestCall
- Finalize campaign creation and check for campaign errors with CompleteSet
- Schedule your new campaign with UpdateSchedule
After these steps are completed successfully, you may then schedule or start your poll.
WARNING
Never edit a poll after the phone list has been added. The front-end interface for making polls was never properly worked out to allow easily editing it after the phone list was added and CompleteSet was called. It is even more difficult to use the API to edit a completed poll setup because it wasn't originally intended to be used by anything other than the front-end website. The server-side system is expecting multiple internal values that your application must keep track of in order to be successful.