Git Product home page Git Product logo

autentique-v2's Introduction

AUTENTIQUE Api v2

Latest Stable Version Total Downloads Build Status codecov Scrutinizer Code Quality Code Intelligence Status License

🚀 Usage

composer install vinicinbgs/autentique-v2

Set file .env

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

Import library use vinicinbgs\Autentique\Documents;

Instance

$documents = new Documents($AUTENTIQUE_TOKEN);

1 - Listar todos os Documentos

$documents->listAll($page); // if not isset $page is equal 1

2 - Listar um Documento

$documents->listById($documentId);

3 - Criar um Documento

$attributes = [
         'document' => [
             'name' => 'NOME DO DOCUMENTO'
         ],
         'signers' => [
             'email' => '[email protected]',
             '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
                 ]
             ]
         ],
         'file' => 'C:\Users\vinicinbgs\Downloads\Arquivo.pdf'
     ];
 
 $documents->create($attributes);
 

4 - Assinar um Documento

$documents->signById($documentId);

5 - Deletar um Documento

$documents->deleteById($documentId);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.