DomainsListPushes

List al incoming and outgoing push requests.

Input

None

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
total_count Total amount push requests.
Only sent when value parameter success = 1
20
id_X push ID.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
32338
domain_X domain ID.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
25
from_client_X From client ID.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
1
to_client_X To client ID.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
2
status_X Current status of push request.
"pending", "approved", "refused" and "cancelled" are possible values.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
pending


Voorbeeld

<? require("class_versio_api.php"); unset($command); $command = array( "command" => "DomainsListPushes" ); $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 { IF($versio['total_count']>0) { ?> <table> <? $teller = 1; while($versio['total_count']>=$teller) { ?> <tr> <td><? echo $versio['id_'.$teller]; ?></td> <td><? echo $versio['domain_'.$teller]; ?></td> <td><? echo $versio['from_client_'.$teller]; ?></td> <td><? echo $versio['to_client_'.$teller]; ?></td> <td><? echo $versio['to_client_'.$teller]; ?></td> <td><? echo $versio['status_'.$teller]; ?></td> </tr> <? $teller++; } ?> </table> <? } else { echo("No requests found."); } } ?>