1. Go to this page and download the library: Download diegonella/oca 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/ */
diegonella / oca example snippets
### Unicamente para tarifar un envío requiere un número de operativa y CUIT válidos,
### autorizados por OCA para operar (at. al cliente 0800-999-7700).
### Otros métodos no requieren esta autorización
use diegonella\OCA\Oca;
$oca = new Oca($cuit = '20-12345678-7', $operativa = 12345);
$price = $oca->tarifarEnvioCorporativo(1, 1, 1640, 1006, 1, 0);
$envios = $oca->listEnvios($fechaDesde = '01-01-2020', $fechaHasta = '01-02-2020');
print_r ($envios);
print_r ($price);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.