Skip to content

Latest commit

 

History

History
71 lines (51 loc) · 1.76 KB

README.md

File metadata and controls

71 lines (51 loc) · 1.76 KB

PHP library to interface with the Starshipit API

Installation

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';

Usage

        /** @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";
        }

API

API Documentation

Supported Methods

  • [POST] Create Label
  • [POST] Create Order
  • [GET] Get Order
  • [GET] Search Orders
  • [GET] Tracking Details

Methods Not Supported at this Stage

  • [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

Special Thanks

JMS Serializer

Guzzle

James-Azzopardi/starshipit