Skip to content
A maintained fork of ship-station, a PHP wrapper for ShipStations REST API.
Branch: master
Clone or download
Pull request Compare This branch is 18 commits ahead of michaelbonds:master.
zack6849 Merge pull request #1 from jaywilliams/patch-1
Fix optional paramaters in listStores()
Latest commit e2a6d54 Jan 25, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Fix missing { Jan 25, 2019
.gitignore Update authoring information and add gitignore May 4, 2017
README.md instruct composer to replace old library with our fork May 4, 2017
composer.json Update composer description May 22, 2018

README.md

ShipStation Api Wrapper for PHP

Install


composer require zack6849/ship-station

Docs


Using ShipStationApi


use MichaelB\ShipStation\ShipStationApi;

$apiKey = ''; // Your ShipStation Api Key
$apiSecret = ''; // Your ShipStation Api Secret
$options = []; // Options to be merged into the normal GuzzleHttp\Client options

// ShipStationApi Extends GuzzleHttp\Client
$shipstation = new ShipStationApi($apiKey, $apiSecret, $options);

/*
 * Get a service instance
 */
 
// Orders
$orderService = $shipstation->orders;

// Products
$products = $shipstation->products;

// ...

/*
 * Use the service
 */
$order = $orderService->getOrder('1234');

// All service methods return a GuzzleHttp\Psr7\Response object
$json = $order->getBody(); // { 'order': {...} }
$status = $order->getStatusCode(); // 200
You can’t perform that action at this time.