pollResponseReport
public static array pollResponseReport(string token,string PollID)
Get the list of Polls using the filter and paging limits, order by the name or date of the polls.
- <?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);
- $PollLists = $client->pollReportList($token, "", "", 1, 100, "", "");
-
- foreach($PollLists as $rec) {
- echo $rec['responses'] . "] Number of Responses: " . $rec['responses'];
- echo "\t Question of the Poll:" . $rec['question'] . "(" . $rec['question'] . ")";
- echo "\t Status:" . $rec['status'] ;
- echo "\t Updated Date: " . $rec['modifiedDate'];
- echo "<br />";
- }
-
- ?>