Get more than 15 clients from InvoiceNinja

This commit is contained in:
Skylar Ittner 2019-12-07 19:55:40 -07:00
parent 7528468505
commit 193b3d51f2
3 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ nbproject/private
*.sync-conflict*
.directory
*.bak
/test.php

Binary file not shown.

View File

@ -15,6 +15,7 @@ if (!empty($SETTINGS["apis"]["invoiceninja"]["token"])) {
try {
NinjaConfig::setURL($SETTINGS["apis"]["invoiceninja"]["url"]);
NinjaConfig::setToken($SETTINGS["apis"]["invoiceninja"]["token"]);
NinjaConfig::setPerPage(9999); // https://github.com/invoiceninja/sdk-php/issues/21
} catch (Exception $ex) {
if ($SETTINGS['debug']) {
echo $ex->getTraceAsString();