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(); + } + +}