PHP code example of hasokeyk / markabu

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);



    use Hasokeyk\Markabu\Markabu;

     'XXXXXXXXXXXXXXXXXXXX';
    $password   = 'XXXXXXXXXXXXXXXXXXXX';

    $markabu = new Markabu($supplierId, $username, $password);

    $markabu_marketplace_order = $markabu->marketplace->MarkabuMarketplaceOrders();

    $filter = [
        'status' => 'Created',//Created, Picking, Invoiced, Shipped ,Cancelled, Delivered, UnDelivered, Returned, Repack, UnPacked, UnSupplied
    ];
    $orders = $markabu_marketplace_order->get_my_orders($filter);
    print_r($orders);



    use Hasokeyk\Markabu\Markabu;

     'XXXXXXXXXXXXXXXXXXXX';
    $password   = 'XXXXXXXXXXXXXXXXXXXX';

    $markabu = new Markabu($supplierId, $username, $password);

    $markabu_marketplace_products = $markabu->marketplace->MarkabuMarketplaceProducts();

    $filter    = [
        'approved' => 'true',
    ];
    $products = $markabu_marketplace_products->get_my_products($filter);
    print_r($products);