PHP code example of bbarreto / skyhub-php-sdk
1. Go to this page and download the library: Download bbarreto/skyhub-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/ */
bbarreto / skyhub-php-sdk example snippets
bash
composer
php
Skyhub\Marketplace;
$skyhub = new Skyhub\Marketplace();
$skyhub->setAuth('<user_skyhub>', '<api_key>');
php
$produto = $skyhub->products()->insert([
'sku'=>'72350973',
'name'=>'Teste de produto',
'description'=>'Produto de teste da API'
]);
php
$produtos = $skyhub->products()->get(1, 10);