devxnetx / bo-api-laravel
Laravel wrapper for BO-API-PHP package for burzi-obiavi.com
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/devxnetx/bo-api-laravel
Requires
- devxnetx/bo-api-php: 0.2.0
 
README
burzi-obiavi.com JSON API documentation
Installation
You can install this package via composer
composer require devxnetx/bo-api-laravel
Config
Put your burzi-obiavi.com profile credentials in config/burziobiavi.php. There are no API keys or such
 [
    'username' => 'YOUR USERNAME',
    'password' => 'YOUR PASSWORD',
    //  You can use it for fallback - Sofia (727011)
    'city' => 727011
];
Get cities
    BurziObiavi::getCities();
Get categories
    BurziObiavi::getCategories();
Post ad
api_custom_id - Put your product id here, if we match already existing product ids, the AD data will be updated, else we create the product.
BurziObiavi::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"] ]);