PHP code example of aprixapp / moysklad
1. Go to this page and download the library: Download aprixapp/moysklad 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/ */
aprixapp / moysklad example snippets
use AprixApp\MoySklad\MSConnect;
$login = '****@****';
$password = "******";
$msConnect = new MSConnect([
'login' => $login,
'password' => $password
]);
use AprixApp\MoySklad\MSConnect;
$accessToken = '********************';
$msConnect = new MSConnect([
'token' => $accessToken
]);
use AprixApp\MoySklad\Entities\Assortment;
$assortment = new Assortment($msConnect);
$rows = $assortment
->setFilter([
'stockStore' => [
"https://api.moysklad.ru/api/remap/1.2/entity/store/19719e08-5d5d-11ec-0a80-099500039a1b"
]
])
->get()
->getResponseRows();