surveyReportList
public static array surveyReportList(string token,string filter,string status,int pagenumber,int pagesize,string orderBy,string sortOrder)
Get the report of Survey.
Section
Survey Related Methods

Parameters

Returns


Examples
download example code
xmlrpc_surveyReportList.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. $SurveyQuestionLists = $client->surveyGetQuestionList($token, "", "", 1, 100, "", "");
  11.  
  12. foreach($SurveyQuestionLists as $rec) {
  13.     echo" Responses: " . $rec['response'] . "(" . $rec['id'] . ")";
  14.     echo "\t Name of the survey:" . $rec['name'] ;
  15.     echo "\t Survey Active or not:" . $rec['active'] ;
  16.     echo "\t Text to be appear beneath the title of the survey:" . $rec['intro'] ;
  17.     echo "\t Status:" . $rec['status'] ;
  18.     echo "\t Created Date: " . $rec['createdDate'] ;
  19.     echo "\t Updated Date: " . $rec['modifiedDate'];
  20.     echo "<br />";
  21. }
  22.  
  23. ?>