Schnittstelle:

listPostbox

Die Funktion liefert ein indexiertes Array aller Nachrichten in der gewählten Postbox.

Request Beispiel

$UpdateParams = array(
    "APIData" => array(
        "_Security_Token_" => "vZHa8ChCkhjPG2l253zmgg80s6NdgkKRqiytY2Q4yN6vH5rMzVkVJMdswbmOlG5",
        "action" => 'listPostbox' //Name der Funktion
    ),
    "postbox" => array(
        "postbox_folder" => "inbox", //inbox oder trash
        "limit" => 500 // maximale Anzahl der Einträge (optional)
    ),
);

$url = 'https://www.bipro-box.de/app/core/api/json/v1.0'; //URL vom BiPRO-Box-Server
$tmp = execCurl( json_encode( $UpdateParams ), $url ); //Wandelt das Array $UpdateParams in ein json um und startet den Request

Response Beispiel

$data = json_decode( $tmp, true );
print_r( $data );

Array
(
    [function] => listPostbox
    [status] => success
    [error_code] => 0
    [counter] => 1
    [postbox] => Array
        (
            [0] => Array
                (
                    [postbox_id] => 691
                    [user_config_id] => 3
                    [postbox_folder] => inbox
                    [postbox_status] => 2
                    [postbox_date] => 2016-07-18 20:00:02
                    [postbox_fetchdate] => 2017-01-12 18:17:16
                    [postbox_from] => KS-AUXILIA
                    [postbox_to] => post@makler-bund.de
                    [postbox_subject] =>
                    [postbox_category] => Beitragsrechnung
                    [postbox_customer] => Andrea Schwarz
                    [postbox_vsn] => 3145141200
                    [postbox_typ] => RS
                    [postbox_file] => 3145141200_Rechnung_2016-07-18.pdf
                    [postbox_api_status] => 1
                )
)