ResellerListPushes

Haal alle inkomende en uitgaande reseller push requests op.

Input

Geen

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
reseller_X Reseller username.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
adjw34
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 Push request status.
"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


Example

11111 <? require("class_versio_api.php"); unset($command); $command = array( "command" => "ResellerListPushes" ); $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['reseller_'.$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 reseller push requests found."); } } ?>