surveyReportList
public static array surveyReportList(string token,string filter,string status,int pagenumber,int pagesize,string orderBy,string sortOrder)
Get the report of Survey.
- <?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);
- $SurveyQuestionLists = $client->surveyGetQuestionList($token, "", "", 1, 100, "", "");
-
- foreach($SurveyQuestionLists as $rec) {
- echo" Responses: " . $rec['response'] . "(" . $rec['id'] . ")";
- echo "\t Name of the survey:" . $rec['name'] ;
- echo "\t Survey Active or not:" . $rec['active'] ;
- echo "\t Text to be appear beneath the title of the survey:" . $rec['intro'] ;
- echo "\t Status:" . $rec['status'] ;
- echo "\t Created Date: " . $rec['createdDate'] ;
- echo "\t Updated Date: " . $rec['modifiedDate'];
- echo "<br />";
- }
-
- ?>