Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
stephangroen committed Jun 26, 2015
2 parents d7c5404 + cf99f7f commit aaf4694
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 267 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
}
],
"require": {
"php": ">=5.3.0",
"guzzlehttp/guzzle": "~5.0"
"php": ">=5.5.0",
"guzzlehttp/guzzle": "~6.0"
},
"autoload": {
"psr-0": {
"Picqer": "src"
"psr-4": {
"Picqer\\": "src/"
}
}
}
223 changes: 0 additions & 223 deletions composer.lock

This file was deleted.

34 changes: 34 additions & 0 deletions example.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

require 'vendor/autoload.php';

use Picqer\Carriers\Transsmart;

$client = new Transsmart('', '', true);

$documentData = [
'Reference' => 'testingddd123123',
'RefOrder' => 'reference',
'AddressName' => 'Picqert',
'AddressContact' => 'Stephan Groen',
'AddressZipcode' => '6981 AR',
'AddressCity' => 'Doesburg',
'AddressCountry' => 'NL',
'AddressEmail' => '[email protected]',
'AddressPhone' => '0313482375'
];

$documentData['AddressStreet'] = 'Koepoortstraat';
$documentData['AddressStreetNo'] = '27';

$documentData['ColliInformation'][] = [
'PackagingType' => 'BOX',
'Description' => 'ShipmentDescription',
'Quantity' => 1,
'Weight' => 1000 // in kg weight per box, instead of total weight in grams
];


$document = $client->createDocument($documentData);

var_dump($document);
Loading

0 comments on commit aaf4694

Please sign in to comment.