PHP code example of crasp / trustpilot
1. Go to this page and download the library: Download crasp/trustpilot 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/ */
crasp / trustpilot example snippets
try {
$result = $trustpilot->search(1, 1, [
'begin_time' => '2022-10-17 17:53:00',
'end_time' => '2022-10-27 17:53:00',
]);
print_r($result);
} catch (\Exception $exception) {
return $exception->getMessage();
}