bacanu/blwrap
Composer 安装命令:
composer require bacanu/blwrap
包简介
A very light utility class for the Bricklink API
README 文档
README
#BLWrap
A very thin class that helps you make requests to the BrickLink API
The heavy lifting is done by guzzlehttp/guzzle and guzzlehttp/oauth-subscriber.
If you just want a simple way to make and sign request, you can use the above two packages and skip blwrap entirely.
##Installation
composer require bacanu/blwrap
##Usage
###GET request
$config = [
"consumerKey" => "[replace]",
"consumerSecret" => "[replace]",
"tokenValue" => "[replace]",
"tokenSecret" => "[replace]",
];
$bl = new Client($config);
$result = $bl->execute('get', 'inventories/1');
//OR if you want request parameters
$result = $bl->execute('get', 'orders', [
"direction" => "in",
"filed" = "false"
]);
###POST, PUT, DELETE requests
$config = [
"consumerKey" => "[replace]",
"consumerSecret" => "[replace]",
"tokenValue" => "[replace]",
"tokenSecret" => "[replace]",
];
$bl = new Client($config);
$result = $bl->execute('put', 'inventories/1', [
"quantity" => "+2"
]);
统计信息
- 总下载量: 157
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-12-29