Created the BasicAuthenticationExample
This commit is contained in:
parent
3d1dfd7a1f
commit
df0a97dca5
20
src/examples/java/BasicAuthenticationExample.java
Normal file
20
src/examples/java/BasicAuthenticationExample.java
Normal 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();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Reference in New Issue
Block a user