API Commands
[All Commands]

Command: POLL_Get



command POLL_Get

Get current poll message

Input Parameters ($data):

string ssid Token from Login

Output Responses:

string status ok | error
array data Details about your request
 
int count Number of POLL messages
datetime date Date of POLL message
int id ID of POLL message
int orderid ID for order
string orderstatus Order status
string message Message from order
int errorcode Errorcode for Failed orders

Sample:


<?php
$client 
= new SoapClient(
        
null
        array(
            
"location" => "https://PRODUCTION/soap/cmd.php",
            
"uri" => "http://PRODUCTION/soap"
            
)
        );

$params = array ( 
    
"data" => array (
        
"login" => "demo",
        
"password" => "password",
    )
);

$response $client->__call("Login",$params);

$token $response["data"]["ssid"];

unset(
$params);

$params = array ( 
    
"data" => array (
    
"ssid" => $token,
    )
);

$response $client->__call("POLL_Get",$params);

?>
INPUT: [data] => Array ( [ssid] => 29ae201e12b466c7347a29 ) OUTPUT: [status] => ok [data] => Array ( [count] => 109068 [date] => 2011-01-19 06:51:37 [id] => 3 [orderid] => 3 [orderstatus] => Completed [message] => [errorcode] => 0 )

API Manual - version from 2023-05-12 12:15:50