定制 bacanu/blwrap 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-12-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固