1. Go to this page and download the library: Download preprio/php-rest-sdk 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/ */
preprio / php-rest-sdk example snippets
use Preprio\PhpRestSdk\Prepr;
$apiRequest = new Prepr('{ACCESS_TOKEN}');
$apiRequest
->path('content_items')
->query([
'fields' => 'items'
])
->get();
if($apiRequest->getStatusCode() == 200) {
print_r($apiRequest->getResponse());
}