surveyColorUpdate
public static string surveyColorUpdate(string token,string SurveyID,SurveyColorStructure surveyColorData)
Update Survey Color 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 SurveyIDID of the survey for which you want to create questions
array surveyColorDataThe array containing the survey Color details.
string questionfgForeground color of your survey question which we want for survey Question.
string formbgBackground color of your suvey's form.
string formfgForeground color of your survey's form.
string headerbgBackground for your survey header
string headerfgForeground color for your survey header
string parafgForeground color of your survey question paragraph
string headerfontHeader font for the survey question
string headersizeHeader size for the survey question
string parafontFont for the survey question paragraph
string parasizeFontsize of the survey question paragraph
string questionfontFont of the survey question
string questionsizeFont size of the survey question
string answerfontFont of the survey answer
string answersizeFont size of the survey answer
string logoalignAlign of the logo in the survey page
string introalignAlign of the introduction in the survey page

Returns
stringReturns the updated Survey Question.


Examples
download example code
xmlrpc_surveyColorUpdate.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. $surveyColorData['answerfont'] = 'yes';
  13. $surveyColorData['answersize'] = 'No';
  14. $SurveyID = $client->surveyQuestionCreate($token,$SurveyID,$surveyColorData);
  15. ?>