createDocFromUploadDocx
Create a document via Upload docx
Overview
Parameters:
DocFromDocx
Return:
DocResponse - in case of success
Exception - in case of failure
To create this document we will need:
set your apiToken;
build your signers;
build the document;
call the method.
How to use:
Salve seu Api Token:
const apiToken: string = "YOUR TOKEN";Build your signers with the Signer class:
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") // draw on screen
.withSendAutomaticEmail(false)
.withSendAutomaticWhatsapp(false)
.build();
let signers: Signer[] = [];
signers.push(signer1, signer2);Now, build your document with the DocFromDocx class:
Finally, call the createDocFromUploadDocx method to get the returned value of DocResponse class or an error message:
Example:
Last updated
Was this helpful?