-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from tecnospeed/feature/download
Feature/download
- Loading branch information
Showing
11 changed files
with
180 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
require '../vendor/autoload.php'; | ||
|
||
use TecnoSpeed\Plugnotas\Configuration; | ||
use TecnoSpeed\Plugnotas\Nfse; | ||
|
||
try { | ||
// Criando configuração (este objeto é onde você irá colocar seu api-key) | ||
$configuration = new Configuration( | ||
Configuration::TYPE_ENVIRONMENT_SANDBOX, // Ambiente a ser enviada a requisição | ||
'2da392a6-79d2-4304-a8b7-959572c7e44d' // API-Key | ||
); | ||
$configuration->setNfseDownloadDirectory('./tmp/'); | ||
|
||
$nfse = new Nfse(); | ||
$nfse->setConfiguration($configuration); | ||
$download = $nfse->downloadPdfByCnpjAndIdIntegracao('00000000000191', '000000000001914'); | ||
var_dump($download); | ||
} catch (\Exception $e) { | ||
var_dump($e); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
require '../vendor/autoload.php'; | ||
|
||
use TecnoSpeed\Plugnotas\Configuration; | ||
use TecnoSpeed\Plugnotas\Nfse; | ||
|
||
try { | ||
// Criando configuração (este objeto é onde você irá colocar seu api-key) | ||
$configuration = new Configuration( | ||
Configuration::TYPE_ENVIRONMENT_SANDBOX, // Ambiente a ser enviada a requisição | ||
'2da392a6-79d2-4304-a8b7-959572c7e44d' // API-Key | ||
); | ||
$configuration->setNfseDownloadDirectory('./tmp/'); | ||
|
||
$nfse = new Nfse(); | ||
$nfse->setConfiguration($configuration); | ||
$download = $nfse->downloadPdf('5c3118127ab98414de5e2bd6'); | ||
var_dump($download); | ||
} catch (\Exception $e) { | ||
var_dump($e); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters