This is the official SDK (Software Developmen Kit) from SkyHub, built in PHP, which you can use to integrate your platform to our system.
See right below how easy is to use it:
<?php
/**
* First you need to require the composer autoload file into your script.
*/
require_once './vendor/autoload.php';
/**
* These credentials you must request to SkyHub Support team.
*/
$email = '[email protected]';
$apiKey = 'ddRTGUrf_bho17FooTjC';
/** @var \SkyHub\Api $api */
$api = new SkyHub\Api($email, $apiKey);
/** @var \SkyHub\Api\Handler\Request\Catalog\Product\AttributeHandler $requestHandler */
$requestHandler = $api->productAttribute();
/**
* Create an Attribute
* @var SkyHub\Api\Handler\Response\HandlerInterface $response
*/
$response = $requestHandler->create('color', 'Color', [
'Blue',
'White',
'Green',
'Yellow'
]);
if ($response->success()) {
echo 'SUCCESS!';
}
- System Requirements
- Credentials
- Installation and Setup
- Using the SDK
Your contribution is always welcome! Please read the contribution documentation.
Tiago Sampaio
Bruno Gemelli
For support requests please send an e-mail to the following address:
SkyHub PHP SDK is a project started into B2W Digital office and distributed as an Open Source Software in March of 2018.
The code base in this distribution is licenced under OSL 3.0.
The Open Software License 3.0 (OSL-3.0).
For complete licence information please read LICENSE.txt or contact [email protected] to request a copy of it.