Hi Team,
below is the link which documents how to programmatically access AEM as a Cloud Service using service-to-service access token! using node js. and they have provided link of sample code for other languages at the end of the doc which is not working.
How to programmatically access AEM as a Cloud Service using service-to-service access token! using java ?
https://experienceleague.adobe.com/docs/experience-manager-learn/getting-started-with-aem-headless/a...
Thank you,
Sriram