PHP library to interface with the Starshipit API
The recommended way to install is via Composer.
composer require cedcommerce/starshipit dev-master
Don't forget to include Composer's auto-loader if you haven't already:
require 'vendor/autoload.php';
/** @var \Starshipit\Model\Authorization $auth */
$auth = new \Starshipit\Model\Authorization(
"https://api.starshipit.com/api/",
"starshipit-api-key", // to be changed
'subscription-Key', // to be changed
"your-user-agent" // to be changed
);
/** @var \Starshipit\Service\Order $order */
$order = \Starshipit\Api::order($auth);
/** @var \Starshipit\Model|Search $result */
$result = $order->search("xyz");
/** @var \Starshipit\Model\Order $item */
if ($result->getSuccess()) {
echo "Success";
}
- [POST] Create Label
- [POST] Create Order
- [GET] Get Order
- [GET] Search Orders
- [GET] Tracking Details
- [GET] Address Validation
- [POST] Create Orders
- [POST] Delete Orders
- [POST] Delivery Services
- [GET] Shipping Rates
- [GET] Unshipped Orders
- [PUT] Update Order
- [GET] Users Address Book