PHP Integration

PHP can easily be used to make RESTful API requests using the cURL library, which is installed by default in most PHP setups.

Download the PHP Wrapper

These examples were created using PHP v5.4.

Endpoint Examples

After downloading and extracting the wrapper from the ZIP file, you will find a variety of different examples inside the examples.php file.

Examples included in the wrapper download:

What Next?

This example code can be customised to access any API endpoint:

  • Locate the API endpoint you require using the API explorer
  • Create an instance of ApiConnection using your API ID, API Key and Endpoint
  • Change the Endpoint URL used to request the API
  • Change the array of values passed through each GET/POST function to match the API documentation