PHP code example of rafwell / cronoex-notas-sdk-php
1. Go to this page and download the library: Download rafwell/cronoex-notas-sdk-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rafwell / cronoex-notas-sdk-php example snippets
$token = 'Seu token';
$secret = 'Seu secret';
$cronoexNotas = new \Rafwell\CronoexNotas\Client($token, $secret);
//$res = $cronoexNotas->empresa()->consultar();
//$res = $cronoexNotas->empresa()->alterar([]);
//$res = $cronoexNotas->empresa()->alterarCertificado([]);
//$res = $cronoexNotas->empresa()->alterarLogo([]);
//$res = $cronoexNotas->nfse()->listar();
//$res = $cronoexNotas->nfse()->consultar('nfse_id');
//$res = $cronoexNotas->nfse()->criar([]);
$res = $cronoexNotas->nfse()->cancelar('nfse_id', []);
die(print_r($res->toArray()));