OfficeMath objects example not working

Below code is provided by the API doc. but this is the incomplete code. could any one please suggest for the complete code or documentation.

I am trying to read math equations from the doc file.

Blockquote
require_once(‘vendor/autoload.php’);
use Aspose\Words\WordsApi;
use Aspose\Words\Model\Requests{GetOfficeMathObjectsOnlineRequest};
$clientId = ‘4da77cs6ad62bdac9e’;
$secret = ‘eaed4218602s87662d66f46’;
$wordsApi = new WordsApi($clientId, $secret);
$requestDocument = “a.docx”;
$request = new GetOfficeMathObjectsOnlineRequest(
$requestDocument, NULL, NULL, NULL, NULL);
$wordsApi->getOfficeMathObjectsOnline($request);
Blockquote

Thanks for your query.
Can you share your input document for replication?