hgs / openapi
dev-master
2021-06-07 10:58 UTC
Requires
- php: ^7.2
- guzzlehttp/guzzle: ^6.2
- illuminate/database: ~5.6.34|~5.7.0|~5.8.0|^6.0|^7.0
- illuminate/support: ~5.6.34|~5.7.0|~5.8.0|^6.0|^7.0
Requires (Dev)
- phpunit/phpunit: ^7.0|^8.0|^9.0
This package is auto-updated.
Last update: 2024-04-07 17:05:00 UTC
README
安装vendor publish
composer require laravelista/lumen-vendor-publish:7.x app\Console\Kernel.php 中加入 VendorPublishCommand::class
安装hgs/openapi
composer require hgs/openapi dev-master bootstrap/app.php中注册提供者$app->register(Hgs\Openapi\OpenapiServiceProvider::class); php artisan vendor:publish php artisan migrate
使用
$orderApiGateway = BusinessApiGatewayFactory::getTiktokBusinessApiGateway(Order::class, env("TIKTOK_STORE_APP_KEY"), env("TIKTOK_STORE_APP_SECRET"), 1); $data = $orderApiGateway->orderList();