-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add gzip compression feature to manageInvoice operation
By default it's disabled, see examples/manageInvoice_compressed.php and the following capture in the NAV documentation: 1.6.5 Tömörítés és méretkorlát
- Loading branch information
Showing
4 changed files
with
45 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
include("config.php"); | ||
|
||
|
||
try { | ||
$config = new NavOnlineInvoice\Config($apiUrl, $userData, $softwareData); | ||
$reporter = new NavOnlineInvoice\Reporter($config); | ||
|
||
$compression = true; | ||
$invoices = new NavOnlineInvoice\InvoiceOperations($compression); | ||
|
||
// Maximum 100db számla küldhető be egyszerre | ||
$invoices->add(simplexml_load_file(TEST_DATA_DIR . "invoice1.xml")); | ||
// $invoices->add(simplexml_load_file(TEST_DATA_DIR . "invoice2.xml")); | ||
|
||
// Számlák beküldése: | ||
$transactionId = $reporter->manageInvoice($invoices); | ||
|
||
print "Tranzakciós azonosító a státusz lekérdezéshez: " . $transactionId; | ||
|
||
} catch(Exception $ex) { | ||
print get_class($ex) . ": " . $ex->getMessage(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters