PHP code example of bildvitta / iss-vendas

1. Go to this page and download the library: Download bildvitta/iss-vendas 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/ */

    

bildvitta / iss-vendas example snippets


return [
    'base_uri' => env('MS_VENDAS_BASE_URI', 'https://api-dev-vendas.nave.dev'),
    'prefix' => env('MS_VENDAS_API_PREFIX', '/api')
];

use Bildvitta\IssVendas\IssVendas;
use Illuminate\Http\Client\RequestException;

try {
    $vendas = new IssVendas();
    $sale = $vendas->programmatic()->sale()->find('95c17b9b-a839-4bc7-89c0-6d23c54641a1');
} catch (RequestException $e) {
}
bash
php artisan vendor:publish --tag="vendas-config"