weblabnl/restclient
最新稳定版本:1.0.2
Composer 安装命令:
composer require weblabnl/restclient
包简介
README 文档
README
This library will help you implement REST APIs faster. Just add an adapter that implements the interface, set the base URL and you are good to go. It's shipped with an OAuth adapter.
Installation
Install using composer:
composer require weblabnl/restclient
Using the Library
Setup client
$api = new \Weblab\RESTClient\RESTClient(); $adapter = (new \Weblab\RESTClient\Adapters\OAuth) ->setAccessToken($accessToken); $api->setAdapter($adapter); $api->setBaseURL('https://api.weblab.nl');
Make a POST request to a REST API
$result = $api->post('/users', ['first_name' => 'Ankie', 'last_name' => 'Visser']);
统计信息
- 总下载量: 12k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2018-05-08