mirror of
https://github.com/cubixle/trustpilot-api-wrapper.git
synced 2026-04-24 23:44:47 +01:00
added quick example.
This commit is contained in:
10
README.md
10
README.md
@@ -2,3 +2,13 @@
|
||||
Simple wrapper for the trustpilot api.
|
||||
|
||||
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