(PHP Extension) IntakeQ: Download Intake Form PDF
Use this method to download a client’s complete intake package as a PDF file. For more information, see https://support.intakeq.com/article/31-intakeq-api#download-intake
<?php
// The version number (9_5_0) should match version of the Chilkat extension used, omitting the micro-version number.
// For example, if using Chilkat v9.5.0.48, then include as shown here:
include("chilkat_9_5_0.php");
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
$http = new CkHttp();
$http->SetRequestHeader('X-Auth-Key','xxxxxxxxxxxxxxxxxxxxxxxxx');
$success = $http->Download('https://intakeq.com/api/v1/intakes/[intake-id]/pdf','my_local_dir/intake_form_xxxx.pdf');
if ($success == false) {
print $http->lastErrorText() . "\n";
exit;
}
print 'Success.' . "\n";
?>
|