Example of an API call
As ChurchTools does the whole communication via AJAX, every function can be call via the API as well.
The calls always have to be sent via POST and need to contain the function name as parameter "func", e.g. func=getBookings (to get all booking) or func=getMasterData to get all needed masterdata.
Per module there are different functions. You can look them up unter system/modulename/classes/CTModulename.class.php or at api.churchtools.de .
Further examples for API calls:
needs these parameters in the POST body:
REQUEST ALL PERSONS
We have created two example projects for you, which also handle login and cookie handling: