Adobe io campaign API integration with aem
Hi,
I am trying to create campaign event through my AEM java code but not able to do so. In the process of creating a bearer or access token I have written below logic but it seems to be failing and giving 500 internal server error.
Below is the code snippet:-

While I am able to create Bearer token using postman but not programmatically.
Any help would be much appreciated.

