Created the BasicAuthenticationExample

This commit is contained in:
mathias 2021-10-03 23:09:42 +02:00
parent 3d1dfd7a1f
commit df0a97dca5
No known key found for this signature in database
GPG Key ID: 8950DF62139C852A

View File

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