SaasposeApp::$AppSID = "77***************************";
SaasposeApp::$AppKey = "9a******************************";
SaasposeApp::$OutPutLocation = getcwd() . "\\Output\\";
$strURI = 'http:
$signedURI = Utils::Sign($strURI);
$responseStream = Utils::processCommand($signedURI, "POST", "", "");
$json = json_decode($responseStream);
foreach ($json->Result->Documents as $splitSheet) {
$splitFileName = $splitSheet->link->Href;
$strURI = 'http:
$signedURI = Utils::Sign($strURI);
$responseStream = Utils::processCommand($signedURI, "GET", "", "");
$outputFile = SaasposeApp::$OutPutLocation . $splitFileName;
Utils::saveFile($responseStream, $outputFile);
}