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.
| Parameters |
| string token | A valid token for your account. To generate a token, use the login method. |
| string SurveyID | ID of the survey for which you want to create questions |
| array surveyColorData | The array containing the survey Color details.
| string questionfg | Foreground color of your survey question which we want for survey Question. | | string formbg | Background color of your suvey's form. | | string formfg | Foreground color of your survey's form. | | string headerbg | Background for your survey header | | string headerfg | Foreground color for your survey header | | string parafg | Foreground color of your survey question paragraph | | string headerfont | Header font for the survey question | | string headersize | Header size for the survey question | | string parafont | Font for the survey question paragraph | | string parasize | Fontsize of the survey question paragraph | | string questionfont | Font of the survey question | | string questionsize | Font size of the survey question | | string answerfont | Font of the survey answer | | string answersize | Font size of the survey answer | | string logoalign | Align of the logo in the survey page | | string introalign | Align of the introduction in the survey page |
|
| Returns |
| string | Returns the updated Survey Question. |
- <?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);
-
- $SurveyID='473';
- $surveyColorData['answerfont'] = 'yes';
- $surveyColorData['answersize'] = 'No';
- $SurveyID = $client->surveyQuestionCreate($token,$SurveyID,$surveyColorData);
- ?>