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

Commit

Permalink
#31 - fixed demos not working
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentavn committed Sep 8, 2016
1 parent 239ddc2 commit 06480dd
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.idea/
.DS_Store
.DS_Store
composer.lock
vendor/
2 changes: 2 additions & 0 deletions demos/address_verify.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

require_once('autoload.php');

// Initiate and set the username provided from usps
$verify = new \USPS\AddressVerify('xxxx');

Expand Down
3 changes: 3 additions & 0 deletions demos/autoload.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

require_once('../vendor/autoload.php');
2 changes: 2 additions & 0 deletions demos/citystatelookup.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

require_once('autoload.php');

// Initiate and set the username provided from usps
$verify = new \USPS\CityStateLookup('xxxx');

Expand Down
2 changes: 2 additions & 0 deletions demos/domestic_rate.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

require_once('autoload.php');

use USPS\RatePackage;

// Initiate and set the username provided from usps
Expand Down
2 changes: 2 additions & 0 deletions demos/firstclassservicestandard.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

require_once('autoload.php');

// Initiate and set the username provided from usps.
$delivery = new \USPS\FirstClassServiceStandards('xxxx');

Expand Down
2 changes: 2 additions & 0 deletions demos/international_express_label.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

require_once('autoload.php');

// Initiate and set the username provided from usps
$label = new \USPS\InternationalLabel('xxxx');

Expand Down
2 changes: 2 additions & 0 deletions demos/open_label.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

require_once('autoload.php');

// Initiate and set the username provided from usps
$label = new \USPS\OpenDistributeLabel('xxxx');

Expand Down
2 changes: 2 additions & 0 deletions demos/priority_label.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

require_once('autoload.php');

// Initiate and set the username provided from usps
$label = new \USPS\PriorityLabel('xxxx');

Expand Down
2 changes: 2 additions & 0 deletions demos/servicedeliverycalculator.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

require_once('autoload.php');

// Initiate and set the username provided from usps
$delivery = new \USPS\ServiceDeliveryCalculator('xxxx');

Expand Down
2 changes: 2 additions & 0 deletions demos/trackconfirm.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

require_once('autoload.php');

// Initiate and set the username provided from usps
$tracking = new \USPS\TrackConfirm('xxxx');

Expand Down
2 changes: 2 additions & 0 deletions demos/zipcodelookup.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

require_once('autoload.php');

// Initiate and set the username provided from usps
$zipcode = new \USPS\ZipCodeLookup('xxxx');

Expand Down

0 comments on commit 06480dd

Please sign in to comment.