PHP code example of saulmoralespa / envia-colvanes-api-php
1. Go to this page and download the library: Download saulmoralespa/envia-colvanes-api-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/ */
saulmoralespa / envia-colvanes-api-php example snippets
// ... please, add composer autoloader first
s\Client;
$user = ''; // your user of Envia Colvanes
$password = ''; // your password of Envia Colvanes
$codAccount = ''; // code Account of Envia Colvanes
try{
$enviaColvanes = new Client($user, $password, $codAccount);
$enviaColvanes->sandboxMode(true);
}
catch (\Exception $exception){
echo $exception->getMessage();
}