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.
Please see the Jet.com Partner Portal for more information on how to get your api user id, api secret and Jet merchant ID.
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
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!