PHP code example of sleekcommerce / sleekshop-phpsdk-json

1. Go to this page and download the library: Download sleekcommerce/sleekshop-phpsdk-json 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/ */

    

sleekcommerce / sleekshop-phpsdk-json example snippets


include 'vendor/autoload.php';

use Sleekshop\sleekSDK;
use Sleekshop\Options\DefaultOptions; // optional

// optional
$defaultOptions = new DefaultOptions(
    'de_DE', // default language if not provided in call
    'sleekshop', // token e.g. cookie name 
    100, // product image thumbnail height
    'id' // chaining field
);

$sleekshop = new sleekSDK(
    'https://<yourInstance>.sleekshop.net/srv/service/',
    '<licence_username>',
    '<licence_password>',
    '<licence_secret_key>', // optional but 

$session = $sleekshop->SessionCtl()->GetSession();