-
Notifications
You must be signed in to change notification settings - Fork 5
Getting Lightspeed orders by date range
Rutger Kirkels edited this page Feb 13, 2018
·
4 revisions
Access to the Lightspeed API is granted by a key and a password.
<?php
use \rutgerkirkels\ShopConnectors\Entities\Credentials\CredentialsFactory;
use \rutgerkirkels\ShopConnectors\Connectors\ConnectorFactory;
use \rutgerkirkels\ShopConnectors\Models\DateRange;
// Build the credentials object
$credentials = CredentialsFactory::build('Lightspeed')
->setKey('<your_key>')
->setPassword('your_password');
// Build the connector object
$connector = ConnectorFactory::build(
'Lightspeed', '<api_host>', $credentials
);
// Determine the date range
$dateRange = new DateRange(new DateTime('2018-01-01'), new DateTime('2018-01-02'));
// Retrieve the orders
$orders = $connector->getOrdersByOrderDate($dateRange);
?>
Lightspeed
Get orders by date range
Magento 1
Get orders by date range
Plentymarkets
Get orders by date range
Prestashop
Get orders by date range
Shopify
Get orders by date range
WooCommerce
Get orders by date range