adesso-mobile / php-jira-client
这是 Jira REST 资源端点文档
0.1.1
2019-12-10 11:49 UTC
Requires
- php: >=7.1
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ~2.12
- phpunit/phpunit: ^7.4
- squizlabs/php_codesniffer: ~2.6
This package is auto-updated.
Last update: 2024-09-10 22:03:45 UTC
README
这是 Jira REST 资源端点文档
此 PHP 包由 OpenAPI Generator 项目自动生成
- API 版本:8.3.2
- 构建包:org.openapitools.codegen.languages.PhpClientCodegen
要求
PHP 5.5 及以上版本
安装与使用
Composer
要通过 Composer 安装绑定,请将以下内容添加到 composer.json
{ "repositories": [ { "type": "vcs", "url": "https://github.com/adesso-mobile/php-jira-client.git" } ], "require": { "adesso-mobile/php-jira-client": "*@dev" } }
然后运行 composer install
手动安装
下载文件并包含 autoload.php
require_once('/path/to/php-jira-client/vendor/autoload.php');
测试
要运行单元测试
composer install ./vendor/bin/phpunit
入门
请按照 安装过程 进行,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure HTTP basic authorization: crowdAuth $config = JiraClient\Configuration::getDefaultConfiguration() ->setUsername('YOUR_USERNAME') ->setPassword('YOUR_PASSWORD'); $apiInstance = new JiraClient\Api\JiraApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $issue_id_or_key = 'issue_id_or_key_example'; // string | $file = "/path/to/file.txt"; // \SplFileObject | The attachment to upload $x_atlassian_token = 'no-check'; // string | try { $apiInstance->addAttachment($issue_id_or_key, $file, $x_atlassian_token); } catch (Exception $e) { echo 'Exception when calling JiraApi->addAttachment: ', $e->getMessage(), PHP_EOL; } ?>
API 端点文档
所有 URI 都相对于 https:///api/2
模型文档
- JiraCreatedIssue
- JiraIssueCreationProperties
- JiraIssueFields
- JiraIssueFieldsAssignee
- JiraIssueFieldsIssuetype
- JiraIssueFieldsPriority
- JiraIssueFieldsProject
- JiraIssueFieldsReporter
- JiraUser
授权文档
crowdAuth
- 类型:HTTP 基本认证