manavo/donedone-api-php
最新稳定版本:0.0.11
Composer 安装命令:
composer require manavo/donedone-api-php
包简介
PHP library for connecting with DoneDone
关键字:
README 文档
README
PHP library for connecting with DoneDone.
You can find DoneDone's API documentation here: http://www.getdonedone.com/api/
Installation
Install via composer:
composer require manavo/donedone-api-php
Usage
Get all projects
$client = new Manavo\DoneDone\Client('team_name', 'username', 'password/api_token'); $projects = $client->projects();
Get all priority levels
$client = new Manavo\DoneDone\Client('team_name', 'username', 'password/api_token'); $priorityLevels = $client->priorityLevels();
Get all people of a project
$client = new Manavo\DoneDone\Client('team_name', 'username', 'password/api_token'); $people = $client->project(1234)->people();
Get all issues of a project (all, active, or closed)
$client = new Manavo\DoneDone\Client('team_name', 'username', 'password/api_token'); $issues = $client->project(1234)->issues(); $activeIssues = $client->project(1234)->activeIssues(); $closedAndFixedIssues = $client->project(1234)->closedAndFixedIssues();
Create a new issue
$client = new Manavo\DoneDone\Client('team_name', 'username', 'password/api_token'); $project = $client->project(1111); $issue = new \Manavo\DoneDone\Issue(); $issue->setTitle('Brand new issue!'); $issue->setPriorityLevel(1); $issue->setFixer(4321); $issue->setTester(1234); $issue->addAttachment('/path/to/some/file.md'); // Optional $addedIssue = $project->addIssue($issue);
Comment on an issue
$client = new Manavo\DoneDone\Client('team_name', 'username', 'password/api_token'); $issue = $client->project(29881)->issue(16); $comment = new \Manavo\DoneDone\Comment(); $comment->setMessage('I am commenting!!!'); $comment->addAttachment('/path/to/some/file.md'); // Optional $addedComment = $issue->addComment($comment);
统计信息
- 总下载量: 19.64k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-10-23