PHP code example of coddin-web / lightspeed-php-sdk
1. Go to this page and download the library: Download coddin-web/lightspeed-php-sdk library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
coddin-web / lightspeed-php-sdk example snippets
bash
$ composer
json
{
"oddin-web/lightspeed-php-sdk": "^1.9"
}
}
php
= new \Lightspeed\ApiClient('[api-server]', '[api-key]', '[api-secret]', '[language]');
$shopInfo = $client->shop->get();
php
$shopInfo = $client->shop->get();
$response = $shopInfo->getResponseHeaders();