Exposé

The expose call on the API returns the pdf file. The first passed parameter is the primary key of the realty. The second parameter is the expose type. 404 will be returned if the expose/realty cannot be found. A list of expose types is available here.

<?php

header('Content-type: application/pdf');
echo $api->callExpose(12345, 'DefaultNewWebsite');