eighteen73/dear-api
最新稳定版本:v1.0.5
Composer 安装命令:
composer require eighteen73/dear-api
包简介
PHP Library for dear systems API v2 https://dearinventory.docs.apiary.io
README 文档
README
PHP Library for DEAR Systems API v2.
Originally forked from UmiMood/dear-api.
Requirements
- PHP 8.0+
- guzzlehttp/guzzle 7.4+
- ext-json extension
Installation
composer require eighteen73/dear-api
Otherwise just download the package and add it to the autoloader.
API Documentation
Usage
Create a Dear instance.
$dear = Eighteen73\Dear\Dear::create("DEAR-ACCOUNT_ID", "DEAR-APPLICATION-KEY");
Get data from API
$products = $dear->product()->get([]); $accounts = $dear->account()->get([]); $me = $dear->me()->get([]);
Push a new record to the API
$response = $dear->product()->create($params); // see docs for available parameters
Update an existing record
$response = $dear->product()->update($guid, $params); // see docs for available parameters
Delete a record
$response = $dear->product()->delete($guid, []);
Links
统计信息
- 总下载量: 972
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-12-21