jaybizzle/deploybot-api
最新稳定版本:v2.1.0
Composer 安装命令:
composer require jaybizzle/deploybot-api
包简介
A simple PHP wrapper for the DeployBot API
关键字:
README 文档
README
Installation
Add "jaybizzle/deploybot-api": "2.*" to your composer.json.
Older Versions
If you need to use this with older versions of PHP or Guzzle, then see the 1.0 branch
Usage
You can read the official DeployBot API documention here - http://deploybot.com/api/
All the DeployBot API endpoints can be called by prefixing the name with get e.g
use Jaybizzle\DeployBot; $db = new DeployBot('YOUR_API_KEY', 'YOUR_ACCOUNT_NAME'); // get all users $users = $db->getUsers(); // get a specific user $user = $db->getUsers(324);
Some DeployBot API endpoints can accept query string parameters, such as limit to limit the number of results returned. Taking the above users example, we can simply do this...
$users = $db->limit(10)->getUsers();
These can also be chained...
$users = $db->limit(10)->after(324)->getUsers();
Some more examples...
// list deployments for environment and limit results $deployments = $db->environmentId(3452)->limit(10)->getDeployments(); // list repositories and limit results $repositories = $db->limit(20)->getRepositories();
NOTE: Query parameters are listed in the DeployBot API docs as snake_case but we access them using camelCase methods so all method calls have a consistent naming convention
统计信息
- 总下载量: 21.16k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 19
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-08-11