1. Go to this page and download the library: Download solunsky/dpd-interconnector 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/ */
solunsky / dpd-interconnector example snippets
string|array $countryCode: 'lv' or 'ee' or 'lt' or array("uk" => "https://integration.dpd.uk/ws-mapper-rest/")
boolean $debug: default false
array $params
use Solunsky\Interconnector\Request\PrintLabel;
$print = new PrintLabel($auth, $response['pl_number']);
header("Content-type:application/pdf");
echo $print;
array $params
array $params
array $params
array $params
array $params
use Solunsky\Interconnector\Client;
$client = new Client(array('verify' => false));
$response = $client->get($request);
namespace Solunsky\Interconnector\Request;
class CustomRequest extends Request
{
private $params;
public function __construct($authentication, $params)
{
parent::__construct($authentication);
$this->params = $params;
}
public function get()
{
$body = array_merge(
$this->authentication->credentials(),
$this->params
);
$headers = array(
'Content-Type' => 'application/x-www-form-urlencoded; charset=utf-8',
);
return $this->build('POST', 'method_uri', $headers, $body);
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.