PHP code example of digitalclaim / scale-api-php
1. Go to this page and download the library: Download digitalclaim/scale-api-php 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/ */
digitalclaim / scale-api-php example snippets
igitalClaim\Scale\Auth;
use DigitalClaim\Scale\Collection;
$auth = new Auth(
'CLIENT_URL',
'CLIENT_ID',
'CLIENT_SECRET',
'test'
);
$repository = new Collection('SOME_DOCUMENT_COLLECTION', $auth);
$data = $repository->paginate(1, [
'data' => [],
], 10);
print_r($data);