chobie / jira-api-restclient
JIRA REST API 客户端
v1.0.0
2014-07-27 11:40 UTC
Requires
- php: >=5.2.4
This package is not auto-updated.
Last update: 2024-09-10 20:20:03 UTC
README
你们都知道 Jira 支持 REST API,对吧?它非常有用,例如在自动化任务创建和通知发送时。
此库将确保通过 REST API 与 Jira 交互时拥有难忘的体验。希望你会喜欢它。
用法
- Jira REST API 文档:https://docs.atlassian.com/jira/REST/latest/
<?php use chobie\Jira\Api; use chobie\Jira\Api\Authentication\Basic; use chobie\Jira\Issues\Walker; $api = new Api( 'https://your-jira-project.net', new Basic('yourname', 'password') ); $walker = new Walker($api); $walker->push( 'project = "YOURPROJECT" AND (status != "closed" AND status != "resolved") ORDER BY priority DESC' ); foreach ( $walker as $issue ) { var_dump($issue); // Send custom notification here. }
安装
php composer.phar require chobie/jira-api-restclient ^2.0@dev
要求
许可证
Jira REST API 客户端采用 MIT 许可证发布。有关详细信息,请参阅附带LICENSE 文件。