detailSigner

Detail the signer

Overview

Parameters:

  • String - signer token

Retorno:

  • Signer - In case of success

  • Exception - In case of failure

To get the signer we will need:

  • set your apiToken;

  • set the 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 detailSigner method to get the Signer or an error message:

async function exempleDetailSigner() {
    try {
           const signerRequest: SignerRequest = await new SignerRequest(apiToken).detailSigner(signerToken);
           const jsonDocResponse: string = new JsonConverter().signerToJson(docResponse);
           console.log(jsonDocResponse);
         } catch(Err) {
           console.log(Err);
     }
   }
}

Example:

import SignerRequest from "sdk-node-typescript-zapsign/src/signer/SignerRequest";
import { JsonConverter } from "sdk-node-typescript-zapsign/src/services/JsonConverter";

const apiToken: string = "YOUR TOKEN";

const signerToken: string = "SIGNER TOKEN";

async function exempleDetailSigner() {
    try {
           const signerRequest: SignerRequest = await new SignerRequest(apiToken).detailSigner(signerToken);
           const jsonDocResponse: string = new JsonConverter().signerToJson(docResponse);
           console.log(jsonDocResponse);
         } catch(Err) {
           console.log(Err);
     }
   }
}

Last updated