From df0a97dca58dce70213e8a38c45af25b21400521 Mon Sep 17 00:00:00 2001 From: mathias Date: Sun, 3 Oct 2021 23:09:42 +0200 Subject: [PATCH] Created the BasicAuthenticationExample --- .../java/BasicAuthenticationExample.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/examples/java/BasicAuthenticationExample.java diff --git a/src/examples/java/BasicAuthenticationExample.java b/src/examples/java/BasicAuthenticationExample.java new file mode 100644 index 0000000..8cc1ee9 --- /dev/null +++ b/src/examples/java/BasicAuthenticationExample.java @@ -0,0 +1,20 @@ +import de.gnmyt.autoresponder.SimpleAutoResponder; +import de.gnmyt.autoresponder.exceptions.ResponderException; + +public class BasicAuthenticationExample { + + public static void main(String[] args) throws ResponderException { + + // Create an instance of the SimpleAutoResponder + SimpleAutoResponder autoResponder = new SimpleAutoResponder(); + + // Set your username & password + autoResponder.useAuthentication("username", "password"); + + // Important: Don't forget to set the "Basic Auth" inputs in the AutoResponder app + + // Start the auto responder + autoResponder.start(); + } + +}