API Reference
API Reference
These docs are for v1.1. Click to read the latest docs for v1.2.

Installation

Obtain the latest version of the ShippingEasy PHP bindings with:

git clone https://github.com/ShippingEasy/shipping_easy-php

To get started, add the following to your PHP script:

require_once("/path/to/shipping_easy-php/lib/ShippingEasy.php");

Configuration

You will need a ShippingEasy API key and secret to sign your API requests. These can be found in your account's settings (https://app.shippingeasy.com/settings/api_credentials).

Once you have the credentials, add them to the libary's configuration:

ShippingEasy::setApiKey('d8e8fca2dc0f896fd7cb4cb0031ba249');
ShippingEasy::setApiSecret('XXX');

Tests

In order to run tests you have to install SimpleTest via Composer (recommended way):

composer.phar update --dev

Run the test suite:

php ./test/ShippingEasy.php