/* Optionally you can define which carriers you want to quote if you don't want to quote all carriers $additionalParams['offers'] = array( 0 => 'MONRCpourToi', 1 => 'SOGPRelaisColis', 2 => 'POFRColissimoAccess', 3 => 'CHRPChrono13', 4 => 'UPSEExpressSaver', 5 => 'DHLEExpressWorldwide' ); */ /* Parcels informations */ $parcels = array('type' => 'colis', 'dimensions' => array(1 => array('poids' => 1, 'longueur' => 15, 'largeur' => 16, 'hauteur' => 8))); $currency = array('EUR' => '€', 'USD' => '$'); // Prepare and execute the request $lib = new Quotation(); $lib->getQuotation($from, $to, $parcels, $additionalParams); if (!$lib->curl_error && !$lib->resp_error) { ?> <h3>API Quotation :</h3> <div class="row"> <table class="table table-hover table-striped table-bordered"> <thead> <tr> <th>Operator</th> <th>Offers</th> <th>Price</th> <th>Collect</th> <th>Delivery</th> <th>Details</th> <th>Warning</th> <th>Mandatory informations</th>