PHP Genkgo v2 API Connector
Usage
Add genkgo/api
and implementations of psr/http-client
and psr/http-factory
to your dependencies and install them.
You can have a look at one of the examples or see the docs. The examples rely on
Guzzle and Guzzle PSR-7 for the http implementations.
<?php
require_once '../vendor/autoload.php';
use Genkgo\Api\Connection;
use GuzzleHttp\Client;
use GuzzleHttp\Psr7\HttpFactory;
$config = require_once 'config.php';
$connection = new Connection(new Client(), new HttpFactory(), $config['url'], $config['token']);
$folder = $connection->command('organization', 'find', [
'name' => 'Aanmeldingen'
]);