The only way to access the events service data store is using the analytics api. If you do not want to use curl you can convert your request to a java code and use it. But at the end it will be using the events api itself. For example something like below as a sample:
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/vnd.appd.events+text;v=2");
RequestBody body = RequestBody.create(mediaType, "<ADQL query goes here>");
Request request = new Request.Builder()
.url("https://analytics.api.appdynamics.com/events/query?mode=page&size=1000&offset=100")
.post(body)
.addHeader("content-type", "application/vnd.appd.events+text;v=2")
.addHeader("x-events-api-accountname", "Global Account Name")
.addHeader("x-events-api-key", "api key")
.addHeader("cache-control", "no-cache")
.addHeader("postman-token", "98fdc32c-bd67-fec7-6f5d-d87b619771c5")
.build();
Response response = client.newCall(request).execute();
... View more