1. Go to this page and download the library: Download hasokeyk/markabu 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/ */
hasokeyk / markabu example snippets
use Hasokeyk\Markabu\Markabu;
'XXXXXXXXXXXXXXXXXXXX';
$password = 'XXXXXXXXXXXXXXXXXXXX';
$markabu = new Markabu($supplierId, $username, $password);
use Hasokeyk\Markabu\Markabu;
'XXXXXXXXXXXXXXXXXXXX';
$password = 'XXXXXXXXXXXXXXXXXXXX';
$markabu = new Markabu($supplierId, $username, $password);
$markabu_marketplace_brands = $markabu->marketplace->MarkabuMarketplaceBrands();
$brands = $markabu_marketplace_brands->get_brands();
print_r($brands);
use Hasokeyk\Markabu\Markabu;
'XXXXXXXXXXXXXXXXXXXX';
$password = 'XXXXXXXXXXXXXXXXXXXX';
$markabu = new Markabu($supplierId, $username, $password);
$markabu_marketplace_brands = $markabu->marketplace->MarkabuMarketplaceBrands();
$brands = $markabu_marketplace_brands->search_brand('Herkes Alıyo');
print_r($brands);
use Hasokeyk\Markabu\Markabu;
'XXXXXXXXXXXXXXXXXXXX';
$password = 'XXXXXXXXXXXXXXXXXXXX';
$markabu = new Markabu($supplierId, $username, $password);
$markabu_marketplace_categories = $markabu->marketplace->MarkabuMarketplaceCategories();
$categories = $markabu_marketplace_categories->get_categories();
print_r($categories);
use Hasokeyk\Markabu\Markabu;
'XXXXXXXXXXXXXXXXXXXX';
$password = 'XXXXXXXXXXXXXXXXXXXX';
$markabu = new Markabu($supplierId, $username, $password);
$markabu_marketplace_categories = $markabu->marketplace->MarkabuMarketplaceCategories();
$categories = $markabu_marketplace_categories->get_category_info(2610);
print_r($categories);