PHP code example of retrochaos / trustpilot-business-unit-api
1. Go to this page and download the library: Download retrochaos/trustpilot-business-unit-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/ */
retrochaos / trustpilot-business-unit-api example snippets
$client = new Trustpilot\Api\BusinessUnit\Client($apiKey);
// $client->find($domain): array
// $client->get($businessUnitId): array
// $client->getReviews($businessUnitId): array
// $client->getReviews($businessUnitId, ['perPage' => 5, 'page' => 2]): array