deleteSigner

Overview

Parameters:

  • String - signer token

Return:

  • Signer - success

  • Exception - failure

To delete this signer we need:

  • set your api token.

  • set your signer token.

  • call the method.

Usage:

Import the relevant components:

import signers.SignerRequest;

Set your Api Token:

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

Example:

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