Hi @Onlypfachi
There is no n8n SDK for Java, so I’m afraid this wouldn’t be possible using only n8n. You can however use a Java application as described in this post here:
Dear
do you have java app example calling n8n workflows via webhooks ?
No, but it’s a simple http request send to n8n’s webhook URL. So something like this should do:
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://yourn8nurl/webhook/foo"))
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
You co…
You could use @BramKn ’s community PGP node to take care of files, though: n8n-nodes-pgp - npm
2 Likes