kuabound / openapi
验签并通过http调用dropshipbot项目接口
1.1.2
2026-09-21 09:54 UTC
Requires
- php: ^8.0
- guzzlehttp/guzzle: ^7.2
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-09-21 09:54:54 UTC
README
在 .env 中配置三个核心参数:
DSBOT_APP_KEY=your_app_key
DSBOT_APP_SECRET=your_app_secret
DSBOT_BASE_URI=https://api.example.com
use Kuabound\OpenApi\DsbotClient; try { $data = DsbotClient::make()->get('/open/order/detail', ['orderNo' => $orderNo]); $data = DsbotClient::make()->post('/open/order/create', $body); } catch (HttpClientException $e) { // $e->getCode() 为接口返回的 code,$e->getMessage() 为错误信息 }