pollReportList
public static array pollReportList(string token,string filter,string status,int pagenumber,int pagesize,string orderBy,string sortOrder)
Get the list of Polls using the filter and paging limits, order by the name or date of the polls.
Section
Poll Related Methods

Parameters

Returns


Examples
download example code
xmlrpc_pollReportList.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. $PollLists = $client->pollReportList($token, "", "", 1, 100, "", "");
  11.  
  12. foreach($PollLists as $rec) {
  13.     echo $rec['responses'] . "] Number of Responses: " . $rec['responses'];
  14.     echo "\t Question of the Poll:" . $rec['question'] . "(" . $rec['question'] . ")";
  15.     echo "\t Status:" . $rec['status'] ;
  16.     echo "\t Updated Date: " . $rec['modifiedDate'];
  17.     echo "<br />";
  18. }
  19.  
  20. ?>