This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

autentique-v2-nodejs

1.0.13 • Public • Published

AUTENTIQUE Api v2

🚀 Usage

npm i autentique-v2-nodejs

Set file .env

AUTENTIQUE_URL=https://api.autentique.com.br/v2
AUTENTIQUE_TOKEN=YOURTOKEN
AUTENTIQUE_DEV_MODE=true || false
# IF TRUE, DOCUMENT CREATE IN MODE SANDBOX

Import library import autentique from from 'thiagozampieri\autentique-v2-nodejs

Instance

autentique.token = AUTENTIQUE_TOKEN

1 - Listar todos os Documentos

autentique.document.listAll(page); // if not isset page is equal 1

2 - Listar um Documento

autentique.document.listById(documentId);

3 - Criar um Documento

attributes = {
    document: {
        name: 'NOME DO DOCUMENTO'
    },
    signers: [
        {
            email: 'EMAIL-QUEM-VAI-ASSINAR@gmail.com',
            action: 'SIGN',
            positions: [
                {
                    x: '50', // Posição do Eixo X da ASSINATURA (0 a 100) 
                    y: '80', // Posição do Eixo Y da ASSINATURA (0 a 100)
                    z: '1'   // Página da ASSINATURA
                },
                {
                    x: '50', // Posição do Eixo X da ASSINATURA (0 a 100)
                    y: '50', // Posição do Eixo Y da ASSINATURA (0 a 100)
                    z: '2'   // Página da ASSINATURA
                }
            ]
        },
        { 
            email: 'thiago.zampieri@gmail.com',
            action: 'SIGN'
        },
        { 
            name: 'thiago zampieri',
            action: 'SIGN'
        }
    ],
    file: 'https://www.documento.com.br/Arquivo.pdf'
};

autentique.document.create(attributes);

4 - Assinar um Documento

autentique.document.signById(documentId);

5 - Deletar um Documento

autentique.document.deleteById(documentId);

Readme

Keywords

none

Package Sidebar

Install

npm i autentique-v2-nodejs

Weekly Downloads

107

Version

1.0.13

License

MIT

Unpacked Size

29.9 kB

Total Files

41

Last publish

Collaborators

  • thiago.zampieri