onlime / bexio-api-client Goto Github PK
View Code? Open in Web Editor NEWbexio API Library for PHP
License: MIT License
bexio API Library for PHP
License: MIT License
Sorry for disturbing with perhaps a very silly question, but i can't see actually my error:
I try to search for invoices with this code:
<?php
require_once '../vendor/autoload.php';
require_once 'bexio-api.php';
use Bexio\Client;
use Bexio\Resource\Invoice;
$client = new Client($clientId, $clientSecret);
$client->loadTokens($tokensFile);
$bexioInvoice = new Invoice($client);
//$invoices = $bexioInvoice->getInvoices();
$params = array(
"field" => "kb_item_status_id",
"value" => "8",
"criteria" => "="
);
$invoices = $bexioInvoice->searchInvoices($params);
echo "<pre>";
print_r($invoices);
echo "</pre>";
But i always get this error:
Fatal error: Uncaught Bexio\Exception\BexioClientException: The following search parameters could not have been applied: ["field not set","field not set","field not set"] in /workspaces/bexio-stripe-pos-backend/www/vendor/onlime/bexio-api-client/src/Bexio/Client.php on line 63 Bexio\Exception\BexioClientException: The following search parameters could not have been applied: ["field not set","field not set","field not set"] in /workspaces/bexio-stripe-pos-backend/www/vendor/onlime/bexio-api-client/src/Bexio/Client.php on line 63 Call Stack: 0.0003 474576 1. {main}() /workspaces/bexio-stripe-pos-backend/www/bexio-v2/invoices.php:0 0.0011 575328 2. Bexio\Resource\Invoice->searchInvoices($params = ['field' => 'kb_item_status_id', 'value' => '8', 'criteria' => '='], $queryParams = ???) /workspaces/bexio-stripe-pos-backend/www/bexio-v2/invoices.php:23 0.0011 575328 3. Bexio\Client->post($path = 'kb_invoice/search', $data = ['field' => 'kb_item_status_id', 'value' => '8', 'criteria' => '='], $queryParams = []) /workspaces/bexio-stripe-pos-backend/www/vendor/onlime/bexio-api-client/src/Bexio/Resource/Invoice.php:22 0.0011 575328 4. Bexio\Client->request($path = 'kb_invoice/search', $method = 'POST', $data = ['field' => 'kb_item_status_id', 'value' => '8', 'criteria' => '='], $queryParams = []) /workspaces/bexio-stripe-pos-backend/www/vendor/onlime/bexio-api-client/src/Bexio/Client.php:18
It would be great to get a small hint - Thank you very much.
Regards André
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.