Downloads
Stars
Version
Laravel пакет для работы с API Justin
Read this in other language: English, Русский, Український
composer require jackmartin/laravel-justin
После установки пакета с помощью composer, зарегистрируйте сервис пакета в файле bootstrap/app.php:
JustinLaravel\JustinServiceProvider::class
Затем для быстрого вызов класса пакета, добавьте псевдоним в этот же файле:
'JustinLaravel' => JustinLaravel\Facades\JustinFacade::class,
php artisan vendor:publish
Выбираем Tag: justin-laravel-config
или
php artisan vendor:publish --provider="JustinLaravel\JustinServiceProvider" --tag="justin-laravel-config"
'language' => 'UA'
'sandbox' => true
'version' => 'v2'
'orderVersion' => 'v1'
'timeout' => 60
'connect_timeout' => 60
'timezone' => 'UTC'
'auth_login' => 'Exchange'
'auth_password' => 'Exchange'
'key' => ''
'login' => ''
'password' => ''
print_r(
\JustinLaravel::listRegions()->getData()
// (new \JustinLaravel())->listRegions()->getData()
);
print_r(
\JustinLaravel::listCities()->getData()
// (new \JustinLaravel())->listCities()->getData()
);
print_r(
(new JustinLaravel())->getBranch('220')->getData()
// (new JustinLaravel())->getBranch('220')->fields()->number()
// (new JustinLaravel())->getBranch('220')->fields()->getType()
// (new JustinLaravel())->getBranch('220')->fields()->address()
// (new JustinLaravel())->getBranch('220')->fields()->getPosition()
// (new JustinLaravel())->getBranch('220')->fields()->getDescr()
// (new JustinLaravel())->getBranch('220')->fields()->scheduDescr()
);