DOCUMENTATION

  • Developer
Search »

API

Download The API releases are all found on github.

Requirements

  1. Form Tools must be installed on your server
  2. The Form Tools API files should be placed in your [form tools root]/global/api/ folder
  3. It must be called within a PHP page on the same server as your Form Tools installation
  4. It requires the /global/api/API.class.php file to have been included in your page

How to use

In order to use the API methods you must include the api.php file in your web page and instantiate the API object. Note: the path to the API class file must must be edited for your server. It can be a relative or absolute path.

Important: you only ever need to instantiate the $api object once on your form page. Don't add multiple $api = new FormTools\API(); lines or things may not work as expected!