surveyGetColor
public static string surveyGetColor(string token,string SurveyID)
Provide all available survey Colors. Return the Survey Colors of a particular Survey.
| Parameters |
| string token | A valid token for your account. To generate a token, use the login method. |
| string SurveyID | ID of the existing Template |
| Returns |
| array | The array containing the survey color details.
| string answerfont | Font Family of the Answer | | string answersize | Font size of the Answer | | string buttonalign | Align of the Button | | string buttontext | Text of the Button to displayed | | string formbg | Background Color of the Survey Form | | string formfg | Foreground Color of the Survey Form | | string headerbg | Background Color of the Header | | string headerfg | Foreground Color of the Header | | string headerfont | Font of the Survey Form Header | | string headersize | Size of the Survey Header Font | | string introalign | Allign of the Introduction Message to displayed | | string logoalign | Align of the Logo to displayed on Survey Form | | string parafg | Foreground Color of the Paragraph |
|
- <?php
- /**
- This Example shows how to authenticate a user using XML-RPC.
- Note that we are using the PEAR XML-RPC client and recommend others do as well.
- **/
- require_once 'XML/RPC2/Client.php';
- require_once 'inc/config.php';
- $client = XML_RPC2_Client::create($apiURL);
- $token = $client->login($apiLogin, $apiPassword);
-
- $surveyList=$client->surveyGetList($token,"","1",1,10,"","");
- $SurveyID=$surveyList[0]['id'];
- $rec = $client->surveyGetColor($token,$);
- echo $rec['surveyid'] . "]: Survey ID, AnswerFont :" . $rec['answerfont'] . "
Answersize".$rec['answersize'];
- echo " buttonalign:" . $rec['buttonalign'] . " ButtonText " . $rec['buttontext'] . " Form BackGround " . $rec['formbg'];
- echo "
";
- ?>