<?php
require_once('vendor\autoload.php');
use \Aspose\Cells\Cloud\Api\CellsApi;
use \Aspose\Cells\Cloud\Request\PostWorksheetHyperlinkRequest;

$CellsCloudClientId = "...." ; # get from https://dashboard.aspose.cloud/#/applications
$CellsCloudClientSecret = "....";  # get from https://dashboard.aspose.cloud/#/applications
$cellsApi = new CellsApi($CellsCloudClientId , $CellsCloudClientSecret );

$remoteFolder = "TestData/In";

$localName = "Book1.xlsx";
$remoteName = "Book1.xlsx";

$hyperlink = new \Aspose\Cells\Cloud\Model\Hyperlink();
$hyperlink->setAddress("https://products.aspose.cloud/cells/" ); 

 
$request = new PostWorksheetHyperlinkRequest();
$request->setName( $remoteName);
$request->setSheetName( "Sheet1");
$request->setHyperlinkIndex( 0);
$request->setHyperlink( $hyperlink);
$request->setFolder( $remoteFolder);
$request->setStorageName( "");
$cellsApi->postWorksheetHyperlink($request);