Dear Aspose team,
the class “PostPresentationMergeRequest” is not found when running the PHP code below.
<?php
require_once '../vendor/autoload.php';
// For complete examples and data files, please go to https://github.com/aspose-Slides-cloud/aspose-Slides-cloud-php
use Aspose\Slides\Cloud\Sdk\Api\SlidesApi;
use Aspose\Slides\Cloud\Sdk\Api\Configuration;
use Aspose\Slides\Cloud\Sdk\Model;
use Aspose\Slides\Cloud\Sdk\Model\Requests;
// $tmp = __DIR__;
try {
// Create SlidesApi instance
$config = new Configuration();
$config->setAppSid("XXXXXX");
$config->setAppKey("XXXXXX");
$slidesApi = new SlidesApi(null, $config);
$fileName = "Agenda-1.pptx";
$fileName2 = "Agenda-74513.pptx";
$inputFolder = realpath(__DIR__ ) . '\\';
// Upload original documents to storage
$fileStream = fopen($inputFolder . $fileName, 'r');
$slidesApi->uploadFile($fileName, $fileStream, "SlideStorage");
$fileStream2 = fopen($inputFolder . $fileName2, 'r');
$slidesApi->uploadFile($fileName2, $fileStream2, "SlideStorage");
$mergeList = new Model\PresentationsMergeRequest();
$mergeList->setPresentationPaths(array($fileName, $fileName2));
$request = new Requests\PostPresentationMergeRequest($fileName, $mergeList);
$result = $slidesApi->postPresentationMerge($request);
print_r($result);
} catch (Exception $e) {
echo "Something went wrong: ", $e->getMessage(), "\n";
}
?>