1. Go to this page and download the library: Download skuio/sku-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/ */
skuio / sku-sdk example snippets
use Skuio\Sdk\Sdk;
use Skuio\Sdk\Request;
use Skuio\Sdk\Resource\Products;
public function getProducts()
{
Sdk::config( [ 'username' => $username, 'password' => $password, 'environment' => Sdk::DEVELOPMENT ] );
$productsRequest = new Request();
$productsRequest->setConjunction( 'and' );
$productsRequest->addFilter( 'sku', '=', '5333180491623' );
$productsRequest->setLimit( 15 );
$productsRequest->setPage( 1 );
$products = new Products();
$products = $products->get( $productsRequest );
return $products->getResponse();
}
use Skuio\Sdk\Sdk;
public function testConnection()
{
Sdk::config( [ 'username' => $username, 'password' => $password, 'environment' => Sdk::DEVELOPMENT ] );
$sdk = new Sdk();
$res = $sdk->authorizedRequest( '/vendors' );
return $res->getResponse();
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.