PHP code example of vineyardkoeln / churchtools-api

1. Go to this page and download the library: Download vineyardkoeln/churchtools-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/ */

    

vineyardkoeln / churchtools-api example snippets




$result = \ChurchTools\Api\RestApi::getLoginToken($churchHandle, $usernameOrEmail, $pass);
var_dump($result);

$events = $api->getCalendarEvents([1,2,…]);

foreach ($events['data'] as $event) {
    // …
}

var_dump($api->getCalendarMasterData());

var_dump($api->getServiceMasterData());