Git Product home page Git Product logo

autentique-v2's Introduction

  _    _      _ _         _   _                     
 | |  | |    | | |       | | | |                    
 | |__| | ___| | | ___   | |_| |__   ___ _ __ ___   
 |  __  |/ _ \ | |/ _ \  | __| '_ \ / _ \ '__/ _ \  
 | |  | |  __/ | | (_) | | |_| | | |  __/ | |  __/_ 
 |_|  |_|\___|_|_|\___/   \__|_| |_|\___|_|  \___( )
                                                 |/                                                                            

Software Architect & Engineer - 🇧🇷

I'm working (Remote) on large projects around the world.

Feel free to send a message: [email protected]

autentique-v2's People

Contributors

gotzsys avatar luisferreirahi avatar paseto avatar vinicinbgs avatar viniciusmdutra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

autentique-v2's Issues

Sandbox value false.

em src\Documents.php:20

Estava assim: $this->sandbox = getenv('AUTENTIQUE_DEV_MODE') ? 'true' : 'false';
Alterei para isso: $this->sandbox = env('AUTENTIQUE_DEV_MODE') == true ? 'true' : 'false';

Pois ele sempre estava entrando como false e dessa forma funciona.

[docs] API return false

When you dont have a cacert.pem (Certified) configured in php.ini, its possible return false.

How fix?
Use in CURL options

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER , false)
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST , false)

Or,

Download latest version in https://curl.haxx.se/docs/caextract.html
and configure in php.ini

curl.cainfo="/etc/php7.0/cacert.pem"
openssl.cafile="/etc/php7.0/cacert.pem"

Internal server error - Create a new document

When I try to create a document I get the message below:
{"errors":[{"message":"Internal server error","extensions":{"category":"internal"},"locations":[{"line":1,"column":108}],"path":["createDocument"]}],"data":{"createDocument":null}}
NOTE: the other functions are working normally.

Code:

$documents = new Documents($_ENV['AUTENTIQUE_TOKEN']);
$folders = new Folders($_ENV['AUTENTIQUE_TOKEN']);
$attributes = [
		 'document' => [
			 'name' => 'NOME DO DOCUMENTO',
		 ],
		 'signers' => [
			 [
				 'email' => '[email protected]',
				 'action' => 'SIGN',
				 ],
			],
		 'file' =>  Storage::path('teste.pdf');
	 ];
print_r(json_encode($documents->create($attributes)));

How can i fix that?

SSL certificate problem: certificate has expired

Esse erro está aprecendo desde ontem em localhost, nãomudei nada nessa parte. No servidor de produção que tenho o cetificado configurado, não aparece erro e funciona tudo belezinha. Como faço pra testar minha aplicação com php artisan serve ?
image

Env vars

Existe um problema quando o servidor possui algumas configurações de segurança ativas, não permitindo acessar $_ENV
CleanShot 2024-01-16 at 12 48 48@2x

development.ERROR: AUTENTIQUE_URL cannot be empty

Local esta funcionando normalmente

I put the api token in the .env

I put the api token in the .env, but when I put the command to generate the document it gives error 400 preventing the api from working, any suggestions for a solution?

image
image

[refactor] Token in constructor (Documents | Folders)

Actual:

public function __construct(string $token)
    {
        parent::__construct();

        $this->query = new Query($this->resourcesEnum::DOCUMENTS);
        $this->token = $token;
    }

To:

public function __construct(string $token = null)
    {
        parent::__construct();

        $this->query = new Query($this->resourcesEnum::DOCUMENTS);
        $this->token = $token ?? getenv("AUTENTIQUE_TOKEN");
    }

Is this command really correct?

Is this command really correct? Because I'm trying to run the same and it doesn't run warning that there is no command in composer.
image
image

Create a new document

Using createDocuments() a get a message {"message":"unauthorized"}
But in the other functions i get a valid response 200

How can i fix that?

Question: Boolean Type no Update Documento

Fala meu povo, vocês enfrentaram o erro do tipo boolean no Update?

Tentando fazer type cast pra bool ou deixando string, recebo o mesmo erro da API GraphQL por meio do método update do Document.

Segue um pedaço da validação vindo da API:

{
    "errors": [
        {
            "message":"Variable \"$document\" got invalid value {\"name\":\"NOME_DOCUMENTO\",\"message\":\"Mensagem customizada enviada para os emails dos signatrios\",\"reminder\":\"WEEKLY\",\"sortable\":\"true\",\"footer\":\"BOTTOM\",\"refusable\":\"true\",\"new_signature_style\":\"true\",\"show_audit_page\":\"false\",\"ignore_cpf\":\"true\",\"email_template_id\":\"1234\",\"deadline_at\":\"2023-11-24T02:59:59.999Z\",\"cc\":[{\"email\":\"[email protected]\"},{\"email\":\"[email protected]\"}],\"expiration\":{\"days_before\":\"7\",\"notify_at\":\"20\\/01\\/2026\"}}; Expected type Boolean at value.refusable; Cannot represent value as boolean: true",
            "extensions": {
                "category": "graphql"
            },
            "locations": [
                {
                    "line": 1,
                    "column": 26
                }
            ]
        }
],
}

Conseguem me dá um norte.

Abs.

Laravel and vlucas/phpdotenv

After Laravel 8, they bumped they requiriments for "vlucas/phpdotenv": "^5.X",

So, with the latests version of Laravel, i can upgrade to latest version of this library, thats
needs only vlucas/phpdotenv : 4.X

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.