Skip to content

genkgo/api

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 

PHP Genkgo v2 API Connector

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