import signers.SignerRequest;
String apiToken = "YOUR TOKEN";
Set your signer token.
String signerToken = "SIGNER TOKEN";
Call the method deleteSigner and receive as a response a string containing "Signatário removido com sucesso." or an error message:
try {
Signer signerResponse = new SignerRequest(apiToken).updateSigner(signerToken, signer);
String jsonDocResponse = new JsonConverter().signerToJson(signerResponse);
System.out.println(jsonDocResponse);
}
catch(Exception exceptionError) {
System.out.println(exceptionError.getMessage());
}
import signers.SignerRequest;
public class DeleteSigner {
public static void main(String[] args) throws Exception {
String apiToken = "YOUR TOKEN";
String signerToken = "SIGNER TOKEN";
try {
String response = new SignerRequest(apiToken).deleteSigner(signerToken);
System.out.println(response);
}
catch(Exception exceptionError) {
System.out.println(exceptionError.getMessage());
}
}
}