1. Go to this page and download the library: Download terminal42/webling-api library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
terminal42 / webling-api example snippets
$subdomain = 'meinverein';
$apiKey = 'foobar';
$apiVersion = '1';
$client = new Client($subdomain, $apiKey, $apiVersion);
// Example call for member list:
$client->get('member');
$em = EntityManager::createForAccount($subdomain, $apiKey);
$entityList = $em->findAll('member');
foreach ($entityList as $member) {
echo $member->getId();
echo $member->getProperty('Name');
var_dump($member->getProperties());
// etc.
}
$qb = new QueryBuilder();
$query = $qb->where('Firstname')->isEqualTo('Max')->andWhere('Lastname')->isEqualTo('Muster')->build();