Salesforce Apex to Aspose WORD CLOUD API call

Hello, I’m using the below mentioned Aspose mail merge API from Apex:
https://reference.aspose.cloud/words/#/op/ExecuteMailMerge
Sample Request:
Endpoint: https://api.aspose.cloud/v4.0/words/sample.docx/mailmerge?withregions=true&filename=sampleoutput.docx
Method: PUT
Header: Content-Type: application/json, Authorization: Bearer token
Body(JSON Data): { “data”: “some data”}

You can see that im using Bearer token for authentication to use the mail merge REST API.

Given that the Bearer token will expire after some time, i don’t want this approach in Production like environments.

So, I want to make an API call from Apex using the clientId & clientSecret.

Please let me know if there is an approach to make use of the Aspose mail merge REST API using clientId & ClientSecret.(Or if anything like no expiration Bearer token can be used).

This topic has been moved to the related forum: https://forum.aspose.cloud/t/salesforce-apex-to-aspose-word-cloud-api-call/22412