PHP code example of kilylabs / grastin-api-php

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

    

kilylabs / grastin-api-php example snippets




define('GRASTIN_DEBUG',true);

ery('<YOUR API KEY HERE>');

var_dump($d->agentreportlist('2017-01-01','2017-01-31'));
var_dump($d->orderinformation(["ИВН N-Р-33531","ИВН B-17622"]));
var_dump($d->orderinformation("ИВН B-17622"));
var_dump($d->selfpickup());
var_dump($d->warehouse());
var_dump($d->deliveryregion());
var_dump($d->boxberryselfpickup());
var_dump($d->boxberrypostcode());
var_dump($d->hermesselfpickup());
var_dump($d->statushistory(["ИВН N-Р-33531","ИВН B-17622"]));
var_dump($d->printactofreceiving(["ИВН N-Р-33531","ИВН B-17622"=>2])); // returns SplTempFileObject

$ composer