The following operations are supported. For a formal definition, please review the Web Services Description Language.
- string getResponsesCSV( string login, string password, string survey_id, string start_date, string end_date )
The getResponsesCSV function returns survey response data in Excel-compatible CSV format. $login and $password are the same as your account info. $survey_id is the hyphenated number at the end of your survey's web URL (e.g., "89-12345678" for a survey at http://websurvey.plumvoice.com/take/89-12345678). If you want to restrict the responses to a certain date range, use the $start_date and $end_date parameters (any string representation of a date/time is accepted, e.g., MM-DD-YYYY or phrases like "yesterday"); otherwise, leave these empty. In the CSV data, audio recordings will be represented as <file:$ANI-$id.wav>; to download these files use the getResponsesAudio function below. - string getResponsesAudio( string login, string password, string survey_id, string start_date, string end_date )
The getResponsesAudio function returns recorded audio from phone responses as a base64-encoded string containing a ZIP archive of WAV files. $login and $password are the same as your account info. $survey_id is the hyphenated number at the end of your survey's web URL (e.g., "89-12345678" for a survey at http://websurvey.plumvoice.com/take/89-12345678). If you want to restrict the responses to a certain date range, use the $start_date and $end_date parameters (any string representation of a date/time is accepted, e.g., MM-DD-YYYY or phrases like "yesterday"); otherwise, leave these empty. You will need to decode the base64 string and then unzip the file to obtain the audio. The audio filenames will match the filenames in the CSV exported above.