Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 983 Bytes

File metadata and controls

23 lines (18 loc) · 983 Bytes

JetPHP

PHP Jet.com API Class

Please note this class is still being tested. There may be bugs. This message will be removed when this version is stable.

API Credentials

Please see the Jet.com Partner Portal for more information on how to get your api user id, api secret and Jet merchant ID.

Usage

Include the following code, and amend it as you see fit.

// Setup Jet API
$jet = new JetPHPApi;
$jet->api_user_id = 'your api user id';
$jet->api_secret = 'your api secret';
$jet->merchant_id = 'your merchant id';

// Run something.
$jet->processOrdersByStatus('ready'); // or something else

Notice

While it has been reformatted up to 50% of the original code, the intial code is a derivative of DSUGARMAN's Jet.com PHP Class. It has been reformated to be more user friendly and compatible with namespaces and external use. Giving credit where credit is due!