1. Go to this page and download the library: Download thisdata/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/ */
thisdata / api example snippets
use ThisData\Api\ThisData;
$apiKey = '<API_KEY>';
$thisData = ThisData::create($apiKey);
use ThisData\Api\Builder;
$builder = new Builder($apiKey);
// Configure the builder here. See below for more details.
// ...
// e.g. $builder->setAsync(false);
// $builder->setExpectJsCookie(true);
// ...
$thisData = $builder->build();
$client = new ThisData\Api\Client('<API_KEY>'); // An extension of the GuzzleHttp\Client class
$client->post('events', ['body' => '{"ip":"127.0.0.1"}']);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.