PHP code example of devxnetx / bo-api-php

1. Go to this page and download the library: Download devxnetx/bo-api-php 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/ */

    

devxnetx / bo-api-php example snippets


$burziObiavi = new BurziObiavi('username', '123123123');

$burziObiaviCitites = $burziObiavi->getNomenclatureService()->cities();

$burziObiaviCategories = $burziObiavi->getNomenclatureService()->categories();

$burziObiaviPostAdResponse = $burziObiavi->getAdService()->postAd([
    "title"         => "Your Ad Title - Не приема HTML",
    "content"       => "<b>DESCRIPTION</b>",
    "price"         => "100",
    "phone"         => "0888888888",
    "city"          => 727011,
    "catid"         => 11,
    "subcatid"      => 181,
    "api_custom_id" => "ID from your system",
    "images"        => ["https://cdn.shopify.com/s/files/1/2394/4001/files/21_MAYO_e83d41cd-e674-4508-8d9a-267075361e02_480x480.jpg"]
]);
bash
composer