deleteSigner

delete signer

Overview

Parameters:

  • String - document token

Return:

  • String - In case of success

  • Exception - In case of failure

To remove a signer we will need:

  • set your apiToken;

  • set your signer token;

  • call the method;

How to use:

Save your apiToken:

const apiToken: string = "YOUR TOKEN";

Set the signer token:

const signerToken: string = "SIGNER TOKEN";

Finally, call the deleteSigner method to get an string with:

"Signatário removido com sucesso." (Signer removed successfully)

or an error message:

async function exempleDeleteSigner() {
    try {
        response: string = new SignerRequest(apiToken).deleteSigner(signerToken);
        console.log(response);
    }
    catch(Err) {
        console.log(Err);
    }  
}

Complete example:

import SignerRequest from "sdk-node-typescript-zapsign/src/signer/SignerRequest";

const apiToken: string = "YOUR TOKEN";
const signerToken: string = "SIGNER TOKEN";

async function exempleDeleteSigner() {
    try {
        response: string = new SignerRequest(apiToken).deleteSigner(signerToken);
        console.log(response);
    }
    catch(Err) {
        console.log(Err);
    }  
}

Last updated