PHP code example of antonioleutsch / stirling-pdf-sdk
1. Go to this page and download the library: Download antonioleutsch/stirling-pdf-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/ */
antonioleutsch / stirling-pdf-sdk example snippets
apiInstance = new OpenAPI\Client\Api\AnalysisApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$file_input = '/path/to/file.txt'; // \SplFileObject
$file_id = 'file_id_example'; // string | File ID for server-side files (can be used instead of fileInput)
try {
$result = $apiInstance->getAnnotationInfo($file_input, $file_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AnalysisApi->getAnnotationInfo: ', $e->getMessage(), PHP_EOL;
}