CloudboxListSinglePush

Haal status op van betreffende push request.

Input

Parameter Value Example value
push_id ID of push request.
Parameter is verplicht
5


Output

Parameter Value Example value
success command executed successfully 0 = fout
1 = command executed successfully
command_response_message Error
Only sent when value parameter success = 0
incorrect password
id ID of push request.
Only sent when value parameter success = 1
5
from_client Client id of initiator.
Only sent when value parameter success = 1
10
to_client Client id for request.
Only sent when value parameter success = 1
11
status Status of push request.
"pending", "approved", "refused" en "cancelled" are possible values. total_count
Only sent when value parameter success = 1
11


Example

<? require("class_versio_api.php"); unset($command); $command = array( "command" => "CloudboxListSinglePush", "push_id" => "5" ); $api = new Versio_api(); $versio = $api->api_send( $command ); IF($versio['success']==0) { echo("Error occured. Error code: ".$versio['command_response_code'].". Error message: ".$versio['command_response_message'].""); } else { ?> <table> <tr> <td><? echo $versio['id']; ?></td> <td><? echo $versio['from_client']; ?></td> <td><? echo $versio['to_client']; ?></td> <td><? echo $versio['status']; ?></td> </tr> </table> <?php } ?>