pollGetList
public static array pollGetList(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
string tokenA valid token for your account. To generate a token, use the login method.
string filterThe filter you want to apply when fetching the poll
string statusThe status of the poll
int pageNumberThe page number from which you want the list.
int pageSizeThe number of results per page
string orderByThe field you want to order by (list / date)
string sortOrderThe status of the poll

Returns
arrayReturns an array with the results.


Examples
download example code
xmlrpc_pollGetList.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->pollGetList($token, "", "", 1, 100, "", "");
  11.  
  12. foreach($PollLists as $rec) {
  13.     echo $rec['sequence'] . "] Poll Name: " . $rec['name'] . "(" . $rec['id'] . ")";
  14.     echo "\t Question of the Poll:" . $rec['question'] . "(" . $rec['question'] . ")";
  15.     echo "\t Poll Live Date:" . $rec['livedate'] ;
  16.     echo "\t No of Questions:" . $rec['questions'] ;
  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. ?>