surveyGetColor
public static string surveyGetColor(string token,string SurveyID)
Provide all available survey Colors. Return the Survey Colors of a particular 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 existing Template

Returns
arrayThe array containing the survey color details.
string answerfontFont Family of the Answer
string answersizeFont size of the Answer
string buttonalignAlign of the Button
string buttontextText of the Button to displayed
string formbgBackground Color of the Survey Form
string formfgForeground Color of the Survey Form
string headerbgBackground Color of the Header
string headerfgForeground Color of the Header
string headerfontFont of the Survey Form Header
string headersizeSize of the Survey Header Font
string introalignAllign of the Introduction Message to displayed
string logoalignAlign of the Logo to displayed on Survey Form
string parafgForeground Color of the Paragraph


Examples
download example code
xmlrpc_surveyGetColor.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. $surveyList=$client->surveyGetList($token,"","1",1,10,"","");
  12. $SurveyID=$surveyList[0]['id'];
  13. $rec = $client->surveyGetColor($token,$);
  14. echo $rec['surveyid'] . "]: Survey ID, AnswerFont :" . $rec['answerfont'] . "
    Answersize".$rec['answersize'];
  15. echo " buttonalign:" . $rec['buttonalign'] . " ButtonText " . $rec['buttontext'] . " Form BackGround " . $rec['formbg'];
  16. echo "
    ";
  17. ?>