Der ZIP-Upload übermittelt nur den Inhalt der ZIP-Datei. Als Antwort erhalten Sie die Nummern, unter denen die entpackten PDF-Dokumente gespeichert wurden und einen Hinweis, falls Dokumente nicht gespeichert wurden.
$UpdateParams = array (
"dataUser" => array (
'token' => '****************',
),
"content" => array (
'pdf' => array (
'uploadZip' => array (
array (
'content' => base64_encode( file_get_contents( 'filename.zip' ) ),
),
),
),
)
);
{
"dataUser": {
"token": "****************"
},
"content": {
"pdf": {
"uploadZip": [{
"content": "UEsDBBQACAAIACtg... [gekürzt] ...AAAEAAQBKAAAAXHYAAAAADQotLQ=="
}]
}
}
}
array (
'response' =>
array (
'pdf' =>
array (
'uploadZip' =>
array (
0 =>
array (
'idFile' =>
array (
0 => '108',
1 => '109',
2 => '110',
3 => '111',
),
'message' =>
array (
0 => 'file Max_Muster__F000002_Mahnung_13408.pdf successfully registered',
1 => 'file Paul_Panzer__F000001_Mahnung_13409.pdf successfully registered',
2 => 'file Bernd_Beispiel__H43543435_Mahnung_13410.pdf successfully registered',
3 => 'file Alexander_Auchdabei__H45435CDF_Mahnung_13411.pdf successfully registered',
),
'error' =>
array (
0 => 'file index.xml omitted (pdf files only!)',
),
),
),
),
),
)