PHP code example of hasokeyk / yurt-ici-kargo
1. Go to this page and download the library: Download hasokeyk/yurt-ici-kargo 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' );
hasokeyk / yurt-ici-kargo example snippets
urticiKargo\yurticiKargo;
$yurtici = new yurticiKargo([
'username' => 'XXXXXXXXXXX' ,
'password' => 'XXXXXXXXXXX' ,
'test' => true
]);
$kargoYolla = $yurtici->createCargo([
'cargoKey' => 'HSN-0000001' ,
'invoiceKey' => 'TEST-0000001' ,
'receiverCustName' => 'Hasan Yüksektepe' ,
'receiverAddress' => 'Test Adres' ,
'receiverPhone1' => '05414233558' ,
]);
print_r($kargoYolla);
urticiKargo\yurticiKargo;
$yurtici = new yurticiKargo([
'username' => 'XXXXXXXXXXX' ,
'password' => 'XXXXXXXXXXX' ,
'test' => true
]);
$kargoYolla = $yurtici->createCargo([
'cargoKey' => 'HSN-0000001' ,
'invoiceKey' => 'TEST-0000001' ,
'receiverCustName' => 'Hasan Yüksektepe' ,
'receiverAddress' => 'Test Adres' ,
'receiverPhone1' => '05414233558' ,
]);
print_r($kargoYolla);
argo\yurticiKargo;
$yurtici = new yurticiKargo([
'username' => 'XXXXXXXXXXX' ,
'password' => 'XXXXXXXXXXX' ,
'test' => true
]);
$kargoYolla = $yurtici->createCargo([
'cargoKey' => 'HSN-0000001' ,
'invoiceKey' => 'TEST-0000001' ,
'receiverCustName' => 'Hasan Yüksektepe' ,
'receiverAddress' => 'Test Adres' ,
'receiverPhone1' => '05414233558' ,
]);
print_r($kargoYolla);