WeFact
This plugin allows for API integration with WeFact.
Installation
To install this module:
composer require qore/wefact
Usage
Getting started
After you enable this plugin in the interface, you will be required to fill in the API key
.
You can find this key here. Do note that you might also need to white list your IP address inside WeFact.
After saving, you should be ready to make API calls.
info
WeFact's API Documentation can be found here
API requests
You can start doing requests to WeFact by getting the WefactClient
:
use Qore\Wefact\Clients\WefactClient;
$client = new WefactClient();
$results = $client->request(WefactController::DEBTOR, WefactAction::LIST);
The first parameter is the so-called "controller", in this case we want the debtors. The second parameter is the "action", in this case we list all.