surveyUpdate
public static string surveyUpdate(string token,string SurveyID,SurveyStructure surveyData)
Update an existing Survey based on the details provided. Return the ID of the Updated Survey.
Section
Survey Related Methods

Parameters
string tokenA valid token for your account. To generate a token, use the login method.
string SurveyIDThe array containing the survey details.
string nameThis name is NOT displayed in your survey.It is for your reference only.
string titleThis title appears at the top of your survey when you send it out or post it on your website.
string urlThis is the page guests will be sent to when they finish the survey. (Example: http://www.yoursite.com/thanks.html).
string introThis message appears beneath the title of the survey.
string logourlImage Url which is to be used as the Logo of the page.
string questionsoptional. The number of questions in the survey
string statusoptional. Status of the survey either wants to keep it online or offline
array surveyData

Returns
stringReturns the ID of the Updated Survey.


Examples
download example code
xmlrpc_surveyUpdate.php


  1. <?php
  2. /**
  3. This Example shows how to authenticate a user using XML-RPC.
  4. Note that we are using the PEAR XML-RPC client and recommend others do as well.
  5. **/
  6. require_once 'XML/RPC2/Client.php';
  7. require_once 'inc/config.php';
  8. $client = XML_RPC2_Client::create($apiURL);
  9. $token = $client->login($apiLogin, $apiPassword);
  10.  
  11. $SurveyID='473';
  12. $surveyDetail['name'] = 'Sales Survey';
  13. $surveyDetail['url'] = 'www.benchmarkemail.com';
  14. $surveyDetail['title'] = 'Shop Survey';
  15. $surveyDetail['intro'] = 'Please take our quick, easy survey on the services we provide.';
  16. $newSurveyID = $client->surveyUpdate($token,$SurveyID,$surveyDetail);
  17. ?>