fastwebmedia / hive-api
Hive API 的包装器。
4.0.1
2015-10-08 08:50 UTC
Requires
- php: >=5.4.0
- guzzlehttp/guzzle: 5.3.*
- illuminate/support: 5.*
Requires (Dev)
- phpunit/phpunit: 4.*
README
安装
composer require fastwebmedia/hive
然后需要添加服务提供者
'FWM\Hive\HiveServiceProvider'
最后发布配置
php artisan vendor:publish
用法
您应该首先更新配置文件,包括 URL 和访问令牌,以便可以通过 Hive API 发送请求。
$client = new FWM\Hive\Client();
return $client->api('user')->getUser('hello@fastweb.media');
文档
即将推出 - 目前请查看代码和用户 API 类以查看可用方法。