mirror of
https://github.com/cubixle/trustpilot-api-wrapper.git
synced 2026-04-30 18:28:40 +01:00
added quick example.
This commit is contained in:
@@ -2,3 +2,13 @@
|
|||||||
Simple wrapper for the trustpilot api.
|
Simple wrapper for the trustpilot api.
|
||||||
|
|
||||||
Currently only supports the api to retreive a companies reviews.
|
Currently only supports the api to retreive a companies reviews.
|
||||||
|
|
||||||
|
```php
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$dir = dirname(__DIR__);
|
||||||
|
include $dir . '/vendor/autoload.php';
|
||||||
|
|
||||||
|
$trustPilot = new \LukeRodham\TrustPilot\TrustPilot($apikey = '');
|
||||||
|
$reviews = $trustPilot->reviews()->latest(['language' => 'en']);
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user