createDocFromUploadPdf
Criar documento via Upload pdf
Visão geral
Parâmetros:
Retorno:
DocResponse - caso sucesso
Exception - caso falha
Para criar esse documento precisamos:
definir seu token api;
definir os signatários;
definir o documento;
chamar o método.
Uso:
Salve seu Api Token:
const apiToken: string = "SEU TOKEN";Crie seus signatários com a classe Signer:
const signer1: Signer = new SignerBuilder()
.withName("My First Signer")
.build();
const signer2: Signer = new SignerBuilder()
.withName("My Second Signer")
.withEmail("[email protected]")
.withLockEmail(true)
.withLockPhone(true)
.withPhoneCountry("55")
.withPhoneNumber("99999999999")
.withAuthMode("assinaturaTela")
.withSendAutomaticEmail(false)
.withSendAutomaticWhatsapp(false)
.build();
let signers: Signer[] = [];
signers.push(signer1, signer2);Defina seu documento com a classe DocFromPdf:
Chame o método createDocFromUploadPdf e receba como resposta a classe DocResponse ou uma mensagem de erro:
Exemplo completo:
Last updated
Was this helpful?