AUTENTIQUE Api v2
Getting Started
This package is so simple to use that will save your time!
composer require vinicinbgs/autentique-v2
1) Set .env
file
AUTENTIQUE_URL="https://api.autentique.com.br/v2/graphql"
AUTENTIQUE_TOKEN="YOUR_TOKEN"
AUTENTIQUE_DEV_MODE="true" # set "true" for SANDBOX MODE or "false" to PRODUCTION MODE
If you not able to use environment variables, you can set it directly in (Documents | Folders) instance
:
use vinicinbgs\Autentique\Utils\Api;
use vinicinbgs\Autentique\Documents;
$api = new Api('https://api.autentique.com.br/v2/graphql', 100);
$document = new Documents($token);
$document->setApi($api); // use only if you want to change the default timeout 60 seconds
$document->setSandbox("true"); // string. "true"|"false"
2) API’s
Contribute
git clone git@github.com:vinicinbgs/autentique-v2.git
cd autentique-v2
make contribute
Configure prettier php in vscode (optional)
(CTRL + P)
> Preferences: Open Setting (JSON)
"emeraldwalk.runonsave": {
"commands": [
{
"match": "\\.php$",
"cmd": "npm run prettier -- ${relativeFile} --write",
},
]
}
TODO
Check: https://altair.autentique.com.br/
1) Queries
- me
- organization
- organizations
- groupsByOrganization
- documentsByFolder
- emailTemplates
2) Mutations
- moveDocumentToRoot
- transferDocument
Tests
The tests are integrated directly with Autentique API, so you need to set your .env
file based on .env.example
Make sure you have set the AUTENTIQUE_TOKEN
, AUTENTIQUE_URL
and AUTENTIQUE_DEV_MODE
to true
for SANDBOX MODE
or false
to PRODUCTION MODE
.
composer test
composer test -- --filter ApiTest