genkgo/api

Genkgo API Connector

2.1.1 2023-09-08 13:14 UTC

This package is auto-updated.

Last update: 2024-04-08 14:51:34 UTC


README

Build Status

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'
]);

Info