Skip to content

pomansur/market

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP SDK for Yandex.Market

A simple PHP SDK for service market-scanner.ru.

Install

git

Add the repository as a submodule to your project

$ git submodule add git://github.com/demyashev/market-scanner.git </path/to/clone>

composer

Add these lines to the file composer.json

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/demyashev/market-scanner"
        }
    ],
    "require": {
        "demyashev/market-scanner": "@dev"
    }
}

How to

include __DIR__ . '/../src/vendor/autoload.php';

$key = '<auth_key>';
$productId = 415763024;

$scanner = new \MarketScanner\Scanner($key);

$balance = $scanner->getBalance();
// $balance = (new \MarketScanner\Model\Balance($key))->getBalance();

$info = $scanner->getInfo($productId);
// $info = new \MarketScanner\Model\Info($key, $productId);

$photos = $scanner->getPhotos($productId);
// $photos = (new \MarketScanner\Model\Photos($key, $productId))->getPictures();

$specs = $scanner->getSpecs($productId);
// $specs = (new \MarketScanner\Model\Specs($key, $productId))->getSpecifications();

$reviews = $scanner->getReviews($productId);
// $reviews = (new \MarketScanner\Model\Reviews($key, $productId))

You can find more information in example file.

License

Apache 2.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages