/php-api-samples

Samples of the Datatrics PHP API

Primary LanguagePHP

Datatrics

Datatrics PHP API samples

This package is a sample library to communicate with the Datatrics REST-API.

Installation

For the installation of the samples you need to run composer.

composer install -o

Usage

Copy the contents of config.php.dist to config.php and fill the apiKey and projectId variables.

<?php
$apiKey = '[api-key]';
$projectId = '[project-id]';

Explanation

[api-key] The API key you've received or created

[project-id] id of the project

Contributing

We love contributions, but please note that the API client is generated. If you have suggested changes, you may still create a PR, but your PR will not be merged. We will however adapt the generator to reflect your changes. You can also create a GitHub issue if there's something you miss.