Der Upload ermöglicht es Ihnen neben der Speicherung von PDF-Dokumenten die Verarbeitung direkt durchzuführen und das Ergebnis entgegenzunehmen.
$UpdateParams = array (
"dataUser" => array (
'token' => '****************',
),
"content" => array (
'pdf' => array (
'upload' => array (
array (
'content' => base64_encode( file_get_contents( $pdf ) ),
'name' => $pdf,
'category' => 'PDF_GES',
'processFile' => 1,
'returnData' => 1,
'returnText' => 1,
'deleteImmediately' => 1,
'userInfo' => array (
'Nutzerkennung' => '0815-001000145',
),
'setData' => array (
'url' => 'bavariadirekt.de',
'policyNumber' => 'V 00 000 000/000',
'title' => 'Versicherungsschein',
),
'excludedAddresses' => [
[
'vorname' => 'Fred',
'name' => 'Vermittler',
'firma' => '',
'strasse' => 'Zitronenstraße 10',
'plz' => '33699',
'ort' => 'Bielfeld',
],
[
'vorname' => 'Erwin',
'name' => 'Endabrechner',
'firma' => 'Finanzkanzlei Erwin & Söhne',
'strasse' => 'Kakteenweg 28a',
'plz' => '33699',
'ort' => 'Bielfeld',
],
],
),
),
),
)
);
{
"dataUser": {
"token": "****************"
},
"content": {
"pdf": {
"upload": [{
"content": "JVBERi0xLjIgDSXi48\\/TDQ... [gekürzt] ...ydHhyZWYNMzQ4NQ0lJUVPRg0=",
"name": "Platzhalter.pdf",
"category": "PDF_GES",
"processFile": 1,
"returnData": 1,
"returnText": 1,
"deleteImmediately": 1,
"userInfo": {
"Nutzerkennung": "0815-001000145"
},
"setData": {
"url": "bavariadirekt.de",
"policyNumber": "V 00 000 000\\/000",
"title": "Versicherungsschein"
},
"excludedAddresses": [{
"vorname": "Fred",
"name": "Vermittler",
"firma": "",
"strasse": "Zitronenstra\\u00dfe 10",
"plz": "33699",
"ort": "Bielfeld"
}, {
"vorname": "Erwin",
"name": "Endabrechner",
"firma": "Finanzkanzlei Erwin & S\\u00f6hne",
"strasse": "Kakteenweg 28a",
"plz": "33699",
"ort": "Bielfeld"
}]
}]
}
}
}
array (
'response' =>
array (
'pdf' =>
array (
'upload' =>
array (
0 =>
array (
'idFile' => '42',
'message' =>
array (
0 => 'file successfully registered',
1 => 'file successfully processed',
2 => 'data successfully transmitted',
3 => 'file successfully deleted',
),
'savedRemote' =>
array (
'policyNumberSaved' => 1,
'metaDataSaved' => 1,
),
'data' =>
array (
'id' => '41',
'path' => '../data/1/store/000/000/041.pdf',
'user' => '1',
'trashFlag' => '0',
'trashTimestamp' => NULL,
'corruptedFlag' => '0',
'corruptedTimestamp' => NULL,
'ocr' => 'success',
'icr' => 'success',
'context' => NULL,
'date' => '2016-11-18',
'listDates' => NULL,
'url' => 'bavariadirekt.de',
'urlManually' => '0',
'listCompanies' =>
array (
0 =>
array (
'url' => 'bavariadirekt.de',
'found' => true,
),
1 =>
array (
'url' => 'ovag-online.de',
'found' => false,
),
),
1 =>
array (
'url' => 'ovag-online.de',
'found' => false,
),
),
'firstName' => 'Tom',
'lastName' => 'Tester',
'companyName' => '',
'street' => 'Muster-Str. 68e',
'town' => 'München',
'zipCode' => '81539',
'policyNumber' => 'V 00 000 000/000',
'damageNumber' => NULL,
'paymentValue' => NULL,
'paymentFrequency' => NULL,
'noClaimsBonusClass' => NULL,
'IBAN' => NULL,
'licensePlateNumber' => NULL,
'title' => 'Versicherungsschein',
'titlePossible' => NULL,
'subtitle' => '',
'subtitlePossible' => NULL,
'vuNr' => NULL,
'vuNrPossible' => NULL,
'status' => '3',
'priority' => '2',
'rate' => '100',
'sizeRatio' => '100',
'wordRatio' => '100',
'fileName' => '437279_1480968779.pdf',
'category' => 'PDF_GES',
'marker' => '2347bc01f3992964db3db264... [gekürzt] ...f4d560943cec691527cb-7368',
'usedMaster' => '2347bc01f3992964db3db264... [gekürzt] ...f4d560943cec691527cb-7368',
'idOCR' => NULL,
'idContract' => NULL,
'text' => ' [Text-Inhalt entfernt] ',
'meta' => ' --- JSON-Daten entfernt --- ',
'statusInfo' => ' --- JSON-Daten entfernt --- ',
'timestamp' => '1482141749',
'idFilter' => 71,
'policyNumberRaw' => 'V 00 000 000/000',
'insuranceCompany' => 'BavariaDirekt',
'fileNameRaw' => 'Mller_Jens__1716792001001_Beitragsrechnung_1168525.pdf',
'actionIds' => NULL,
),
),
),
),
),
)