pollStatusUpdate
public static integer pollStatusUpdate(string token,string PollID,string Status)
Update Poll Status based on the details provided. Returns 1 if the poll is updated else 0.
| Parameters |
| string token | A valid token for your account. To generate a token, use the login method. |
| string PollID | ID of the poll for which you want to update status |
| string status | Status for the Poll |
| Returns |
| integer | Returns 1 if the poll is updated else 0. |
- <?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);
-
- $PollID='474';
- $Status = '1';
- $Flag = $client->pollStatusUpdate($token,$PollID,$Status);
- ?>