1. Go to this page and download the library: Download cronixweb/streamline-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/ */
$amenities = $streamline
->properties()
->amenities(12345)
->all();
// Or via a dedicated client:
// $amenities = $streamline->amenities()->getPropertyAmenities(12345);
$images = $streamline
->properties()
->galleryImages(12345)
->all();
// Or via a dedicated client:
// $images = $streamline->galleryImages()->getPropertyGalleryImages(12345);
use Cronixweb\Streamline\Utils\ReviewsClient; // for type hints, if desired
// Scoped to a unit via properties client
$reviews = $streamline->properties()->reviews(12345)->all();
// Or using the method with filters
$reviews = $streamline->reviews()->getGuestReviews(
housekeeperId: null, // e.g. 789
unitId: 12345,
returnAll: true
);
$blocked = $streamline->bookedDates()->getBlockedDaysForUnit(
unitId: 12345,
startdate: '01/01/2025', // optional
enddate: '01/31/2025', // optional
displayB2BBlocks: true, // optional
allowInvalid: false, // optional
owningId: null // optional, single unit only
);