hgs/openapi

dev-master 2021-06-07 10:58 UTC

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();